group.wxml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <!--
  30. <view class="less-group">
  31. <view class="group-box">
  32. <block wx:for="{{groupData.recommendList}}" wx:key="{{index}}">
  33. <view class="group-item" bindtap="groupDetail" data-ind="{{index}}" data-id="{{item.id}}" data-productId="{{item.productId}}" data-groupId="{{item.groupId}}">
  34. <image class="item-img" src="{{item.iconImg}}"></image>
  35. <view>拼团价 <text>¥{{item.price / 100}}</text></view>
  36. <view>原价 <text style="text-decoration: line-through;">¥{{item.originPrice / 100}}</text></view>
  37. <view class="group-num">
  38. <image src="../../static/groupImg/Rectangle_30.png" ></image>
  39. <text>{{item.headcount}}人团</text>
  40. </view>
  41. </view>
  42. </block>
  43. </view>
  44. </view>
  45. -->
  46. </view>
  47. <view class="title">
  48. <image class="ren" src="../../static/groupImg/Shape3.png" style="width: 30rpx; height: 38rpx;"></image>
  49. <text class="left">全部课程</text>
  50. <text class="right" bindtap="more" data-type="course">更多 ></text>
  51. </view>
  52. <view class="whole-group">
  53. <view class="group-box">
  54. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  55. <view class="group-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
  56. <image class="item-img" src="{{item.iconImg}}"></image>
  57. <view id="grade">{{item.subTitle}}</view>
  58. </view>
  59. </block>
  60. </view>
  61. </view>
  62. </scroll-view>
  63. <view class="Collage-bottom {{groupData.isIPX ? 'Collage-bottomx' :''}}">
  64. <image class="bg" src="../../static/groupImg/Rectangle_9.png"></image>
  65. <view bindtap="sendGroup">
  66. <image src="../../static/groupImg/Shape1@2x.png"></image>
  67. <text>发起团购</text>
  68. </view>
  69. <view bindtap="myGroup">
  70. <image src="../../static/groupImg/Shape2@2x.png" style="width: 50rpx; height: 50rpx;"></image>
  71. <text>我的拼团</text>
  72. </view>
  73. </view>
  74. </view>
  75. <!--
  76. <view class="group-popup" bindtap="sendGroup" hidden="{{groupData.sendGroupFlag}}">
  77. <view class="group-content">
  78. <view class="group-title">请选择课本</view>
  79. <view class="group-list">
  80. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  81. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  82. <image class="item-img" src="{{item.iconImg}}"></image>
  83. <view id="grade">{{item.subTitle}}</view>
  84. <image class="select-img" src="../../static/groupImg/{{groupData.selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  85. </view>
  86. </block>
  87. </view>
  88. <view class="sure" catchtap="sure">
  89. <image src="../../static/groupImg/sure.png"></image>
  90. <text>确定</text>
  91. </view>
  92. </view>
  93. </view>
  94. -->
  95. </template>