groupWork.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <noticePopup show="{{show}}">
  2. <view class="content">
  3. <text class="close" bindtap="close">X</text>
  4. <view class="title">参与 <text class="userName">{{showObj.users[0].nickname}}</text> 的拼团</view>
  5. <view class="groupText" wx:if="{{showObj.status == 0}}">
  6. <text wx:if="{{showObj.before != 0 && showObj.times < 0}}">已成{{showObj.before}}人团,</text>
  7. 差<text class="subtitleColor">{{showObj.total <= 0 ? '0':(showObj.next-showObj.total)}}</text>人成<text class="subtitleColor">{{showObj.next}}人团</text>
  8. </view>
  9. <view class="groupText" wx:if="{{showObj.status == 4}}">
  10. 此团<text class="subtitleColor">已过期</text>
  11. </view>
  12. <view class="groupText" wx:if="{{showObj.status == 2}}">
  13. 此团<text class="subtitleColor">已满员</text>
  14. </view>
  15. <view class="subtitle" wx:if="{{showObj.status == 0 && showObj.times>0}}">
  16. <text>剩余:</text>
  17. <text class='time-m'>{{updateTime.hour}}</text><text class="i">:</text>
  18. <text class='time-m'>{{updateTime.minite}}</text><text class="i">:</text>
  19. <text class='time-m'>{{updateTime.second}}</text>
  20. </view>
  21. <view class="useHeadImg">
  22. <view class="userList" wx:for="{{showObj.users}}"wx:for-index="i" wx:key="unique">
  23. <image src="{{item.avatar}}"></image>
  24. <view class="headUser" wx:if="{{i==0}}">团长</view>
  25. </view>
  26. <view class="empty" wx:for="{{showObj.total <= 0 ? '0':(showObj.next-showObj.total)}}" wx:key="*this">?</view>
  27. </view>
  28. <view class="btn">
  29. <button type="warn" plain bindtap="signUp">单独报名</button>
  30. <button type="warn" bindtap="{{(showObj.status==4 || showObj.status==2)?'newGroup':'joinGroup'}}">{{(showObj.status==4 || showObj.status==2)?'新开拼团':'一键参团'}}</button>
  31. </view>
  32. </view>
  33. </noticePopup>