|
|
@@ -576,7 +576,6 @@ import {
|
|
|
import uploadImg from '@/components/uploadImgVStore';
|
|
|
import uploadImgc from '@/components/uploadImgVStorec';
|
|
|
import viewUploadImg from '@/components/viewUploadImg';
|
|
|
-import axios from 'axios';
|
|
|
import mapmarker from '@/components/mapMarker';
|
|
|
import { jsonp } from 'vue-jsonp';
|
|
|
import txmapimg1 from '@/assets/txmap1.svg';
|
|
|
@@ -730,16 +729,6 @@ export default {
|
|
|
this.showmap = false;
|
|
|
});
|
|
|
},
|
|
|
- // created() {
|
|
|
- // },
|
|
|
- // watch: {
|
|
|
- // $route(to, from) {
|
|
|
- // if (to.path == '/storeEdit' && from.path == '/storeDetail') {
|
|
|
- // this.getDetail();
|
|
|
- // this.showmap = false;
|
|
|
- // }
|
|
|
- // },
|
|
|
- // },
|
|
|
methods: {
|
|
|
addressFns(val) {
|
|
|
var that = this;
|
|
|
@@ -770,26 +759,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- // jsonp(
|
|
|
- // 'https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(' +
|
|
|
- // val.location.lat +
|
|
|
- // ',' +
|
|
|
- // val.location.lng +
|
|
|
- // ',1000,0)&page_size=20&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
- // ).then((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),
|
|
|
- // },
|
|
|
- // ]);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // });
|
|
|
that.addresssb = -1;
|
|
|
});
|
|
|
},
|
|
|
@@ -805,18 +774,6 @@ export default {
|
|
|
// 联想下拉选
|
|
|
this.mapsearchlist = res.data;
|
|
|
});
|
|
|
- // jsonp(
|
|
|
- // 'https://apis.map.qq.com/ws/place/v1/suggestion?keyword=' +
|
|
|
- // val +
|
|
|
- // '&location=' +
|
|
|
- // this.pLat +
|
|
|
- // ',' +
|
|
|
- // this.pLot +
|
|
|
- // '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=20®ion_fix=1'
|
|
|
- // ).then((res) => {
|
|
|
- // this.searchSHow = true;
|
|
|
- // that.mapsearchlist = res.data;
|
|
|
- // });
|
|
|
},
|
|
|
mapselect(val) {
|
|
|
this.searchSHow = false;
|
|
|
@@ -876,97 +833,6 @@ export default {
|
|
|
message: error,
|
|
|
});
|
|
|
});
|
|
|
- // let loading1 = this.$toast.loading({
|
|
|
- // duration: 0,
|
|
|
- // message: '定位中...',
|
|
|
- // forbidClick: true,
|
|
|
- // });
|
|
|
- // let url = window.location.href;
|
|
|
- // 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();
|
|
|
- // that.pLat = res.latitude;
|
|
|
- // that.pLot = res.longitude;
|
|
|
- // var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
- // if (that.fromValue.lon == '') {
|
|
|
- // that.fromValue.lon = location.lon;
|
|
|
- // that.fromValue.lat = location.lat;
|
|
|
- // }
|
|
|
- // that.showmap = true;
|
|
|
- // jsonp(
|
|
|
- // 'https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(' +
|
|
|
- // res.latitude +
|
|
|
- // ',' +
|
|
|
- // res.longitude +
|
|
|
- // ',1000,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
- // ).then((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('接口异常');
|
|
|
- // }
|
|
|
- // });
|
|
|
this.addresssb = -1;
|
|
|
},
|
|
|
addVisits1(val) {
|
|
|
@@ -1476,84 +1342,6 @@ export default {
|
|
|
message: error,
|
|
|
});
|
|
|
});
|
|
|
- // let url = window.location.href;
|
|
|
- // this.list = [];
|
|
|
- // 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 = 3;
|
|
|
- // 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;
|
|
|
- // var location = that.CJ02BD(res.latitude, res.longitude);
|
|
|
- // that.location = location;
|
|
|
- // that.fromValue.lat = that.location.lat;
|
|
|
- // that.fromValue.lon = that.location.lon;
|
|
|
- // },
|
|
|
- // fail: function () {
|
|
|
- // that.$dialog
|
|
|
- // .confirm({
|
|
|
- // confirmButtonText: '取消',
|
|
|
- // cancelButtonText: '重新定位',
|
|
|
- // title: '系统提示',
|
|
|
- // message: 'GPS未开启',
|
|
|
- // })
|
|
|
- // .then(() => {
|
|
|
- // console.log('取消');
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // that.getLocation();
|
|
|
- // });
|
|
|
- // },
|
|
|
- // });
|
|
|
- // });
|
|
|
- // that.wx.error(function (res) {
|
|
|
- // this.$toast.fail('定位失败');
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.$toast.fail('接口异常');
|
|
|
- // }
|
|
|
- // });
|
|
|
},
|
|
|
showPickerChainsListFn() {
|
|
|
if (this.fromValue.storeCategoryName == '') {
|