位置信息
This commit is contained in:
@@ -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 => {
|
||||
})
|
||||
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user