接口获取定位已正常
This commit is contained in:
@@ -57,15 +57,17 @@ export default {
|
||||
success: res => {
|
||||
const {latitude: lat, longitude: lng} = res
|
||||
if (!!lat && !!lng) {
|
||||
this.$http.post('/app/appdvcpconfig/apiForward', qs.stringifyUrl({
|
||||
this.$http.post('/app/appdvcpconfig/apiForward', null, {
|
||||
params: {
|
||||
url: qs.stringifyUrl({
|
||||
url: "https://apis.map.qq.com/ws/geocoder/v1/?get_poi=1",
|
||||
query: {
|
||||
location: [lat, lng].toString(),
|
||||
key: "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY",
|
||||
}
|
||||
}, {
|
||||
headers: {"Content-Type": "application/json"}
|
||||
}))
|
||||
})
|
||||
}
|
||||
})
|
||||
.then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address}))
|
||||
.then(res => {
|
||||
if (res?.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user