<view class="groupContent">
  <!-- 拼团 -->
  <view class="preferential no-preferential" wx:if="{{showObj.users.length > 0 && showObj.users &&(presell.status == 0 || !presell.status)}}">
    <view class="preferential-text preferential-text2" style="margin-left:0;">
    <view class="head">
      <image src="{{item.avatar}}" wx:for="{{showObj.users}}" wx:key="unique" wx:if="{{index<3}}"></image>
    </view>
    <!-- 倒计时 -->
    <view class="time" wx:if="{{showObj.status == 0 && showObj.times>0}}">
      <text>剩余：</text>
      <text class='time-m'>{{updateTime.hour}}</text><text class="i">:</text>
      <text class='time-m'>{{updateTime.minite}}</text><text class="i">:</text>
      <text class='time-m'>{{updateTime.second}}</text>
    </view>
    <view class="groupText" wx:if="{{showObj.status == 0}}">
      <text wx:if="{{showObj.before != 0 && showObj.times < 0}}">已成{{showObj.before}}人团,</text>
      差<text class="subtitleColor">{{showObj.total <= 0 ? '0':(showObj.next-showObj.total)}}</text>人成<text class="subtitleColor">{{showObj.next}}人团</text>
    </view>
    <view class="groupText" wx:if="{{showObj.status == 4}}">
      此团<text class="subtitleColor">已过期</text>
    </view>
    <view class="groupText" wx:if="{{showObj.status == 2}}">
      此团<text class="subtitleColor">已满员</text>
    </view>
    </view>
    <view class="preferential-after">
    <button bindtap="newGroup" class="button {{buttonClass != 'disabled' ? 'button-warn':'disabled'}} button-mini button-radius {{showObj.status == 0 ? 'create_group':''}}" data-createGroup="{{showObj.status == 2 ? 1:(showObj.status == 4 ? 1:0)}}">{{showObj.status == 2 ? '新开拼团':(showObj.status == 4 ? '新开拼团':'一键参团')}}</button>
    </view>
  </view>

  <!-- 活动预定-制度尾款 -->
  <view class="preferential no-preferential" wx:if="{{presell.status && presell.status != 0 && presellOpen==0}}">
    <view class="preferential-text" style="margin-left:0;text-align: center;">
      {{presellPayEndTime}}之后，将无法支付预付金尾款。
    </view>
    <view class="preferential-after">
    <button bindtap="jumpBalancePayment" class="button button-warn button-mini button-radius">支付尾款</button>
    </view>
  </view>
</view>
