product-detail-header.wxml 1.03 KB
<wxs src="./helper.wxs" module="helper"/>
<view wx:if="{{product.status === 2}}" hidden="{{ show }}">
  <view class="countdown_label">
    <text class="countdown_labeltext">抽奖</text>
    <text class="countdown_labeltext">倒计时</text>
  </view>

  <time-countdown class="product_countdown" wx:if="{{product.status === 2}}"
                  endTime="{{product.end_time}}"></time-countdown>
</view>


<view class="avatarcontainer">
  <view class="avatars" wx:if="{{product.status === 2 && 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 class="lucky">0</text>
  </view>
  <view class="product_price">原价:<text class="line">{{product.price}}</text></view>
</view>
<view wx:if="{{product.status !== 2}}" class="product_time">{{helper.formatTime(product.start_time,
  product.end_time)}}
</view>