group.wxml 3.5 KB

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