From 3bdb7a72e7ed750825812ed551bda97d92d7ccd0 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 17 Nov 2022 17:03:16 +0800 Subject: [PATCH] bug --- src/apps/AppMyGrid/AppMyGrid.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/AppMyGrid/AppMyGrid.vue b/src/apps/AppMyGrid/AppMyGrid.vue index b088a801..e9cd2670 100644 --- a/src/apps/AppMyGrid/AppMyGrid.vue +++ b/src/apps/AppMyGrid/AppMyGrid.vue @@ -61,6 +61,7 @@ export default { success: res => { const {latitude: lat, longitude: lng} = res if (!!lat && !!lng) { + uni.showLoading() this.$http.post('/app/appdvcpconfig/apiForward', null, { params: { url: qs.stringifyUrl({ @@ -75,10 +76,11 @@ export default { }) .then(({data: {result: {address}}}) => this.$http.post("/app/appwxsigninfo/sign", {lat, lng, address})) .then(res => { + uni.hideLoading() if (res?.code == 0) { 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("无法获取到定位!") }, fail: () => this.$u.toast("获取定位失败,请重新尝试!")