<popup show="{{show}}" opacity='5' bindclose="closeTip">
  <view class="content">
    <view class="invite-user" wx:if="{{shareInfo.sharer && skuInfo.sessionName && skuInfo.mealsName}}">
      <view class="active-title"><text class="subtitleColor name">{{shareInfo.sharer}} </text>已报名 <text style="font-weight: bold;">{{skuInfo.sessionName}} / {{skuInfo.mealsName}}</text></view>
      <view class="active-tip">并邀请你一起{{shareInfo.groupid?'拼团':''}}报名</view>
    </view>
    <view class="invite-user" wx:else>
      <text class="subtitleColor name">{{shareInfo.sharer}} </text>邀请你一起拼团报名
    </view>
    <view class="invite-group" wx:if="{{shareInfo.groupid}}">
      <view class="groupText" wx:if="{{datas.status == 0}}">
        <text wx:if="{{datas.before != 0 && datas.times < 0}}">已成{{datas.before}}人团,</text>
        差<text class="subtitleColor">{{datas.total <= 0 ? '0':(datas.next-datas.total)}}</text>人成<text class="subtitleColor">{{datas.next}}人团</text>
      </view>
      <view class="groupText" wx:if="{{datas.status == 4}}">
        此团<text class="subtitleColor">已过期</text>
      </view>
      <view class="groupText" wx:if="{{datas.status == 2}}">
        此团<text class="subtitleColor">已满员</text>
      </view>
      <view class="subtitle" wx:if="{{datas.status == 0 && datas.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="group-persons">
        <view class="group-persons-img" wx:for="{{datas.users}}" wx:key="userId">
          <image src="{{item.avatar}}" class="headImg"></image>
        </view>
        <view class="group-persons-img" wx:for="{{(datas.next-datas.total)}}" wx:key="index">
          <view src="" class="headImg no-people">?</view> 
        </view>
      </view>
    </view>
    <view class="btn-bottom">
      <button type="warn" plain bindtap="close" id="Later">我再看看</button>
      <button type="warn" bindtap="signup" id="participate">{{(shareInfo.sharer || skuInfo.sessionName || skuInfo.mealsName)&&shareInfo.groupid && datas.status ==0?'一键参团':((shareInfo.sharer || skuInfo.sessionName || skuInfo.mealsName) && !shareInfo.groupid ?'立即报名':'新开拼团') }}</button>
    </view>
  </view>
</popup>