优化购物车页面
This commit is contained in:
parent
9a92cdf1f0
commit
68f0622384
|
@ -84,8 +84,20 @@ export default {
|
|||
cart: (state) => state.cart.cart,
|
||||
}),
|
||||
},
|
||||
onLoad() {},
|
||||
async onShow() {
|
||||
onLoad() {
|
||||
this.initPage();
|
||||
},
|
||||
onShow() {},
|
||||
onReady() {},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
onShareTimeline() {},
|
||||
onShareAppMessage() {},
|
||||
methods: {
|
||||
/**
|
||||
* 初始化页面
|
||||
*/
|
||||
async initPage() {
|
||||
await this.$store.dispatch("cart/update");
|
||||
this.list = [];
|
||||
this.cart.list.forEach((item) => {
|
||||
|
@ -110,12 +122,6 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
onReady() {},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
onShareTimeline() {},
|
||||
onShareAppMessage() {},
|
||||
methods: {
|
||||
/**
|
||||
* 选中组
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue