mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-28 19:18:00 +08:00
update 后管更新天地图组件
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico" /> -->
|
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico" /> -->
|
||||||
<link rel="icon" href="#" />
|
<link rel="icon" href="#" />
|
||||||
<title><%= webpackConfig.name %></title>
|
<title><%= webpackConfig.name %></title>
|
||||||
<script src="http://api.tianditu.gov.cn/api?v=4.0&tk=d1eaedfce9e50588c78a91bbbdc5d5bc" type="text/javascript"></script>
|
<script src="https://api.tianditu.gov.cn/api?v=4.0&tk=d1eaedfce9e50588c78a91bbbdc5d5bc" type="text/javascript"></script>
|
||||||
<!--[if lt IE 11
|
<!--[if lt IE 11
|
||||||
]><script>
|
]><script>
|
||||||
window.location.href = "/html/ie.html";
|
window.location.href = "/html/ie.html";
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default {
|
|||||||
// console.log("搜索值", this.searchPlaceInput);
|
// console.log("搜索值", this.searchPlaceInput);
|
||||||
// // 向表单 site-info传值
|
// // 向表单 site-info传值
|
||||||
// bus.$emit("inp", this.searchPlaceInput);
|
// bus.$emit("inp", this.searchPlaceInput);
|
||||||
const url = `http://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${this.inputObject.userInput}"}&tk=da94c475e0b4960e6f863d7f2947435c`;
|
const url = `https://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${this.inputObject.userInput}"}&tk=da94c475e0b4960e6f863d7f2947435c`;
|
||||||
axios
|
axios
|
||||||
.get(url)
|
.get(url)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -241,7 +241,7 @@ export default {
|
|||||||
var marker = new T.Marker(new T.LngLat(lng, lat));
|
var marker = new T.Marker(new T.LngLat(lng, lat));
|
||||||
this.map.addOverLay(marker);
|
this.map.addOverLay(marker);
|
||||||
|
|
||||||
const url = `http://api.tianditu.gov.cn/geocoder?postStr={lon:${lng},lat:${lat},ver:1}&type=geocode&tk=da94c475e0b4960e6f863d7f2947435c`;
|
const url = `https://api.tianditu.gov.cn/geocoder?postStr={lon:${lng},lat:${lat},ver:1}&type=geocode&tk=da94c475e0b4960e6f863d7f2947435c`;
|
||||||
axios
|
axios
|
||||||
.get(url)
|
.get(url)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user