my-group.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.productTitle}}</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)}}">{{item.groupPurchaseOrder.os === 'IOS' ? '助力成功' : '拼团成功'}}</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-grouptype="{{item.groupPurchaseOrder.os}}" 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. haveReward="{{haveReward}}"
  42. btnContent="{{btnContent}}"
  43. bindGroup="group"
  44. bindClose="close"
  45. ></popup>
  46. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />