<!--packageI/offline_investment/offlineInvestmentIndex/offlineInvestmentIndex.wxml-->
<view class="container">
  <view class="countdown">
    <block wx:if="{{info.status==1&&(info.end_time>currentTime)}}">
      <view>距离活动结束还剩</view>
      <van-count-down use-slot time="{{ (info.end_time-currentTime)*1000 }}" bind:change="onChangeTime">
        <view class="bottom_time">
          <text class="radius-box">{{ timeData.days }}</text>
          <text class="text">天</text>
          <text class="radius-box">{{ timeData.hours }}</text>
          <text class="text">:</text>
          <text class="radius-box">{{ timeData.minutes }}</text>
          <text class="text">:</text>
          <text class="radius-box">{{ timeData.seconds }}</text>
        </view>
      </van-count-down>
    </block>
    <block wx:elif="{{info.status==0&&(info.start_time>currentTime)}}">
      <view>距离活动开始还剩</view>
      <van-count-down use-slot time="{{ (info.start_time-currentTime)*1000 }}" bind:change="onChangeTime">
        <view class="bottom_time">
          <text class="radius-box">{{ timeData.days }}</text>
          <text class="text">天</text>
          <text class="radius-box">{{ timeData.hours }}</text>
          <text class="text">:</text>
          <text class="radius-box">{{ timeData.minutes }}</text>
          <text class="text">:</text>
          <text class="radius-box">{{ timeData.seconds }}</text>
        </view>
      </van-count-down>
    </block>
    <block wx:elif="{{info.status == -1}}">
      <view>活动已结束</view>
    </block>
    <block wx:elif="{{info.status == 0}}">
      <view>活动未开始</view>
    </block>
  </view>
  <view class="notice">
    <view class="notice-title">{{ info.title}}</view>
  </view>

  <view class="goods-list">
    <view class="good-child" wx:for="{{info.goods}}" wx:key="id" data-item="{{item}}" catchtap="openGoodsDetail">
      <view class="good-img">
        <image src="{{item.thumb}}"></image>
      </view>
      <view class="good-info">
        <view class="good-title">{{item.title}}</view>
        <view class="good-buy">
          <view class="good-price">
            {{language['money']}}
            <view class="price">{{item.price}}</view>
            <text wx:if="{{item.has_option==1}}">起</text>
          </view>
          <view class="buy-btn">立即购买</view>
        </view>
      </view>
    </view>
  </view>
</view>

<block wx:if="{{specsShow}}">
  <yz-specs goodsInfo="{{hand_goods_obj}}" cartList="{{carList}}" popupSpecs="{{specsShow}}"
    bind:closeSpecsPopup="close_yz_specs_popup"></yz-specs>
</block>

<yz-goodsPopup show="{{goodsPopupShow}}" bind:addCart="goodsDetailCartAdd" goodsInfo="{{hand_goods_obj}}">
</yz-goodsPopup>