修改自提bug
This commit is contained in:
parent
4911a0c948
commit
bc9290e13c
@ -392,8 +392,10 @@ export default {
|
|||||||
async setDelivery(index) {
|
async setDelivery(index) {
|
||||||
// console.log(index);
|
// console.log(index);
|
||||||
if(index == 1) {
|
if(index == 1) {
|
||||||
if(!this.isTakeawayer) this.$u.toast('此地区不支持骑手配送');
|
if(!this.isTakeawayer) {
|
||||||
return false;
|
this.$u.toast('此地区不支持骑手配送');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.delivery = this.deliveryList[index];
|
this.delivery = this.deliveryList[index];
|
||||||
this.getFreight();
|
this.getFreight();
|
||||||
}
|
}
|
||||||
@ -404,7 +406,6 @@ export default {
|
|||||||
this.freight[key] = '0.00';
|
this.freight[key] = '0.00';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.isTakeawayer = false;
|
|
||||||
this.setTotalPrice(); // 计算总价
|
this.setTotalPrice(); // 计算总价
|
||||||
this.delivery = this.deliveryList[index];
|
this.delivery = this.deliveryList[index];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user