|
@@ -114,7 +114,7 @@
|
|
|
this.isGetAddress = !this.isGetAddress
|
|
this.isGetAddress = !this.isGetAddress
|
|
|
this.getStoreListData()
|
|
this.getStoreListData()
|
|
|
}
|
|
}
|
|
|
- },5000)
|
|
|
|
|
|
|
+ },3000)
|
|
|
// 判断Openid是否为空
|
|
// 判断Openid是否为空
|
|
|
if (option.type) {
|
|
if (option.type) {
|
|
|
this.type = option.type;
|
|
this.type = option.type;
|
|
@@ -150,6 +150,9 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getLocation() {
|
|
getLocation() {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '加载中...'
|
|
|
|
|
+ });
|
|
|
let that = this
|
|
let that = this
|
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
|
type: 'gcj02',
|
|
type: 'gcj02',
|
|
@@ -207,6 +210,7 @@
|
|
|
latitude: this.latitude,
|
|
latitude: this.latitude,
|
|
|
longitude: this.longitude,
|
|
longitude: this.longitude,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
|
|
+ uni.hideLoading();
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
that.storeList = res.data.data
|
|
that.storeList = res.data.data
|
|
|
that.latitude = res.data.data[0].latitude
|
|
that.latitude = res.data.data[0].latitude
|