diff --git a/api/store.js b/api/store.js
index c0beaa5..3a65020 100644
--- a/api/store.js
+++ b/api/store.js
@@ -69,6 +69,10 @@ export function getCategoryList() {
noAuth: true
});
}
+// 获取全部商品分类
+export function getProductCate(data) {
+ return request.get('store/product/category/list', data);
+}
/**
* 获取产品列表
* @param object data
diff --git a/api/wine.js b/api/wine.js
new file mode 100644
index 0000000..e38a3eb
--- /dev/null
+++ b/api/wine.js
@@ -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);
+}
+
diff --git a/pages.json b/pages.json
index d60ca9b..e301aad 100644
--- a/pages.json
+++ b/pages.json
@@ -1402,6 +1402,18 @@
}
]
},
+ {
+ "root": "pages/wine",
+ "name": "wine",
+ "pages": [
+ {
+ "path": "goods_list",
+ "style": {
+ "navigationBarTitleText": "商品列表"
+ }
+ }
+ ]
+ },
{
"root": "pages/other",
"name": "other",
diff --git a/pages/wine/goods_list.vue b/pages/wine/goods_list.vue
new file mode 100644
index 0000000..b72a2e8
--- /dev/null
+++ b/pages/wine/goods_list.vue
@@ -0,0 +1,1341 @@
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+ {{ brand_name || '品牌' }}
+
+
+
+ {{ cate_name || '分类' }}
+
+
+
+ {{ mer_name || '酒道馆' }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.store_name }}
+ {{ item.distance_text || '' }}
+
+
+ {{ item.price }}积分
+ ¥{{ item.price }}
+
+
+
+ 库存:{{ item.stock }}{{ item.unit_name }}
+
+
+ 起购:{{ item.once_min_count }} {{ item.unit_name }}
+
+
+
+
+
+
+
+
+
+
+ 额度不足
+
+
+
+
+
+
+
+
+
+ {{ item.batch_unit }} 共{{ (buyList[item.product_id].total_num || 0) * (buyList[item.product_id].batch_num || 1) }}{{ item.unit_name }}
+
+ {{ item.unit_name }}
+
+
+
+
+
+
+
+
+
+
+ {{ totalNum > 99 ? '99+' : totalNum }}
+
+
+ 合计:{{ totalPrice }}积分
+
+
+
+ 立即结算
+ 立即结算
+ 剩余额度:{{ surplus_available }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentGoods.store_name }}
+
+ {{ currentGoods.selected.price || 0 }}积分
+
+ ¥
+ {{ currentGoods.selected.price || '' }}
+
+
+
+ 库存:{{ Math.floor((currentGoods.selected.stock || 0) / currentGoods.batch_num) }}
+
+ 库存:{{ currentGoods.selected.stock || '' }}
+
+
+
+
+
+
+ {{ item.attr_name || '' }}
+
+
+ {{ specItem || '' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentGoods.batch_unit }} 共{{ (specInputValue) * (buyList[currentGoods.product_id].batch_num || 1) }}{{ currentGoods.unit_name }}
+
+ {{ currentGoods.unit_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+