product-detail-header.wxml
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<wxs src="../helper.wxs" module="helper" />
<view class="product_countdown" wx:if="{{product.status === 2 && formatTimeList.length > 0}}" hidden="{{ show }}">
<view class="countdown_label">
<text class="countdown_labeltext">抽奖</text>
<text class="countdown_labeltext">倒计时</text>
</view>
<view wx:for="{{formatTimeList}}" wx:key="">
<view class="num-wrapper">
<view class="mask"></view>
<text class="num-text">{{item}}</text>
<view class="mask-left"></view>
<view class="mask-right"></view>
</view>
<view class="number-seprator" wx:if="{{index !== 2}}">:</view>
</view>
</view>
<view class="next-preview" wx:if="{{product.status === 1 || product.status >= 3}}" hidden="{{ show }}">
<text class="next-tip">{{product.status === 1 ? '下一场活动时间' : '活动时间'}}</text>
<text class="next-time">{{nextActivityTime}}</text>
</view>
<view class="avatarcontainer">
<view class="avatars" wx:if="{{avatars.length > 0 && !show}}">
<avatars list="{{avatars}}"></avatars>
</view>
<image class="product_image" src="{{product.cover_img}}"></image>
</view>
<view class="product_name">{{product.name}}</view>
<view class="product_lucky_bg">
<view class="product_lucky">
<text>原价购</text>
<text class="price-info">{{product.lottery_price}}</text>
</view>
<view class="product_price">
<text>市场参考价</text>
<text class="price-info line">{{product.price}}</text>
</view>
</view>