bug
This commit is contained in:
@@ -61,6 +61,7 @@ export default {
|
|||||||
success: res => {
|
success: res => {
|
||||||
const {latitude: lat, longitude: lng} = res
|
const {latitude: lat, longitude: lng} = res
|
||||||
if (!!lat && !!lng) {
|
if (!!lat && !!lng) {
|
||||||
|
uni.showLoading()
|
||||||
this.$http.post('/app/appdvcpconfig/apiForward', null, {
|
this.$http.post('/app/appdvcpconfig/apiForward', null, {
|
||||||
params: {
|
params: {
|
||||||
url: qs.stringifyUrl({
|
url: qs.stringifyUrl({
|
||||||
@@ -75,10 +76,11 @@ export default {
|
|||||||
})
|
})
|
||||||
.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 => {
|
||||||
|
uni.hideLoading()
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.linkTo("./signResult?id=" + res?.data.id)
|
this.linkTo("./signResult?id=" + res?.data.id)
|
||||||
}
|
}
|
||||||
}).catch(err => this.$u.toast(err))
|
}).catch(err => uni.hideLoading(),this.$u.toast(err))
|
||||||
} else this.$u.toast("无法获取到定位!")
|
} else this.$u.toast("无法获取到定位!")
|
||||||
},
|
},
|
||||||
fail: () => this.$u.toast("获取定位失败,请重新尝试!")
|
fail: () => this.$u.toast("获取定位失败,请重新尝试!")
|
||||||
|
|||||||
Reference in New Issue
Block a user