group.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.avatar}}"></image>
  9. <text>{{item.wechatName}}</text>
  10. </view>
  11. <view class="group-jion">
  12. <view class="top-title">
  13. <text>{{item.productTitle}}</text>
  14. <text>{{item.headCount}}人团</text>
  15. </view>
  16. <view class="group-detail">
  17. <view class="number">
  18. <text>还剩<text class="red-text">{{item.headCount - item.joinCount}}</text>人成团</text>
  19. <text>剩余{{item.lastTime}}结束</text>
  20. </view>
  21. <view class="jion-btn" bindtap="groupDetail" data-ind="{{index}}" data-id="{{item.id}}" >
  22. {{groupData.isIOS ? '助力' : '去参团'}}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </block>
  28. <view class="btn-area">
  29. <view class="btn-item" bindtap='toMyCollage' wx:if="{{groupData.myGroupGoing > 0 && groupData.totalSize >3 }}">我的{{groupData.isIOS ? '助力' : '拼团'}}<text class="red-text">({{groupData.myGroupGoing}})</text>
  30. <!-- <image src="../../static/image/little_firends.png" /> -->
  31. </view>
  32. <view class="btn-item {{groupData.totalSize === 0 ? 'expect-margin' : ''}}" wx:if="{{groupData.myGroupGoing <= 0 || groupData.totalSize <=3 }}" bindtap="more" data-type="course ">
  33. 开个团试试
  34. <!-- <image src="../../static/image/little_firends.png" /> -->
  35. </view>
  36. <view class="btn-item" wx:if="{{groupData.totalSize >3}}" bindtap="change">换一批看看
  37. <!-- <image src="../../static/image/refresh.png" /> -->
  38. </view>
  39. <!-- <view class="btn-item expect-margin" wx:if="{{groupData.totalSize === 0}}" bindtap="more" data-type="course ">
  40. 开个团试试
  41. <image src="../../static/image/little_firends.png" />
  42. </view> -->
  43. </view>
  44. </view>
  45. <view class="title">
  46. <text class="title-regular left">全部课程</text>
  47. <!-- <view class="right" bindtap="more" data-type="course">
  48. 更多
  49. <image src="../../static/image/black_to.png" />
  50. </view> -->
  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>
  64. <!-- <MyToast bindShowAlert="showAlert" wx:if="{{groupData.alertFlag}}" /> -->
  65. </template>