Commit a6def72f by 李嘉林

优化

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