diff --git a/pkg_user/views/gift/components/AddressDialog.vue b/pkg_user/views/gift/components/AddressDialog.vue index c04a2bb..4f419cf 100644 --- a/pkg_user/views/gift/components/AddressDialog.vue +++ b/pkg_user/views/gift/components/AddressDialog.vue @@ -172,6 +172,7 @@ export default { this.form.region = e.province.label + ' ' + e.city.label + ' ' + e.area.label }, async handleSave() { + if (this.loading) return const name = this.userAddress.realName || '' const phone = this.userAddress.phone || '' const addressText = this.addressText || '' @@ -224,6 +225,7 @@ export default { this.$emit('save', res.data.id) }).finally(() => { this.loading = false + uni.hideLoading(); }); } catch (err) { uni.showToast({ @@ -231,7 +233,6 @@ export default { icon: "none", duration: 2000 }); - uni.hideLoading(); } }, //获取当前定位地址