group.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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">
  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" 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. <view class="change" bindtap="change">换一换</view>
  29. </view>
  30. <view class="title">
  31. <image class="ren" src="../../static/groupImg/Shape3.png" style="width: 30rpx; height: 38rpx;"></image>
  32. <text class="left">全部课程</text>
  33. <view class="right" bindtap="more" data-type="course">更多
  34. <image src="../../static/image/to.png" />
  35. </view>
  36. </view>
  37. <view class="whole-group">
  38. <view class="group-box">
  39. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  40. <view class="group-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
  41. <image class="item-img" src="{{item.iconImg}}"></image>
  42. <view id="grade">{{item.subTitle}}</view>
  43. </view>
  44. </block>
  45. </view>
  46. </view>
  47. </scroll-view>
  48. </view>
  49. </template>