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