This commit is contained in:
yanran200730
2022-07-28 15:20:02 +08:00
parent a4d13d0fd8
commit 9ca1892df2
3 changed files with 10 additions and 59 deletions

View File

@@ -182,6 +182,13 @@
this.albumId = query.albumId
}
uni.setStorageSync('address', {
lat: '',
lng: '',
address: '',
weather: '',
cityCode: ``
})
this.img = decodeURIComponent(query.url)
this.height = uni.getSystemInfoSync().windowHeight
@@ -318,7 +325,7 @@
},
getLocation () {
this.injectJWeixin(['getLocation']).then(res => {
this.injectJWeixin(['getLocation']).then(() => {
wx.getLocation({
type: 'wgs84',
success: res => {
@@ -349,6 +356,8 @@
console.log(res)
}
})
}).catch(e => {
alert(JOSON.stringify(e))
})
},