group.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template name="group">
  2. <view class="group">
  3. <scroll-view scroll-y="{{true}}">
  4. <view class="group-container">
  5. <!-- <block wx:for="{{groupData.recommendList}}" 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 {{groupData.isIOS ? 'specialBorder' : ''}}">
  17. <view class="number">
  18. <text>还剩{{item.groupPurchaseOrder.headcount - item.groupPurchaseOrder.joinCount}}人成团</text>
  19. <text>剩余{{groupData.timeList[index]}}结束</text>
  20. </view>
  21. <view class="jion-btn {{groupData.isIOS ? 'specialBtn' : ''}}" bindtap="groupDetail" data-ind="{{index}}" data-id="{{item.groupPurchaseOrder.id}}" data-productId="{{item.groupPurchaseOrder.productId}}" data-groupId="{{item.groupPurchaseOrder.groupId}}">
  22. 去参团
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </block> -->
  28. <block wx:for="{{groupData.recommendList}}" wx:key="{{index}}">
  29. <view class="group-bars">
  30. <view class="group-head">
  31. <image src="{{item.avatar}}"></image>
  32. <text>{{item.wechatName}}</text>
  33. </view>
  34. <view class="group-jion">
  35. <view class="top-title">
  36. <text>{{item.groupTitle}}</text>
  37. <text>{{item.headCount}}人团</text>
  38. </view>
  39. <view class="group-detail {{groupData.isIOS ? 'specialBorder' : ''}}">
  40. <view class="number">
  41. <text>还剩{{item.headCount - item.joinCount}}人成团</text>
  42. <text>剩余{{item.lastTime}}结束</text>
  43. </view>
  44. <view class="jion-btn {{groupData.isIOS ? 'specialBtn' : ''}}" bindtap="groupDetail" data-ind="{{index}}" data-id="{{item.id}}" >
  45. 去参团
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </block>
  51. <view class="change" bindtap="change" wx:if="{{groupData.recommendList.length > 2}}">换一换</view>
  52. </view>
  53. <view class="title">
  54. <image class="ren" src="../../static/groupImg/Shape3.png" style="width: 30rpx; height: 38rpx;"></image>
  55. <text class="left">全部课程</text>
  56. <view class="right" bindtap="more" data-type="course">
  57. 更多
  58. <image src="../../static/image/to.png" />
  59. </view>
  60. </view>
  61. <view class="whole-group">
  62. <view class="group-box">
  63. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  64. <view class="group-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
  65. <image class="item-img" src="{{item.iconImg}}"></image>
  66. <view id="grade">{{item.subTitle}}</view>
  67. </view>
  68. </block>
  69. </view>
  70. </view>
  71. </scroll-view>
  72. </view>
  73. <MyToast bindShowAlert="showAlert" wx:if="{{groupData.alertFlag}}" />
  74. </template>