diff --git a/api/shop.js b/api/shop.js
new file mode 100644
index 00000000..81eaae32
--- /dev/null
+++ b/api/shop.js
@@ -0,0 +1,9 @@
+export const apiArr = {
+ goodsCateList: "/api/v2/wechat/commodity/cate",//商品分类列表
+ getGoodsList:"/api/v2/wechat/commodity", //商品分类
+ getGoodsInfo:"/api/v2/wechat/commodity/info", //商品详情
+ getCar:"/api/v2/wechat/commodity/cart",//购物车
+ getCarCount:"/api/v2/wechat/commodity/cart/all_count",//购物车数量
+ addCar:"/api/v2/wechat/commodity/cart/add",//添加购物车
+ deleteCar:"/api/v2/wechat/commodity/cart/delete",//删除购物车
+}
\ No newline at end of file
diff --git a/packages/shop/goods/index.css b/packages/shop/goods/index.css
index b481cf2e..6074c610 100644
--- a/packages/shop/goods/index.css
+++ b/packages/shop/goods/index.css
@@ -363,4 +363,9 @@ image {
.shadowboxInfo_right_2 {
font-size: 26rpx;
color: #999999;
+}
+
+.active{
+ background: #FF370B;
+ color: #fff;
}
\ No newline at end of file
diff --git a/packages/shop/goods/index.vue b/packages/shop/goods/index.vue
index 9548a152..e332392d 100644
--- a/packages/shop/goods/index.vue
+++ b/packages/shop/goods/index.vue
@@ -8,83 +8,90 @@
-
-
-
-
-
-
+
+
+
- 1/5
+ {{ currentIndex }} /{{ currentGG.goods_carousel.length }}
-
¥
25.9
/箱
+
¥
{{ currentGG.sales_price }}
/{{ currentGG.goods_unit }}
+
-
¥45.00
+
¥{{ currentGG.market_price }}
-
3KG/箱
+
+ {{ item.goods_spec }} / {{ item.goods_unit }}
+
-
共8款
+
共{{ info.commodity_goods_info_list.length }}款
- 新疆库尔勒香梨全母梨子新鲜孕妇水果整箱小10斤精选旗舰店包邮直发
- 新疆库尔勒香梨全母梨子新鲜孕妇水果整箱小10斤精选旗舰店包邮直发
+ {{ currentGG.goods_name }}
+ {{ currentGG.commodity_brief }}
商品详情
商品编号
-
008475709
+
{{ currentGG.goods_no }}
规格说明
-
23*10*10箱
+
{{ currentGG.goods_spec }}
-
商品编号
-
箱
+
售卖单位
+
{{ currentGG.goods_unit }}
-
+
-
+
分享
-
-
+
加入购物车
-
-
+
+
- {{ value }}
+ {{
+ info[currentGGIndex].cart_count.count }}
@@ -96,11 +103,13 @@
@@ -111,7 +120,9 @@
今日商品推荐
-
+
+
@@ -132,9 +143,10 @@
diff --git a/packages/shop/index/index.css b/packages/shop/index/index.css
index de7cfcc3..8a6c4b7a 100644
--- a/packages/shop/index/index.css
+++ b/packages/shop/index/index.css
@@ -87,7 +87,12 @@ page {
margin-right: 40rpx;
}
-.slide_item {}
+.slide_item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
.slide_item image {
width: 100rpx;
@@ -299,10 +304,10 @@ page {
.CateList_Item {
min-width: 110rpx;
- width: 100rpx;
height: 40rpx;
background: #F6F7FB;
border-radius: 10rpx 10rpx 10rpx 10rpx;
+ padding: 5rpx 30rpx;
font-size: 26rpx;
color: #222222;
display: flex;
@@ -401,6 +406,7 @@ page {
padding-right: 0;
position: absolute;
z-index: 9;
+ width: 100%;
}
.activeCateList .CateList_Item {
@@ -469,6 +475,7 @@ page {
.GGItem {
display: flex;
align-items: center;
+ margin-bottom: 10rpx;
}
.GGItem_Image {
diff --git a/packages/shop/index/index.vue b/packages/shop/index/index.vue
index f8889c34..9cedb3a7 100644
--- a/packages/shop/index/index.vue
+++ b/packages/shop/index/index.vue
@@ -2,7 +2,6 @@