添加:酒道馆商品购买页面及相关数据渲染
This commit is contained in:
parent
e654482b2a
commit
0fcf6d6992
|
|
@ -69,6 +69,10 @@ export function getCategoryList() {
|
|||
noAuth: true
|
||||
});
|
||||
}
|
||||
// 获取全部商品分类
|
||||
export function getProductCate(data) {
|
||||
return request.get('store/product/category/list', data);
|
||||
}
|
||||
/**
|
||||
* 获取产品列表
|
||||
* @param object data
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
import request from "@/utils/request.js";
|
||||
|
||||
// 酒道馆列表
|
||||
export function wineList(data) {
|
||||
return request.get(`wine/list`, data);
|
||||
}
|
||||
// 酒道馆商品列表
|
||||
export function wineGoodsList(data) {
|
||||
return request.get(`wine/goods_list`, data);
|
||||
}
|
||||
// 酒道馆商品兑换购物车 - 获取购物车列表
|
||||
export function wineWithGoodsCartList() {
|
||||
return request.get(`wine/cart_list`);
|
||||
}
|
||||
// 酒道馆商品兑换购物车 - 获取购物车所有商品id
|
||||
export function wineWithGoodsCartIds() {
|
||||
return request.get(`wine/cart_ids`);
|
||||
}
|
||||
// 酒道馆商品兑换购物车 - 添加商品
|
||||
export function wineWithGoodsCartAdd(data) {
|
||||
return request.post(`wine/cart_add`, data);
|
||||
}
|
||||
// 酒道馆商品兑换购物车 - 删除商品
|
||||
export function wineWithGoodsCartDel(data) {
|
||||
return request.post(`wine/cart_del`, data);
|
||||
}
|
||||
|
||||
12
pages.json
12
pages.json
|
|
@ -1402,6 +1402,18 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/wine",
|
||||
"name": "wine",
|
||||
"pages": [
|
||||
{
|
||||
"path": "goods_list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品列表"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/other",
|
||||
"name": "other",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue