group-details.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!--pages/group-details/group-details.wxml-->
  2. <view class="group-details">
  3. <view class="details-head" bindtap="collage">
  4. <view class="headImg">
  5. <block wx:for="{{joinUserList}}" wx:key="{{index}}">
  6. <view class="headImg-item {{organizer == item.uid ? 'bg-boder' : ''}}">
  7. <image wx:if="{{organizer == item.uid}}" class="tuanzhangIcon" src="../../../static/groupImg/tuanzhangIcon.png"></image>
  8. <image src="{{item.avatar}}"></image>
  9. </view>
  10. </block>
  11. <block wx:for="{{surplusList}}" wx:key="{{index}}">
  12. <view class="headImg-item">
  13. <image src="../../../static/groupImg/no_head.png"></image>
  14. </view>
  15. </block>
  16. </view>
  17. <view class="shengyu">
  18. <view class="shengyu-num" wx:if="{{colonelName}}">团长{{colonelName}}发起团购</view>
  19. <view class="shengyu-num" hidden="{{surplusNum == '0' || !stillGoing}}">仅剩<text>{{surplusNum}}</text>个名额就拼团成功了</view>
  20. <view class="shengyu-num" hidden="{{stillGoing}}">团购已超过时限</view>
  21. <view class="shengyu-num" hidden="{{surplusNum != '0'}}">拼团成功!快去朗读吧</view>
  22. <view class="shengyu-time" hidden="{{!stillGoing}}">
  23. 剩余时间:
  24. <view class="time">
  25. <text>{{timeList[0]}}</text>
  26. </view>
  27. <block wx:for="{{timeList[1]}}" wx:key="{{index}}">
  28. <view class="time">
  29. <text>{{item}}</text>
  30. </view>
  31. </block>
  32. <block wx:for="{{timeList[2]}}" wx:key="{{index}}">
  33. <view class="time">
  34. <text>{{item}}</text>
  35. </view>
  36. </block>
  37. </view>
  38. </view>
  39. </view>
  40. <scroll-view scroll-y="{{true}}">
  41. <view class="grade-details" bindtap="gradeDetails">
  42. <image src="{{titleIcon}}" ></image>
  43. </view>
  44. <view class="catalog">
  45. <image class="bg2" src="../../../static/groupImg/Rectangle_9.png"></image>
  46. <text class="{{!flag ? '' : 'select'}}" bindtap="tabSwitch">您需要知道</text>
  47. <text class="{{!flag ? 'select' : ''}}" bindtap="tabSwitch">课文目录</text>
  48. </view>
  49. <view class="catalog-list" hidden="{{flag}}">
  50. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  51. <text class="left">{{item.title}}</text>
  52. <view class="right">
  53. <image src="../../../static/image/to.png"></image>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="know" hidden="{{!flag}}">
  58. <import src="../../../towxml/entry.wxml" />
  59. <template is="entry" data="{{...article}}" />
  60. </view>
  61. </scroll-view>
  62. <!-- 底部按钮 -->
  63. <view class="group-details-btn" hidden="{{surplusNum == '0' || !stillGoing }}">
  64. <view class="left-btn" bindtap="sendGroup">
  65. 开团
  66. </view>
  67. <view class="right-btn" bindtap="jionGroup">
  68. 参团
  69. </view>
  70. </view>
  71. <view class="group-details-btn" hidden="{{stillGoing }}">
  72. <view class="only-one-btn" bindtap="sendGroup">
  73. 重新开团
  74. </view>
  75. </view>
  76. </view>
  77. <view class="group-popup" bindtap="sendGroup" hidden="{{sendGroupFlag}}">
  78. <view class="group-content">
  79. <view class="group-title">请选择课本</view>
  80. <view class="group-list">
  81. <block wx:for="{{bookList}}" wx:key="{{index}}">
  82. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  83. <image class="item-img" src="{{item.iconImg}}"></image>
  84. <view id="grade">{{item.subTitle}}</view>
  85. <image class="select-img" src="../../../static/groupImg/{{selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  86. </view>
  87. </block>
  88. </view>
  89. <view class="sure" catchtap="sure">
  90. <image src="../../../static/groupImg/sure.png"></image>
  91. <text>确定</text>
  92. </view>
  93. </view>
  94. </view>
  95. <popup
  96. id="popupup"
  97. typeOf="{{typeOf}}"
  98. title="{{titles}}"
  99. headTextOne="{{headTextOne}}"
  100. headTextTwo="{{headTextTwo}}"
  101. btnContent="{{btnContent}}"
  102. content="{{content}}"
  103. bindGroup="group"
  104. ></popup>
  105. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  106. <view hidden="{{hide}}">
  107. <Dialog bindmyevent="jurisdiction" />
  108. </view>
  109. <myToast bindShowAlert="showAlert" wx:if="{{alertFlag}}" />