修改购物车页面

This commit is contained in:
TOP糯米 2023-02-25 14:51:55 +08:00
parent 7ac5846bcc
commit de3547c79b
1 changed files with 34 additions and 34 deletions

View File

@ -54,7 +54,19 @@ export default {
name: "order-cart", name: "order-cart",
data() { data() {
return { return {
list: [ list: [],
};
},
components: {
AppLayout,
WidgetTips,
WidgetCheckBox,
WidgetCountModify,
WidgetLoadMore,
ServicePreviewItem,
},
onLoad() {
this.list = this.parseList([
{ {
id: 1, id: 1,
name: "空调安装", name: "空调安装",
@ -85,19 +97,7 @@ export default {
}, },
], ],
}, },
], ]);
};
},
components: {
AppLayout,
WidgetTips,
WidgetCheckBox,
WidgetCountModify,
WidgetLoadMore,
ServicePreviewItem,
},
onLoad() {
this.list = this.parseList(this.list);
}, },
onShow() {}, onShow() {},
onReady() {}, onReady() {},
@ -137,7 +137,7 @@ export default {
} }
}); });
this.list[parentIndex].checked = allChecked; this.list[parentIndex].checked = allChecked;
this.$forceUpdate(); // this.$forceUpdate();
}, },
changeNumber(e, d) { changeNumber(e, d) {
console.log(e); console.log(e);