<!-- pages/discountDetail/discountDetail.wxml -->
<view class="discount-detail">
  <view class="{{['banner' , discountDetail.mobilePic ? '' : 'no-bg']}}">
    <image class="bg" src="{{discountDetail.mobilePic}}" />
    <view class="text-box">
      <view class="time">
        <view class="text">距结束</view>
        <view class="number">{{hour}}</view>
        <view class="colon">:</view>
        <view class="number">{{min}}</view>
        <view class="colon">:</view>
        <view class="number">{{second}}</view>
      </view>
      <view class="info">{{discountDetail.discountName}}</view>
      <view class="shop">{{discountDetail.shopName}}专场</view>
    </view>
  </view>
  <view class="discount-prod">
    <view class="item" wx:for="{{discountProdList}}" wx:key="prodId" bindtap="toDiscountProdDet" data-prodid="{{item.prodId}}">
      <view class="img">
        <image src="{{item.pic}}" />
      </view>
      <view class="msg">
        <view class="name-des">
          <view class="name">{{item.prodName}}</view>
          <view class="des">{{item.brief}}</view>
        </view>
        <view class="price-btn">
          <view class="price-box">
            <view class="price">
              <text class="symbol">￥</text>
              <text class="big">{{wxs.parsePrice(item.activityPrice)[0]}}</text>
              <text class="small">.{{wxs.parsePrice(item.activityPrice)[1]}}</text>
            </view>
            <view class="old-price">￥{{wxs.toPrice(item.price)}}</view>
          </view>
          <view class="btn">立即抢购</view>
        </view>
      </view>
    </view>
  </view>
</view>
<wxs module="wxs" src="../../wxs/number.wxs" />