Fix(礼品):领取领取礼品新增地址保存防抖处理
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
//获取当前定位地址
|
||||
|
||||
Reference in New Issue
Block a user