z8.3
This commit is contained in:
@@ -54,6 +54,7 @@ export default {
|
||||
checkedAll: false,
|
||||
checkedGoods: [],
|
||||
totalPrice: '0.00',
|
||||
debounce: true,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -74,9 +75,11 @@ export default {
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.debounce = true;
|
||||
this.getCartList();
|
||||
},
|
||||
onShow() {
|
||||
this.debounce = true;
|
||||
this.getCartList();
|
||||
},
|
||||
methods: {
|
||||
@@ -91,6 +94,8 @@ export default {
|
||||
},
|
||||
// 结算
|
||||
settlementOrder() {
|
||||
if(!this.debounce) return;
|
||||
this.debounce = false;
|
||||
if(!this.checkedGoods.length) return false;
|
||||
// 拼接后端需要的数据形式
|
||||
let id = [], temp = '';
|
||||
@@ -108,6 +113,9 @@ export default {
|
||||
this.$u.route({
|
||||
url: '/pageC/cart/ConfirmOrder'
|
||||
})
|
||||
} else {
|
||||
this.$u.toast(res.message);
|
||||
this.debounce = true;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user