This commit is contained in:
yanran200730
2022-07-29 15:04:07 +08:00
parent aa50b69879
commit 9b01a55602

View File

@@ -32,7 +32,10 @@ export default {
cityCode: `` cityCode: ``
}) })
this.getLocation()
setTimeout(() => {
this.getLocation()
}, 600)
}, },
onShow() { onShow() {
@@ -52,6 +55,7 @@ export default {
}, },
getLocation () { getLocation () {
alert(2)
this.injectJWeixin(['getLocation']).then(() => { this.injectJWeixin(['getLocation']).then(() => {
alert(232432) alert(232432)
wx.getLocation({ wx.getLocation({