From 1dc42e13336e92b7bbe61d43f4df2974c15548ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 27 May 2022 10:32:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-buy/goods.vue | 926 +++++++++++++++++++------------------ 1 file changed, 464 insertions(+), 462 deletions(-) diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue index cca176f..e505028 100644 --- a/components/m-buy/goods.vue +++ b/components/m-buy/goods.vue @@ -1,515 +1,517 @@ + .promotion-box { + line-height: 1; + display: flex; + align-items: center; + text-decoration: line-through; + color: #999; + margin-left: 10rpx; + + /deep/ span { + font-size: 30rpx; + } + } + + .promotion { + font-size: 30rpx; + } + + .goods-price-promotionShow { + font-size: 48rpx; + } + + .goods-check-skus { + font-size: 24rpx; + color: #999; + + >.goods-check-skus-name { + margin-left: 4rpx; + } + + >span { + color: #333; + } + } + From 6e04a5d3daa26db7b84c7eea5b9d84275525d61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 27 May 2022 18:17:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=B9=E5=8F=91=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-buy/goods.vue | 57 +++++++++++++++++--------- pages/navigation/search/searchPage.vue | 4 ++ pages/product/goods.vue | 7 +++- pages/tabbar/cart/cartList.vue | 1 + 4 files changed, 48 insertions(+), 21 deletions(-) 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}}

+

批发商品