This commit is contained in:
2020-06-24 16:39:31 +08:00
parent 8c993da2cd
commit 28e80b49ff
14 changed files with 132 additions and 54 deletions

View File

@@ -48,8 +48,14 @@ export default {
status: '编辑',
list: [
{
// 店铺信息
member_id: 1,
store_id: 1,
store_name: "官方自营店铺",
// 店铺下的商品列表
goods: [
{
// 商品信息
checked: false
},
{
@@ -74,14 +80,21 @@ export default {
}
},
onLoad() {
this.getCartList();
// this.getCartList();
},
methods: {
getCartList() {
this.$u.api.getCartList().then((res)=>{
this.$u.api.getCartTreeList().then((res)=>{
if (res.errCode == 0) {
console.log(res);
let cartList = []
this.list = res.data.store_cart_list;
// Object.assign(this, { checked });
this.list.forEach(store => {
store
store.forEach(goods => {
})
})
}
})
},