@@ -274,7 +274,7 @@
this.isGetAddress = !this.isGetAddress
this.getStoreListData(this.reqParm)
}
- },5000)
+ },3000)
// 获取位置信息查询门店列表数据
this.getLocation();
} else {
@@ -114,7 +114,7 @@
this.getStoreListData()
// 判断Openid是否为空
if (option.type) {
this.type = option.type;
@@ -150,6 +150,9 @@
})
},
getLocation() {
+ uni.showLoading({
+ title: '加载中...'
+ });
let that = this
uni.getLocation({
type: 'gcj02',
@@ -207,6 +210,7 @@
latitude: this.latitude,
longitude: this.longitude,
}).then((res) => {
+ uni.hideLoading();
console.log(res)
that.storeList = res.data.data
that.latitude = res.data.data[0].latitude