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

@@ -1,6 +1,10 @@
export default {
init(vm){
return {
// 获取商城首页信息(顶部轮播图与商品分类)
getShopTopList(){
return vm.$u.post('Shop/getShopTopList');
},
// 商品推荐
getGoodsRecommend({page}){
return vm.$u.post('Goods/getGoodsRecommend', {
@@ -10,7 +14,11 @@ export default {
// 购物车商品列表
getCartList() {
return vm.$u.post('cart/cartList');
}
},
// 购物车商品列表(树结构)
getCartTreeList() {
return vm.$u.post('cart/cartTreeList');
},
}
}