diff --git a/src/project/saas/AppCountryAlbum/AppCountryAlbum.vue b/src/project/saas/AppCountryAlbum/AppCountryAlbum.vue index da6d2dc0..715d2469 100644 --- a/src/project/saas/AppCountryAlbum/AppCountryAlbum.vue +++ b/src/project/saas/AppCountryAlbum/AppCountryAlbum.vue @@ -23,15 +23,6 @@ export default { Tabbar }, - methods: { - ...mapActions(['injectJWeixin']), - - onChange(e) { - this.params = e.params - this.component = e.type - } - }, - onLoad () { uni.setStorageSync('address', { lat: '', @@ -49,6 +40,13 @@ export default { }, methods: { + ...mapActions(['injectJWeixin']), + + onChange(e) { + this.params = e.params + this.component = e.type + }, + getLocation () { this.injectJWeixin(['getLocation']).then(() => { wx.getLocation({ diff --git a/src/project/saas/AppCountryAlbum/Watermark.vue b/src/project/saas/AppCountryAlbum/Watermark.vue index f78d840e..000e2593 100644 --- a/src/project/saas/AppCountryAlbum/Watermark.vue +++ b/src/project/saas/AppCountryAlbum/Watermark.vue @@ -186,7 +186,7 @@ this.img = decodeURIComponent(query.url) this.height = uni.getSystemInfoSync().windowHeight - if (uni.getStorageSync('address').address) { + if (!uni.getStorageSync('address').address) { this.getLocation() }