diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue index e505028..075b1da 100644 --- a/components/m-buy/goods.vue +++ b/components/m-buy/goods.vue @@ -36,29 +36,30 @@ -
- - ¥ - {{ - formatPrice(goodsDetail.price)[0] - }} - .{{ formatPrice(goodsDetail.price)[1] }} - -
+ -
-
- +
+
+ {{ - formatPrice(goodsDetail.price)[0] + formatPrice(item.price)[0] }} - .{{ formatPrice(goodsDetail.price)[1] }} + .{{ formatPrice(item.price)[1] }} + + + {{item.num}}{{goodsDetail.goodsUnit}}
-
- 23-30 -
+
+
+ + ¥ + {{ + formatPrice(goodsDetail.price)[0] + }} + .{{ formatPrice(goodsDetail.price)[1] }} +
@@ -132,10 +133,15 @@ formatList: [], currentSelceted: [], skuList: "", - isClose: false, //是否可以点击遮罩关闭 + isClose: false, //是否可以点击遮罩关闭 + }; }, - props: { + props: { + wholesaleList:{ + type: null, + default: false, + }, buyMask: { type: Boolean, default: false, @@ -164,6 +170,14 @@ default: "", type: null, }, + }, + computed: { + wholesalePrice(key){ + return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.price }) :[] + }, + wholesaleNum(key){ + return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.num }) :[] + } }, watch: { num(val){ @@ -454,6 +468,11 @@ border-radius: 30rpx; } } + } + .wholesale-item{ + color: #999 !important; + font-size: 24rpx; + margin:0 20rpx; } .goods-header { diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index d0da958..72b4929 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -164,12 +164,16 @@
+
+ +
满减 秒杀
+
已售 {{ item.content.buyCount || "0" }} {{ item.content.commentNum || "0" }}条评论 diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 5125e34..0f24955 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -347,7 +347,8 @@ :isGroup="isGroup" :id="productId" v-if="goodsDetail.id" - :pointDetail="pointDetail" + :pointDetail="pointDetail" + :wholesaleList="wholesaleList" @handleClickSku="selectSku" :buyMask="buyMask" /> @@ -522,7 +523,8 @@ export default { startTimer: false, //未开启 是false routerVal: "", - IMLink: "", // IM地址 + IMLink: "", // IM地址 + wholesaleList:[] }; }, @@ -661,6 +663,7 @@ export default { } /**商品信息以及规格信息存储 */ this.goodsDetail = response.data.result.data; + this.wholesaleList = response.data.result.wholesaleList; this.goodsSpec = response.data.result.specs; this.PromotionList = response.data.result.promotionMap; this.goodsParams = response.data.result.goodsParamsDTOList || []; diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index 0623bfa..c4b234f 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -74,6 +74,7 @@

{{skuItem.goodsSku.simpleSpecs}}

+

批发商品