diff --git a/pages/home/index.vue b/pages/home/index.vue index 9bb2c98..9122bf2 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -716,6 +716,7 @@ export default { console.timeEnd() console.log('^^^^^^^^^^^^^^^^获取定位开始') console.time() + this.getPageData() this.getLocationData() }, // 定位失败,重新唤起定位授权 @@ -729,7 +730,7 @@ export default { const cityName = uni.getStorageSync('locationCityName') if (cityName) { this.cityName = cityName - this.getPageData() + // this.getPageData() } this.isLocating = true getLocationPromise().then(mapData => { @@ -742,16 +743,16 @@ export default { if (resCityName !== this.cityName) { this.cityName = address.city uni.setStorageSync('locationCityName', this.cityName) - this.getPageData() + // this.getPageData() } this.isLocating = false }) } else { this.isLocating = false - this.getPageData() + // this.getPageData() } }).catch(() => { - this.getPageData() + // this.getPageData() }) }, getPageData() {