<noticePopup show="{{show}}">
  <view class="content">
    <text class="close" bindtap="close">X</text>
    <view class="title">参与 <text class="userName">{{showObj.users[0].nickname}}</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 class="subtitle" 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="useHeadImg">
      <view class="userList" wx:for="{{showObj.users}}"wx:for-index="i" wx:key="unique">
        <image src="{{item.avatar}}"></image>
        <view class="headUser" wx:if="{{i==0}}">团长</view>
      </view>
      <view class="empty" wx:for="{{showObj.total <= 0 ? '0':(showObj.next-showObj.total)}}" wx:key="*this">?</view>
    </view>
    <view class="btn">
      <button type="warn" plain bindtap="signUp">单独报名</button>
      <button type="warn" bindtap="{{(showObj.status==4 || showObj.status==2)?'newGroup':'joinGroup'}}">{{(showObj.status==4 || showObj.status==2)?'新开拼团':'一键参团'}}</button>
    </view>
  </view>
</noticePopup>
