fixing bug add address 8.12
This commit is contained in:
parent
a871e050f6
commit
3b5515d317
@ -80,7 +80,6 @@ export default {
|
|||||||
// 判断是不是编辑页面 调用接口
|
// 判断是不是编辑页面 调用接口
|
||||||
confirmBtn() {
|
confirmBtn() {
|
||||||
if(!this.debounce) return;
|
if(!this.debounce) return;
|
||||||
this.debounce = false;
|
|
||||||
this.info ? this.editAddress() : this.addAddress();
|
this.info ? this.editAddress() : this.addAddress();
|
||||||
},
|
},
|
||||||
// chooseArea() {
|
// chooseArea() {
|
||||||
@ -119,6 +118,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addAddress() {
|
addAddress() {
|
||||||
if(!this.validateValue()) return false;
|
if(!this.validateValue()) return false;
|
||||||
|
this.debounce = false;
|
||||||
this.$u.api.addressAdd({
|
this.$u.api.addressAdd({
|
||||||
area_id: this.area_id,
|
area_id: this.area_id,
|
||||||
city_id: this.city_id,
|
city_id: this.city_id,
|
||||||
@ -144,6 +144,7 @@ export default {
|
|||||||
},
|
},
|
||||||
editAddress() {
|
editAddress() {
|
||||||
if(!this.validateValue()) return false;
|
if(!this.validateValue()) return false;
|
||||||
|
this.debounce = false;
|
||||||
this.$u.api.addressEdit({
|
this.$u.api.addressEdit({
|
||||||
address_id: this.info.address_id,
|
address_id: this.info.address_id,
|
||||||
area_id: this.area_id,
|
area_id: this.area_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user