Fix(礼品):领取领取礼品新增地址保存防抖处理

This commit is contained in:
lifizer
2025-03-06 21:10:17 +08:00
parent 45b8d065ae
commit c6cc2758c9
@@ -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();
}
},
//获取当前定位地址