<!--packageG/limitedTimeGoods/item.wxml-->

<view class="goods">
  <view class="face">
    <image src="{{item.thumb}}" />
  </view>
  <view class="container">
    <view class="goods-name">{{item.title}}</view>
    <view class="time">
      活动仅剩
      <van-count-down use-slot time="{{item.end_time*1000 - currentTime}}" bind:change="onChange">
        <view class="bottom_time">
          <text class="em" style="padding: 0.125rem; border-radius: 0.125rem;">{{ timeData.days <10 ? ('0'+timeData.days) : timeData.days}}</text>
              <text class="b">天</text>
              <text class="em" style="padding: 0.125rem; border-radius: 0.125rem;">{{ timeData.hours <10 ? ('0'+timeData.hours) : timeData.hours}}</text>
                  <text class="b">时</text>
                  <text class="em" style="padding: 0.125rem; border-radius: 0.125rem;">{{ timeData.minutes <10 ? ('0'+timeData.minutes) : timeData.minutes}}</text>
                      <text class="b">分</text>
                      <text class="em" style="padding: 0.125rem; border-radius: 0.125rem;">{{ timeData.seconds <10 ? ('0'+timeData.seconds) : timeData.seconds}}</text>
        </view>
      </van-count-down>
    </view>
    <view class="desc">
      <view class="prices">
        <view class="present_price">￥{{item.price}}</view>
        <view class="marke_price" wx:if="{{(item.market_price*1) > (item.price*1)}}">￥{{item.market_price}}</view>
      </view>
      <view class="btn" bindtap="gotoTimeGood">立即抢</view>
    </view>
  </view>
</view>