From dd3759d17e04676750cb85b17e6c2e2918ffebea Mon Sep 17 00:00:00 2001 From: taiyuan Date: Wed, 3 Nov 2021 17:08:32 +0800 Subject: [PATCH] 幸运购商品详情页 --- pages/goods/goodsInfo/goodsInfo.js | 5 ++++- pages/goods/goodsInfo/goodsInfo.wxml | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- pages/goods/goodsInfo/goodsInfo.wxss | 19 ++++++++++++++++++- 3 files changed, 106 insertions(+), 4 deletions(-) diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index e0492f8..c93d58c 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -4255,9 +4255,12 @@ Page({ context.setTextAlign('left'); context.fillText('强烈推荐', 64*unit, 672*unit); // 7.商品价格 + let price = '¥' + this.data.data.shop_price; + // if (th.data.prom_act) + // pri0 = th.data.prom_act.price; context.setFontSize(32*unit); context.setFillStyle('#DE1117'); - context.fillText('¥59.00', 54*unit, 730*unit); + context.fillText(price, 54*unit, 730*unit); // 8.商品标题 context.setFontSize(20*unit); context.setFillStyle('#898989'); diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index 7bbc713..6a12859 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -87,7 +87,8 @@ 零售价¥{{filters.toFix(data.market_price,2)}} - + + + + + + 已成团{{prom_act.buy_num}}期 + + + + + {{prom_act.ct_num}}人团 + + + 距活动结束还有 距活动开始还有 @@ -204,6 +217,72 @@ + + + + + + @@ -491,6 +570,9 @@ + + + diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss index 9b84b77..66fc945 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxss +++ b/pages/goods/goodsInfo/goodsInfo.wxss @@ -2858,4 +2858,21 @@ button.custom-service::after{ color: #fff; } -.mt20{ margin-top: 20rpx} \ No newline at end of file +.mt20{ margin-top: 20rpx} + +.group .group-list.luck { + padding: 0 20rpx; + justify-content: flex-start; +} + +.group-list.luck .gtou ~ .gtou { + margin-left: -16rpx; +} + +.gtou.more { + background-color: #ddd; + text-align: center; + line-height: 70rpx; + border-radius: 50%; + color: #aaa; +} \ No newline at end of file -- libgit2 0.21.4