<!--packageI/newGroup/zhpgroupDetail/zhpgroupDetail.wxml-->
<view class="group_detail">
  <view class="content">
    <view class="goods_list">
      <view class="goods_box" catchtap="goDetail" data-key="detail">
        <view class="goods_img">
          <image src="{{goods.thumb}}" catchtap="gotoGoods" />
        </view>
        <view class="goods_info ul">
          <view class="name li" style="-webkit-box-orient: vertical;">
            {{ goods.title }}
          </view>
          <view class="price li">
            <text class="span">{{language['money']}}</text>
            {{ goods.group_price }}
            <text class="span">{{language['money']}}{{ goods.price }}</text>
          </view>
        </view>
      </view>
    </view>
    <view class="into_group">
      <block>
        <view class="title">
          <view class="line_left"></view>
          <text class="span">{{active_status}}</text>
          <view class="line_right"></view>
        </view>
        <view class="time" style="color:#fff;text-align: center;" wx:if="{{status != null && status != 2}}">
          <van-count-down use-slot time="{{ countDownTime }}" bind:change="onChange" bind:finish="finishChange">
            <text class="tui-conutdown-box">{{ timeData.days < 10 ? '0' + timeData.days : timeData.days }}</text><view class="txtTa">天</view>
            <text class="tui-conutdown-box">{{ timeData.hours < 10 ? '0' + timeData.hours : timeData.hours }}</text><view class="txtTa">时</view>
            <text class="tui-conutdown-box">{{ timeData.minutes < 10 ? '0' + timeData.minutes : timeData.minutes}}</text><view class="txtTa">分</view>
            <text class="tui-conutdown-box">{{ timeData.seconds < 10 ? '0' + timeData.seconds : timeData.seconds }}</text><view class="txtTa">秒</view>
          </van-count-down>
        </view>
      </block>
      <button type="button" class="btn" open-type="{{ action==2 && isAddGroup?'share':'' }}" catchtap="clickBtn">
        {{btnTest}}
      </button>
    </view>
    <view class="group_user">
      <view class="h2">参团组员</view>
      <swiper style="height: 160rpx;" autoplay="{{true}}" interval="3000" vertical="{{true}}" bindchange="swiperUser" data-key="user" 
        wx:if="{{Participants.length > 0}}">
        <swiper-item wx:for="{{Participants}}" wx:key="index">
          <view class="user_box">
            <view class="user" wx:for="{{item}}" wx:for-item='child' wx:key="index" wx:key-item="i">
              <view class="img">
                <image src="{{child.avatar}}" />
              </view>
            </view>
          </view>
        </swiper-item>
      </swiper>
      <block wx:if="{{Participants.length <= 0}}">
        <view style="text-align: center;font-size: 32rpx;color: #6666;">暂无拼团成员</view>
      </block>
    </view>
    <view class="group_user">
      <view class="h2">历史拼中记录</view>
      <block wx:if="{{activiyWinMember.length <= 0}}">
        <view style="text-align: center;text-align: center;font-size: 32rpx;color: #6666;">暂无信息</view>
      </block>
      <block wx:if="{{activiyWinMember.length > 0}}">
        <swiper style="height: 200rpx;" autoplay="{{true}}" interval="3000" vertical="{{true}}" bindchange="swiperUser_2" data-key="member">
          <swiper-item wx:for="{{activiyWinMember}}" wx:key="index">
            <view class="user_box">
              <view class="user" wx:for="{{item}}" wx:for-item='child' wx:key="index" wx:key-item="i">
                <view class="img">
                  <image src="{{child.avatar}}" />
                </view>
              </view>
            </view>
          </swiper-item>
        </swiper>
      </block>
    </view>
  </view>
</view>