Fix(礼品):领取领取礼品新增地址保存防抖处理
This commit is contained in:
@@ -172,6 +172,7 @@ export default {
|
|||||||
this.form.region = e.province.label + ' ' + e.city.label + ' ' + e.area.label
|
this.form.region = e.province.label + ' ' + e.city.label + ' ' + e.area.label
|
||||||
},
|
},
|
||||||
async handleSave() {
|
async handleSave() {
|
||||||
|
if (this.loading) return
|
||||||
const name = this.userAddress.realName || ''
|
const name = this.userAddress.realName || ''
|
||||||
const phone = this.userAddress.phone || ''
|
const phone = this.userAddress.phone || ''
|
||||||
const addressText = this.addressText || ''
|
const addressText = this.addressText || ''
|
||||||
@@ -224,6 +225,7 @@ export default {
|
|||||||
this.$emit('save', res.data.id)
|
this.$emit('save', res.data.id)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -231,7 +233,6 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
uni.hideLoading();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取当前定位地址
|
//获取当前定位地址
|
||||||
|
|||||||
Reference in New Issue
Block a user