Commit dd3759d17e04676750cb85b17e6c2e2918ffebea
1 parent
ccea7b80
幸运购商品详情页
Showing
3 changed files
with
106 additions
and
4 deletions
pages/goods/goodsInfo/goodsInfo.js
| @@ -4255,9 +4255,12 @@ Page({ | @@ -4255,9 +4255,12 @@ Page({ | ||
| 4255 | context.setTextAlign('left'); | 4255 | context.setTextAlign('left'); |
| 4256 | context.fillText('强烈推荐', 64*unit, 672*unit); | 4256 | context.fillText('强烈推荐', 64*unit, 672*unit); |
| 4257 | // 7.商品价格 | 4257 | // 7.商品价格 |
| 4258 | + let price = '¥' + this.data.data.shop_price; | ||
| 4259 | + // if (th.data.prom_act) | ||
| 4260 | + // pri0 = th.data.prom_act.price; | ||
| 4258 | context.setFontSize(32*unit); | 4261 | context.setFontSize(32*unit); |
| 4259 | context.setFillStyle('#DE1117'); | 4262 | context.setFillStyle('#DE1117'); |
| 4260 | - context.fillText('¥59.00', 54*unit, 730*unit); | 4263 | + context.fillText(price, 54*unit, 730*unit); |
| 4261 | // 8.商品标题 | 4264 | // 8.商品标题 |
| 4262 | context.setFontSize(20*unit); | 4265 | context.setFontSize(20*unit); |
| 4263 | context.setFillStyle('#898989'); | 4266 | context.setFillStyle('#898989'); |
pages/goods/goodsInfo/goodsInfo.wxml
| @@ -87,7 +87,8 @@ | @@ -87,7 +87,8 @@ | ||
| 87 | 零售价¥{{filters.toFix(data.market_price,2)}} | 87 | 零售价¥{{filters.toFix(data.market_price,2)}} |
| 88 | </view> | 88 | </view> |
| 89 | </view> | 89 | </view> |
| 90 | - <view class="abs white xc-nanber"> | 90 | + |
| 91 | + <!-- <view class="abs white xc-nanber"> | ||
| 91 | <text class="fs22">已拼{{prom_act.buy_num}}件</text> | 92 | <text class="fs22">已拼{{prom_act.buy_num}}件</text> |
| 92 | <view class="flex" style='margin-top:-34rpx'> | 93 | <view class="flex" style='margin-top:-34rpx'> |
| 93 | <view class="xc-people-img"> | 94 | <view class="xc-people-img"> |
| @@ -95,7 +96,19 @@ | @@ -95,7 +96,19 @@ | ||
| 95 | </view> | 96 | </view> |
| 96 | <view class="t-s fs20 xc-people-val">{{prom_act.ct_num}}人拼</view> | 97 | <view class="t-s fs20 xc-people-val">{{prom_act.ct_num}}人拼</view> |
| 97 | </view> | 98 | </view> |
| 98 | - </view> | 99 | + </view> --> |
| 100 | + | ||
| 101 | + <!-- 幸运购 --> | ||
| 102 | + <view class="abs white xc-nanber" wx:if="{{false}}"> | ||
| 103 | + <text class="fs22">已成团{{prom_act.buy_num}}期</text> | ||
| 104 | + <view class="flex" style='margin-top:-34rpx'> | ||
| 105 | + <view class="xc-people-img"> | ||
| 106 | + <image class="imgs" src="{{prom_st==1? iurl+'/miniapp/images/r_logo_red.png':iurl+'/miniapp/images/r_logo.png'}}"></image> | ||
| 107 | + </view> | ||
| 108 | + <view class="t-s fs20 xc-people-val">{{prom_act.ct_num}}人团</view> | ||
| 109 | + </view> | ||
| 110 | + </view> | ||
| 111 | + | ||
| 99 | <view class="hy-stop word-color fs26 abs" wx:if="{{prom_st==1}}">距活动结束还有</view> | 112 | <view class="hy-stop word-color fs26 abs" wx:if="{{prom_st==1}}">距活动结束还有</view> |
| 100 | <view class="hy-stop word-color-lan fs26 abs" wx:if="{{prom_st==0}}">距活动开始还有</view> | 113 | <view class="hy-stop word-color-lan fs26 abs" wx:if="{{prom_st==0}}">距活动开始还有</view> |
| 101 | <view class="secview flex abs fs24 " style="color: black;right: 3px; top:46rpx;"> | 114 | <view class="secview flex abs fs24 " style="color: black;right: 3px; top:46rpx;"> |
| @@ -204,6 +217,72 @@ | @@ -204,6 +217,72 @@ | ||
| 204 | </view> | 217 | </view> |
| 205 | </view> | 218 | </view> |
| 206 | </view> | 219 | </view> |
| 220 | + | ||
| 221 | + <!-- 幸运购 --> | ||
| 222 | + <view class="pt_fir se2 bdt16" wx:if="{{teamgroup}}" hidden="{{true}}"> | ||
| 223 | + <view class="xc-partner-frame"> | ||
| 224 | + <view class="zzk-1 flex jc_sb" bindtap="go_t_more"> | ||
| 225 | + <view class="pdl10">已参团4人,还差<text class="c-red">1</text>人成团</view> | ||
| 226 | + <view class="ckgd flex ai_c"> | ||
| 227 | + 查看奖励 | ||
| 228 | + <view class="bg_right arrow-one"></view> | ||
| 229 | + </view> | ||
| 230 | + </view> | ||
| 231 | + </view> | ||
| 232 | + <view class='group'> | ||
| 233 | + <view class='group-list luck' bindtap="go_cj_team" data-ind="{{t_ind}}"> | ||
| 234 | + <!-- <view class="flex ai_c"> --> | ||
| 235 | + <!-- //选项框头像 --> | ||
| 236 | + <view class='gtou' wx:for="{{teamgroup}}" wx:for-index="t_ind" wx:key="teamgroup"> | ||
| 237 | + <image src='{{item.user.head_pic}}'></image> | ||
| 238 | + </view> | ||
| 239 | + <view class='gtou more'> | ||
| 240 | + <text class="iconfont icon-sandian"></text> | ||
| 241 | + </view> | ||
| 242 | + <!-- <view class='gtou'> | ||
| 243 | + <image src='{{item.user.head_pic}}'></image> | ||
| 244 | + </view> --> | ||
| 245 | + <!-- //等你来拼 --> | ||
| 246 | + <!-- <view class='gdn ellipsis-1'>{{item.user.nickname}}</view> --> | ||
| 247 | + <!-- </view> --> | ||
| 248 | + <!-- //还差几人,剩余时间 --> | ||
| 249 | + <!-- <view class="rel"> | ||
| 250 | + <view class='ghaicha ellipsis-2'> | ||
| 251 | + <text class='gred' wx:if="{{prom_act.max_ct_num >0}}"> | ||
| 252 | + <text class="flex" wx:if="{{prom_act.max_ct_num - item.open_num>0}}"> | ||
| 253 | + 还差 | ||
| 254 | + <text class="word-color">{{prom_act.max_ct_num - item.open_num}}</text> | ||
| 255 | + 人享最低优惠 | ||
| 256 | + </text> | ||
| 257 | + <text wx:else>您已经享最低优惠</text> | ||
| 258 | + </text> | ||
| 259 | + <text class='gred' wx:else> | ||
| 260 | + 还差 | ||
| 261 | + <text style='color:#ff2753'>{{prom_act.ct_num - item.open_num}}</text> | ||
| 262 | + 人成团 | ||
| 263 | + </text> | ||
| 264 | + <view class="t_show"> | ||
| 265 | + 剩余 | ||
| 266 | + <text wx:if="{{timer[t_ind].day}}">{{timer[t_ind].day}}天:</text> | ||
| 267 | + <text>{{timer[t_ind].hou}}</text> | ||
| 268 | + : | ||
| 269 | + <text>{{timer[t_ind].min}}</text> | ||
| 270 | + : | ||
| 271 | + <text>{{timer[t_ind].sec}}</text> | ||
| 272 | + </view> | ||
| 273 | + </view> | ||
| 274 | + </view> --> | ||
| 275 | + <!-- //参加团 --> | ||
| 276 | + <!-- <view class='cjt t-c'>去参团</view> --> | ||
| 277 | + <!-- <view class="clear"></view> --> | ||
| 278 | + </view> | ||
| 279 | + | ||
| 280 | + <view class="fs24 pdh20 pdt20">*<text class="c-red">5</text>人成团,<text class="c-red">5</text>人得商品,<text class="c-red">5</text>人全额退款并获得<text class="c-red">惊喜礼品</text>!</view> | ||
| 281 | + </view> | ||
| 282 | + </view> | ||
| 283 | + | ||
| 284 | + | ||
| 285 | + | ||
| 207 | </view> | 286 | </view> |
| 208 | <!-- 积分购 --> | 287 | <!-- 积分购 --> |
| 209 | <view wx:if="{{prom_type==4}}"> | 288 | <view wx:if="{{prom_type==4}}"> |
| @@ -491,6 +570,9 @@ | @@ -491,6 +570,9 @@ | ||
| 491 | </view> | 570 | </view> |
| 492 | </view> | 571 | </view> |
| 493 | </block> | 572 | </block> |
| 573 | + | ||
| 574 | + | ||
| 575 | + | ||
| 494 | <!-- 要判断是不是有订单优惠 --> | 576 | <!-- 要判断是不是有订单优惠 --> |
| 495 | <block wx:if="{{order_prom}}"> | 577 | <block wx:if="{{order_prom}}"> |
| 496 | <view class="cx-frame flex" style="position: relative; height: auto"> | 578 | <view class="cx-frame flex" style="position: relative; height: auto"> |
pages/goods/goodsInfo/goodsInfo.wxss
| @@ -2858,4 +2858,21 @@ button.custom-service::after{ | @@ -2858,4 +2858,21 @@ button.custom-service::after{ | ||
| 2858 | color: #fff; | 2858 | color: #fff; |
| 2859 | } | 2859 | } |
| 2860 | 2860 | ||
| 2861 | -.mt20{ margin-top: 20rpx} | ||
| 2862 | \ No newline at end of file | 2861 | \ No newline at end of file |
| 2862 | +.mt20{ margin-top: 20rpx} | ||
| 2863 | + | ||
| 2864 | +.group .group-list.luck { | ||
| 2865 | + padding: 0 20rpx; | ||
| 2866 | + justify-content: flex-start; | ||
| 2867 | +} | ||
| 2868 | + | ||
| 2869 | +.group-list.luck .gtou ~ .gtou { | ||
| 2870 | + margin-left: -16rpx; | ||
| 2871 | +} | ||
| 2872 | + | ||
| 2873 | +.gtou.more { | ||
| 2874 | + background-color: #ddd; | ||
| 2875 | + text-align: center; | ||
| 2876 | + line-height: 70rpx; | ||
| 2877 | + border-radius: 50%; | ||
| 2878 | + color: #aaa; | ||
| 2879 | +} | ||
| 2863 | \ No newline at end of file | 2880 | \ No newline at end of file |