my-group.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.status =='SUCCESSED' ? '已成功' : '去参团'}}
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </block>
  30. <!--
  31. <block wx:for="{{myGroupList}}" wx:key="{{index}}">
  32. <view class="group-item" bindtap="collageDetails" data-ind="{{index}}" data-num="{{item.status==='SUCCESSED'}}" data-orderId="{{item.id}}" data-groupId="{{item.groupId}}" data-productId="{{item.productId}}" data-uid="{{item.organizer}}">
  33. <image class="item-img" src="{{item.iconImg}}" ></image>
  34. <view id="grade">{{item.groupTitle}}</view>
  35. <image class="jiang" src="../../../static/groupImg/jiang.png" wx:if="{{(item.groupType== 'PROMOTION') && (item.status==='SUCCESSED') }}"></image>
  36. <image class="type-img" src="../../../static/groupImg/{{item.status==='SUCCESSED' ? 'yisuccess' : 'weisuccess' }}.png"></image>
  37. </view>
  38. </block>
  39. -->
  40. </view>
  41. </scroll-view>
  42. </view>
  43. <popup
  44. id="popup"
  45. typeOf="{{typeOf}}"
  46. title="{{title}}"
  47. headTextOne="{{headTextOne}}"
  48. headTextTwo="{{headTextTwo}}"
  49. content="{{content}}"
  50. bindGroup="group"
  51. bindClose="close"
  52. ></popup>