6.24
This commit is contained in:
@@ -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 => {
|
||||
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user