group.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template name="group">
  2. <view class="group">
  3. <scroll-view scroll-y="{{true}}">
  4. <view class="group-container">
  5. <view class="less-group">
  6. <view class="title">
  7. <image class="ren" src="../../static/groupImg/tuandui@2x.png"></image>
  8. <text class="left">限量优惠团购<text class="quota">(仅有1000份,售完为止)</text></text>
  9. <text class="right" bindtap="more" data-type="group">更多 ></text>
  10. </view>
  11. <view class="group-box">
  12. <block wx:for="{{groupData.recommendList}}" wx:key="{{index}}">
  13. <view class="group-item" bindtap="groupDetail" data-id="{{item.id}}" data-productId="{{item.productId}}" data-groupId="{{item.groupId}}">
  14. <image class="item-img" src="{{item.iconImg}}"></image>
  15. <view>拼团价 <text>¥{{item.price / 100}}</text></view>
  16. <view>原价 <text style="text-decoration: line-through;">¥{{item.originPrice / 100}}</text></view>
  17. <view class="group-num">
  18. <image src="../../static/groupImg/Rectangle_30.png" ></image>
  19. <text>{{item.headcount}}人团</text>
  20. </view>
  21. </view>
  22. </block>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="whole-group">
  27. <view class="title">
  28. <image class="ren" src="../../static/groupImg/Shape3.png" style="width: 30rpx; height: 38rpx;"></image>
  29. <text class="left">全部课程</text>
  30. <text class="right" bindtap="more" data-type="course">更多 ></text>
  31. </view>
  32. <view class="group-box">
  33. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  34. <view class="group-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
  35. <image class="item-img" src="{{item.iconImg}}"></image>
  36. <view id="grade">一年级</view>
  37. </view>
  38. </block>
  39. </view>
  40. </view>
  41. </scroll-view>
  42. <view class="Collage-bottom">
  43. <image class="bg" src="../../static/groupImg/Rectangle_9.png"></image>
  44. <view bindtap="sendGroup">
  45. <image src="../../static/groupImg/Shape1@2x.png"></image>
  46. <text>发起团购</text>
  47. </view>
  48. <view bindtap="myGroup">
  49. <image src="../../static/groupImg/Shape2@2x.png" style="width: 50rpx; height: 50rpx;"></image>
  50. <text>我的拼团</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="group-popup" bindtap="sendGroup" hidden="{{groupData.sendGroupFlag}}">
  55. <view class="group-content">
  56. <view class="group-title">请选择课本</view>
  57. <view class="group-list">
  58. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  59. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  60. <image class="item-img" src="{{item.iconImg}}"></image>
  61. <view id="grade">一年级</view>
  62. <image class="select-img" src="../../static/groupImg/{{groupData.selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  63. </view>
  64. </block>
  65. </view>
  66. <view class="sure" catchtap="sure">
  67. <image src="../../static/groupImg/sure.png"></image>
  68. <text>确定</text>
  69. </view>
  70. </view>
  71. </view>
  72. </template>