my-group.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--pages/groupPage/my-group/my-group.wxml-->
  2. <view class="my-group">
  3. <scroll-view scroll-y="{{true}}">
  4. <view class="my-group-content">
  5. <block wx:for="{{myGroupList}}" wx:key="{{index}}">
  6. <view class="group-bars">
  7. <view class="group-head">
  8. <image src="{{item.organizer.avatar}}"></image>
  9. <text>{{item.organizer.wechatName}}</text>
  10. </view>
  11. <view class="group-jion">
  12. <view class="top-title">
  13. <text>{{item.groupPurchaseOrder.groupTitle}}</text>
  14. <text>{{item.groupPurchaseOrder.headcount}}人团</text>
  15. </view>
  16. <view class="group-detail {{item.groupPurchaseOrder.status =='SUCCESSED' ? 'success-border' : ''}}">
  17. <view class="number">
  18. <text wx:if="{{item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount}}">还剩{{item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount}}人成团</text>
  19. <text wx:if="{{!(item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount)}}">拼团成功</text>
  20. <text wx:if="{{item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount}}">剩余{{timeList[index]}}结束</text>
  21. <text wx:if="{{!(item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount)}}">{{timeList[index]}}</text>
  22. </view>
  23. <view class="jion-btn {{item.groupPurchaseOrder.status =='SUCCESSED' ? 'success-bg' : ''}}" bindtap="collageDetails" data-ind="{{index}}" data-num="{{item.groupPurchaseOrder.status==='SUCCESSED'}}" data-orderId="{{item.groupPurchaseOrder.id}}" data-groupId="{{item.groupPurchaseOrder.groupId}}" data-productId="{{item.groupPurchaseOrder.productId}}" data-uid="{{item.groupPurchaseOrder.organizer}}">
  24. {{item.groupPurchaseOrder.status =='SUCCESSED' ? '已成功' : '进行中'}}
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </block>
  30. </view>
  31. </scroll-view>
  32. <myPlacerholder line1="{{line1}}" line2="{{line2}}" wx:if="{{myGroupList.length <= 0}}" />
  33. </view>
  34. <popup
  35. id="popup"
  36. typeOf="{{typeOf}}"
  37. title="{{title}}"
  38. headTextOne="{{headTextOne}}"
  39. headTextTwo="{{headTextTwo}}"
  40. content="{{content}}"
  41. btnContent="{{btnContent}}"
  42. bindGroup="group"
  43. bindClose="close"
  44. ></popup>