group.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.isIOS ? '助力' : '拼团'}}<text class="red-text">({{groupData.myGroupGoing}})</text>
  30. <image src="../../static/image/little_firends.png" />
  31. </view>
  32. <view class="btn-item" wx:if="{{groupData.myGroupGoing <= 0}}" bindtap="more" data-type="course">
  33. 开个团试试
  34. <image src="../../static/image/little_firends.png" />
  35. </view>
  36. <view class="btn-item" bindtap="change">换一批看看
  37. <image src="../../static/image/refresh.png" />
  38. </view>
  39. </view>
  40. </view>
  41. <view class="title">
  42. <text class="title-regular left">全部课程</text>
  43. <view class="right" bindtap="more" data-type="course">
  44. 更多
  45. <image src="../../static/image/black_to.png" />
  46. </view>
  47. </view>
  48. <view class="whole-group">
  49. <view class="group-box">
  50. <block wx:for="{{groupData.bookList}}" wx:key="{{index}}">
  51. <view class="group-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
  52. <image class="item-img" src="{{item.iconImg}}"></image>
  53. <view id="grade">{{item.subTitle}}</view>
  54. </view>
  55. </block>
  56. </view>
  57. </view>
  58. </scroll-view>
  59. </view>
  60. <!-- <MyToast bindShowAlert="showAlert" wx:if="{{groupData.alertFlag}}" /> -->
  61. </template>