This commit is contained in:
2020-08-03 14:34:56 +08:00
parent 7ae10c200d
commit af768bff80
11 changed files with 258 additions and 36 deletions

View File

@@ -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;
}
})
},