位置信息

This commit is contained in:
liuye
2024-08-15 08:32:57 +08:00
parent bc5c1063ff
commit 3d41c2b7ec

View File

@@ -131,7 +131,7 @@ export default {
}
},
computed: {
...mapState(['user', 'token']),
...mapState(['user', 'wxwork']),
},
onLoad() {
},
@@ -146,7 +146,7 @@ export default {
this.getHistoryList()
},
methods: {
...mapActions(['autoLogin', 'getUserInfo', 'injectJWeixin',]),
...mapActions(['autoLogin', 'getUserInfo', 'injectJWeixin', 'agentSign']),
startRecord() {
this.isStart = true
this.recorder = Recorder({
@@ -356,6 +356,10 @@ export default {
})
},
getLocation() {
this.agentSign({
corpId: this.wxwork.config.corpId,
suiteId: this.wxwork.config.suiteId
}).then(() => {
this.injectJWeixin(['getLocation']).then(() => {
wx.getLocation({
type: 'wgs84',
@@ -368,7 +372,7 @@ export default {
})
}).catch(e => {
})
})
},
},
}