位置信息
This commit is contained in:
@@ -131,7 +131,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user', 'token']),
|
...mapState(['user', 'wxwork']),
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
},
|
},
|
||||||
@@ -146,7 +146,7 @@ export default {
|
|||||||
this.getHistoryList()
|
this.getHistoryList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['autoLogin', 'getUserInfo', 'injectJWeixin',]),
|
...mapActions(['autoLogin', 'getUserInfo', 'injectJWeixin', 'agentSign']),
|
||||||
startRecord() {
|
startRecord() {
|
||||||
this.isStart = true
|
this.isStart = true
|
||||||
this.recorder = Recorder({
|
this.recorder = Recorder({
|
||||||
@@ -356,6 +356,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getLocation() {
|
getLocation() {
|
||||||
|
this.agentSign({
|
||||||
|
corpId: this.wxwork.config.corpId,
|
||||||
|
suiteId: this.wxwork.config.suiteId
|
||||||
|
}).then(() => {
|
||||||
this.injectJWeixin(['getLocation']).then(() => {
|
this.injectJWeixin(['getLocation']).then(() => {
|
||||||
wx.getLocation({
|
wx.getLocation({
|
||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
@@ -368,7 +372,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user