Commit a6def72f by 李嘉林

优化

parent 557bbd3f
......@@ -74,8 +74,9 @@ export default {
type: "gcj02", // gcj02 wgs84
isHighAccuracy: true,
success: res => {
res.latitude = res.latitude.toFixed(3)
res.longitude = res.longitude.toFixed(3)
console.log(res,'getLocationHandle-res')
res.latitude = Number(res.latitude) ? Number(res.latitude).toFixed(3) : "";
res.longitude = Number(res.longitude) ? Number(res.longitude).toFixed(3) : "";
// latitude longitude speed accuracy
log.info("~~~~~~~~~1~~~~~~~", res);
console.log(`%c获取定位${JSON.stringify(res)}`,'color:yellow;font-size:20px;');
......
......@@ -525,10 +525,11 @@ export default {
onShow() {
console.log(new Date().getTime(),'load-----home-onShow')
console.log(this.reloadPage,'-reloadPage2')
if (this.reloadPage) {
this.refreshInit();
this.reloadPage = false;
}
// if (this.reloadPage) {
// console.log("refreshInit--------1")
// this.refreshInit();
// this.reloadPage = false;
// }
// 设置显示条件
log.info('--------on--------------show')
//分销隔流
......@@ -565,6 +566,7 @@ export default {
console.log('eloadEnterShopRule', this.h5Params)
// 进店规则--首次进店调用
if (this.h5Params && this.h5Params.offlineShopCode) {
console.log("refreshInit--------2")
this.refreshInit();
wx.removeStorageSync("firstView");
return;
......@@ -605,6 +607,7 @@ export default {
offlineShopName: storeDetail.data.data.shopName,
});
this.$refs.StoreAddr.reloadName();
console.log("refreshInit--------3")
this.refreshInit();
}
console.log(storeDetail, '-------storeDetail');
......@@ -1216,6 +1219,7 @@ export default {
},
onPullDownRefresh() {
console.log("onPullDownRefresh");
console.log("refreshInit--------4")
this.refreshInit();
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment