|
|
@@ -330,6 +330,7 @@
|
|
|
@click="addressFn(itme)">
|
|
|
<p>{{ itme.title }}</p>
|
|
|
<p>{{ itme.address }}</p>
|
|
|
+ <p>距离:{{ itme._distance }}米</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -348,8 +349,9 @@
|
|
|
><p style="margin: 4px 0; font-weight: bold">
|
|
|
{{ item.title }}
|
|
|
</p>
|
|
|
- <p style="margin: 4px 0">{{ item.address }}</p></van-radio
|
|
|
- >
|
|
|
+ <p style="margin: 4px 0">{{ item.address }}</p>
|
|
|
+ <p style="margin: 4px 0">距离:{{ item._distance }}米</p>
|
|
|
+ </van-radio>
|
|
|
</van-radio-group>
|
|
|
<br />
|
|
|
<br />
|
|
|
@@ -391,10 +393,10 @@ import txmapimg1 from "@/assets/txmap1.svg";
|
|
|
import txmapimg2 from "@/assets/txmap2.svg";
|
|
|
import txmapimg3 from "@/assets/marker_blue.png";
|
|
|
import axios from "axios";
|
|
|
-import { jsonp } from "vue-jsonp";
|
|
|
import { updateStoreAddress, valid } from "@/api/visitstore";
|
|
|
import uploadImg from "@/components/viewaddreddUploadImg.vue";
|
|
|
import helpPage from "./helpPage.vue";
|
|
|
+import { getPosition, getMapPoi, getkeywordPoi } from "@/utils/getPosition";
|
|
|
export default {
|
|
|
components: { uploadImg, mapmarker, viewUploadImg, helpPage },
|
|
|
data() {
|
|
|
@@ -521,13 +523,8 @@ export default {
|
|
|
},
|
|
|
]);
|
|
|
that.maplist = [];
|
|
|
- jsonp(
|
|
|
- "https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(" +
|
|
|
- val.location.lat +
|
|
|
- "," +
|
|
|
- val.location.lng +
|
|
|
- ",500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6"
|
|
|
- ).then((res) => {
|
|
|
+ // 地点搜索 获取500米范围poi点
|
|
|
+ getMapPoi({ latitude: this.pLat, longitude: this.pLot }).then((res) => {
|
|
|
console.log(res);
|
|
|
that.maplist = res.data;
|
|
|
that.marker.setGeometries([]);
|
|
|
@@ -542,34 +539,37 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+ // 清楚选中状态
|
|
|
that.addresssb = -1;
|
|
|
+ // jsonp(
|
|
|
+ // "https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(" +
|
|
|
+ // val.location.lat +
|
|
|
+ // "," +
|
|
|
+ // val.location.lng +
|
|
|
+ // ",500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6"
|
|
|
+ // ).then((res) => {
|
|
|
+ // console.log(res);
|
|
|
+ // that.maplist = res.data;
|
|
|
+ // that.marker.setGeometries([]);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // for (let p = 0; p < res.data.length; p++) {
|
|
|
+ // that.marker.updateGeometries([
|
|
|
+ // {
|
|
|
+ // id: res.data[p].id,
|
|
|
+ // position: new TMap.LatLng(res.data[p].location.lat, res.data[p].location.lng),
|
|
|
+ // },
|
|
|
+ // ]);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
});
|
|
|
},
|
|
|
searchFn() {
|
|
|
this.searchSHow = false;
|
|
|
console.log(this.searchValue);
|
|
|
- // 关键词
|
|
|
- let keyword = this.searchValue ? "&keyword=" + encodeURI(this.searchValue) : "";
|
|
|
- // 地点搜索
|
|
|
- let searchApi =
|
|
|
- "https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(" +
|
|
|
- this.pLat +
|
|
|
- "," +
|
|
|
- this.pLot +
|
|
|
- ",500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6";
|
|
|
- // 关键词搜索
|
|
|
- let suggestionApi =
|
|
|
- "https://apis.map.qq.com/ws/place/v1/suggestion?location=" +
|
|
|
- this.pLat +
|
|
|
- "," +
|
|
|
- this.pLot +
|
|
|
- "&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=10®ion_fix=1";
|
|
|
- jsonp(suggestionApi + keyword).then((res) => {
|
|
|
- console.log(searchApi + keyword);
|
|
|
- console.log(suggestionApi + keyword);
|
|
|
- console.log(res);
|
|
|
+ getkeywordPoi({ latitude: this.pLat, longitude: this.pLot }, this.searchValue).then((res) => {
|
|
|
// 不显示下拉选择
|
|
|
- if (!res.data.length && !this.search) {
|
|
|
+ if (!res.data.length && !this.searchValue) {
|
|
|
this.searchSHow = false;
|
|
|
} else {
|
|
|
this.searchSHow = true;
|
|
|
@@ -600,8 +600,6 @@ export default {
|
|
|
console.log(this.addresssb);
|
|
|
if (this.addresssb > -1) {
|
|
|
this.list.addressLine = this.maplist[this.addresssb].address;
|
|
|
- // this.lat=this.maplist[this.addresssb].location.lat
|
|
|
- // this.lon=this.maplist[this.addresssb].location.lng
|
|
|
this.lon = this.myLat;
|
|
|
this.lat = this.myLon;
|
|
|
this.poiAddress = this.maplist[this.addresssb].address;
|
|
|
@@ -609,104 +607,129 @@ export default {
|
|
|
this.poiLon = this.maplist[this.addresssb].location.lng;
|
|
|
this.poiId = this.maplist[this.addresssb].id;
|
|
|
this.poiName = this.maplist[this.addresssb].title;
|
|
|
+ this.showmap = false;
|
|
|
}
|
|
|
- this.showmap = false;
|
|
|
},
|
|
|
fns() {
|
|
|
this.searchValue = "";
|
|
|
- let loading1 = this.$toast.loading({
|
|
|
- duration: 0,
|
|
|
- message: "定位中...",
|
|
|
- forbidClick: true,
|
|
|
- });
|
|
|
- let url = window.location.href;
|
|
|
- // let url = encodeURIComponent("https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]).replaceAll("%3A", ":")
|
|
|
- let that = this;
|
|
|
- let qiyeData;
|
|
|
- const instance = axios.create();
|
|
|
- instance.defaults.headers.common["userId"] = localStorage.getItem("loginName");
|
|
|
- instance
|
|
|
- .get(process.env.VUE_APP_BASE_API + "mobile/wx/ticket", {
|
|
|
- params: {
|
|
|
- url: url,
|
|
|
- },
|
|
|
- })
|
|
|
- .then((response) => {
|
|
|
- if (response.status == 200) {
|
|
|
- this.cont = 6;
|
|
|
- var flat = true;
|
|
|
- var times = setInterval(() => {
|
|
|
- this.cont--;
|
|
|
- if (this.cont == "0") {
|
|
|
- if (flat) {
|
|
|
- loading1.clear();
|
|
|
- clearInterval(times);
|
|
|
- that.$dialog.alert({
|
|
|
- message: "定位失败,请开启企微定位权限",
|
|
|
- });
|
|
|
- } else {
|
|
|
- clearInterval(times);
|
|
|
- }
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
- qiyeData = response.data.data;
|
|
|
- that.wx.config({
|
|
|
- beta: true,
|
|
|
- debug: false,
|
|
|
- appId: qiyeData.appId,
|
|
|
- timestamp: qiyeData.timestamp,
|
|
|
- nonceStr: qiyeData.nonceStr,
|
|
|
- signature: qiyeData.signature,
|
|
|
- jsApiList: ["ready", "getLocation"],
|
|
|
- });
|
|
|
- that.wx.ready(function () {
|
|
|
- that.wx.getLocation({
|
|
|
- type: "gcj02",
|
|
|
- success: function (res) {
|
|
|
- flat = false;
|
|
|
- loading1.clear();
|
|
|
- var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
- that.lat = location.lat;
|
|
|
- that.lon = location.lon;
|
|
|
- if (that.list.lon == "") {
|
|
|
- that.list.lon = location.lon;
|
|
|
- that.list.lat = res.latitude;
|
|
|
- }
|
|
|
- that.pLat = res.latitude;
|
|
|
- that.pLot = res.longitude;
|
|
|
- that.myLat = location.lat;
|
|
|
- that.myLon = location.lon;
|
|
|
- that.showmap = true;
|
|
|
- jsonp(
|
|
|
- "https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(" +
|
|
|
- res.latitude +
|
|
|
- "," +
|
|
|
- res.longitude +
|
|
|
- ",500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6"
|
|
|
- ).then((res) => {
|
|
|
- console.log(res);
|
|
|
- that.maplist = res.data;
|
|
|
- setTimeout(() => {
|
|
|
- that.addVisits1("1");
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- fail: function () {
|
|
|
- loading1.clear();
|
|
|
- that.$dialog.alert({
|
|
|
- title: "系统提示",
|
|
|
- message: "GPS未开启",
|
|
|
- });
|
|
|
- },
|
|
|
- });
|
|
|
- });
|
|
|
- that.wx.error(function (res) {
|
|
|
- this.$toast.fail("定位失败");
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$toast.fail("接口异常");
|
|
|
+ getPosition()
|
|
|
+ .then((res) => {
|
|
|
+ let { TXisBD, resData } = res;
|
|
|
+ this.lat = TXisBD.lat;
|
|
|
+ this.lon = TXisBD.lon;
|
|
|
+ if (this.list.lon == "") {
|
|
|
+ this.list.lon = TXisBD.lon;
|
|
|
+ this.list.lat = resData.latitude;
|
|
|
}
|
|
|
+ this.pLat = resData.latitude;
|
|
|
+ this.pLot = resData.longitude;
|
|
|
+ this.myLat = TXisBD.lat;
|
|
|
+ this.myLon = TXisBD.lon;
|
|
|
+ this.showmap = true;
|
|
|
+ // 地点搜索 获取500米范围poi点
|
|
|
+ getMapPoi(resData).then((resPoi) => {
|
|
|
+ this.maplist = resPoi.data;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.addVisits1("1");
|
|
|
+ });
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
+ // let loading1 = this.$toast.loading({
|
|
|
+ // duration: 0,
|
|
|
+ // message: "定位中...",
|
|
|
+ // forbidClick: true,
|
|
|
+ // });
|
|
|
+ // let url = window.location.href;
|
|
|
+ // // let url = encodeURIComponent("https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]).replaceAll("%3A", ":")
|
|
|
+ // let that = this;
|
|
|
+ // let qiyeData;
|
|
|
+ // const instance = axios.create();
|
|
|
+ // instance.defaults.headers.common["userId"] = localStorage.getItem("loginName");
|
|
|
+ // instance
|
|
|
+ // .get(process.env.VUE_APP_BASE_API + "mobile/wx/ticket", {
|
|
|
+ // params: {
|
|
|
+ // url: url,
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+ // .then((response) => {
|
|
|
+ // if (response.status == 200) {
|
|
|
+ // this.cont = 6;
|
|
|
+ // var flat = true;
|
|
|
+ // var times = setInterval(() => {
|
|
|
+ // this.cont--;
|
|
|
+ // if (this.cont == "0") {
|
|
|
+ // if (flat) {
|
|
|
+ // loading1.clear();
|
|
|
+ // clearInterval(times);
|
|
|
+ // that.$dialog.alert({
|
|
|
+ // message: "定位失败,请开启企微定位权限",
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // clearInterval(times);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }, 1000);
|
|
|
+ // qiyeData = response.data.data;
|
|
|
+ // that.wx.config({
|
|
|
+ // beta: true,
|
|
|
+ // debug: false,
|
|
|
+ // appId: qiyeData.appId,
|
|
|
+ // timestamp: qiyeData.timestamp,
|
|
|
+ // nonceStr: qiyeData.nonceStr,
|
|
|
+ // signature: qiyeData.signature,
|
|
|
+ // jsApiList: ["ready", "getLocation"],
|
|
|
+ // });
|
|
|
+ // that.wx.ready(function () {
|
|
|
+ // that.wx.getLocation({
|
|
|
+ // type: "gcj02",
|
|
|
+ // success: function (res) {
|
|
|
+ // flat = false;
|
|
|
+ // loading1.clear();
|
|
|
+ // var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
+ // that.lat = location.lat;
|
|
|
+ // that.lon = location.lon;
|
|
|
+ // if (that.list.lon == "") {
|
|
|
+ // that.list.lon = location.lon;
|
|
|
+ // that.list.lat = res.latitude;
|
|
|
+ // }
|
|
|
+ // that.pLat = res.latitude;
|
|
|
+ // that.pLot = res.longitude;
|
|
|
+ // that.myLat = location.lat;
|
|
|
+ // that.myLon = location.lon;
|
|
|
+ // that.showmap = true;
|
|
|
+ // jsonp(
|
|
|
+ // "https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(" +
|
|
|
+ // res.latitude +
|
|
|
+ // "," +
|
|
|
+ // res.longitude +
|
|
|
+ // ",500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6"
|
|
|
+ // ).then((res) => {
|
|
|
+ // console.log(res);
|
|
|
+ // that.maplist = res.data;
|
|
|
+ // setTimeout(() => {
|
|
|
+ // that.addVisits1("1");
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // fail: function () {
|
|
|
+ // loading1.clear();
|
|
|
+ // that.$dialog.alert({
|
|
|
+ // title: "系统提示",
|
|
|
+ // message: "GPS未开启",
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // that.wx.error(function (res) {
|
|
|
+ // this.$toast.fail("定位失败");
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$toast.fail("接口异常");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
addVisits1(val) {
|
|
|
var that = this;
|
|
|
@@ -781,9 +804,19 @@ export default {
|
|
|
this.markers = markers1;
|
|
|
this.markers1 = markers;
|
|
|
this.marker = marker;
|
|
|
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.SCALE);
|
|
|
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION);
|
|
|
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM);
|
|
|
+ map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.SCALE); //移除比例尺控件
|
|
|
+ map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION); //移除旋转控件
|
|
|
+ map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM); //移除控件缩放
|
|
|
+ },
|
|
|
+ initMap(map) {
|
|
|
+ // 监听地图平移开始
|
|
|
+ map.on("pan", () => {
|
|
|
+ console.log("监听地图平移开始");
|
|
|
+ });
|
|
|
+ // 监听地图平移结束
|
|
|
+ map.on("panend", () => {
|
|
|
+ console.log("监听地图平移结束");
|
|
|
+ });
|
|
|
},
|
|
|
updateStoreAddress() {
|
|
|
if (this.list.province == "") {
|
|
|
@@ -1273,85 +1306,98 @@ export default {
|
|
|
this.address = "地址";
|
|
|
}
|
|
|
|
|
|
- let loading1 = this.$toast.loading({
|
|
|
- duration: 0,
|
|
|
- message: "定位中...",
|
|
|
- forbidClick: true,
|
|
|
- });
|
|
|
- let url = window.location.href;
|
|
|
- // let url = "https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]
|
|
|
- let that = this;
|
|
|
- let qiyeData;
|
|
|
- const instance = axios.create();
|
|
|
- instance.defaults.headers.common["userId"] = localStorage.getItem("loginName");
|
|
|
- instance
|
|
|
- .get(process.env.VUE_APP_BASE_API + "mobile/wx/ticket", {
|
|
|
- params: {
|
|
|
- url: url,
|
|
|
- },
|
|
|
+ getPosition()
|
|
|
+ .then((res) => {
|
|
|
+ let { TXisBD, resData } = res;
|
|
|
+ this.lat = TXisBD.lat;
|
|
|
+ this.lon = TXisBD.lon;
|
|
|
+ this.myLat = TXisBD.lat;
|
|
|
+ this.myLon = TXisBD.lon;
|
|
|
+ this.list.lon = TXisBD.lon;
|
|
|
+ this.list.lat = TXisBD.lat;
|
|
|
})
|
|
|
- .then((response) => {
|
|
|
- if (response.status == 200) {
|
|
|
- this.cont = 6;
|
|
|
- var flat = true;
|
|
|
- var times = setInterval(() => {
|
|
|
- this.cont--;
|
|
|
- if (this.cont == "0") {
|
|
|
- if (flat) {
|
|
|
- loading1.clear();
|
|
|
- clearInterval(times);
|
|
|
- that.$dialog
|
|
|
- .alert({
|
|
|
- message: "定位失败,请开启企微定位权限",
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- });
|
|
|
- } else {
|
|
|
- clearInterval(times);
|
|
|
- }
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
- qiyeData = response.data.data;
|
|
|
- that.wx.config({
|
|
|
- beta: true,
|
|
|
- debug: false,
|
|
|
- appId: qiyeData.appId,
|
|
|
- timestamp: qiyeData.timestamp,
|
|
|
- nonceStr: qiyeData.nonceStr,
|
|
|
- signature: qiyeData.signature,
|
|
|
- jsApiList: ["ready", "getLocation"],
|
|
|
- });
|
|
|
- that.wx.ready(function () {
|
|
|
- that.wx.getLocation({
|
|
|
- type: "gcj02",
|
|
|
- success: function (res) {
|
|
|
- flat = false;
|
|
|
- loading1.clear();
|
|
|
- var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
- that.lat = location.lat;
|
|
|
- that.lon = location.lon;
|
|
|
- that.myLat = location.lat;
|
|
|
- that.myLon = location.lon;
|
|
|
- that.list.lon = location.lon;
|
|
|
- that.list.lat = location.lat;
|
|
|
- },
|
|
|
- fail: function () {
|
|
|
- loading1.clear();
|
|
|
- that.$dialog.alert({
|
|
|
- title: "系统提示",
|
|
|
- message: "GPS未开启",
|
|
|
- });
|
|
|
- },
|
|
|
- });
|
|
|
- });
|
|
|
- that.wx.error(function (res) {
|
|
|
- this.$toast.fail("定位失败");
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$toast.fail("接口异常");
|
|
|
- }
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
+ // let loading1 = this.$toast.loading({
|
|
|
+ // duration: 0,
|
|
|
+ // message: "定位中...",
|
|
|
+ // forbidClick: true,
|
|
|
+ // });
|
|
|
+ // let url = window.location.href;
|
|
|
+ // // let url = "https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]
|
|
|
+ // let that = this;
|
|
|
+ // let qiyeData;
|
|
|
+ // const instance = axios.create();
|
|
|
+ // instance.defaults.headers.common["userId"] = localStorage.getItem("loginName");
|
|
|
+ // instance
|
|
|
+ // .get(process.env.VUE_APP_BASE_API + "mobile/wx/ticket", {
|
|
|
+ // params: {
|
|
|
+ // url: url,
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+ // .then((response) => {
|
|
|
+ // if (response.status == 200) {
|
|
|
+ // this.cont = 6;
|
|
|
+ // var flat = true;
|
|
|
+ // var times = setInterval(() => {
|
|
|
+ // this.cont--;
|
|
|
+ // if (this.cont == "0") {
|
|
|
+ // if (flat) {
|
|
|
+ // loading1.clear();
|
|
|
+ // clearInterval(times);
|
|
|
+ // that.$dialog
|
|
|
+ // .alert({
|
|
|
+ // message: "定位失败,请开启企微定位权限",
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // this.$router.go(-1);
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // clearInterval(times);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }, 1000);
|
|
|
+ // qiyeData = response.data.data;
|
|
|
+ // that.wx.config({
|
|
|
+ // beta: true,
|
|
|
+ // debug: false,
|
|
|
+ // appId: qiyeData.appId,
|
|
|
+ // timestamp: qiyeData.timestamp,
|
|
|
+ // nonceStr: qiyeData.nonceStr,
|
|
|
+ // signature: qiyeData.signature,
|
|
|
+ // jsApiList: ["ready", "getLocation"],
|
|
|
+ // });
|
|
|
+ // that.wx.ready(function () {
|
|
|
+ // that.wx.getLocation({
|
|
|
+ // type: "gcj02",
|
|
|
+ // success: function (res) {
|
|
|
+ // flat = false;
|
|
|
+ // loading1.clear();
|
|
|
+ // var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
+ // that.lat = location.lat;
|
|
|
+ // that.lon = location.lon;
|
|
|
+ // that.myLat = location.lat;
|
|
|
+ // that.myLon = location.lon;
|
|
|
+ // that.list.lon = location.lon;
|
|
|
+ // that.list.lat = location.lat;
|
|
|
+ // },
|
|
|
+ // fail: function () {
|
|
|
+ // loading1.clear();
|
|
|
+ // that.$dialog.alert({
|
|
|
+ // title: "系统提示",
|
|
|
+ // message: "GPS未开启",
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // that.wx.error(function (res) {
|
|
|
+ // this.$toast.fail("定位失败");
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$toast.fail("接口异常");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
} else {
|
|
|
this.$toast.fail(res.msg);
|
|
|
}
|