group-details.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. <block wx:for="{{timeList[0]}}" wx:key="{{index}}">
  25. <view class="time">
  26. <text>{{item}}</text>
  27. </view>
  28. </block>
  29. 小时
  30. <block wx:for="{{timeList[1]}}" wx:key="{{index}}">
  31. <view class="time">
  32. <text>{{item}}</text>
  33. </view>
  34. </block>
  35. 分钟
  36. <!-- <block wx:for="{{timeList[2]}}" wx:key="{{index}}">
  37. <view class="time">
  38. <text>{{item}}</text>
  39. </view>
  40. </block>
  41. 分 -->
  42. </view>
  43. </view>
  44. </view>
  45. <scroll-view scroll-y="{{true}}">
  46. <view class="grade-details" bindtap="gradeDetails">
  47. <image src="{{titleIcon}}" ></image>
  48. </view>
  49. <view class="catalog">
  50. <image class="bg2" src="../../../static/groupImg/Rectangle_9.png"></image>
  51. <text class="{{!flag ? '' : 'select'}}" bindtap="tabSwitch">您需要知道</text>
  52. <text class="{{!flag ? 'select' : ''}}" bindtap="tabSwitch">课文目录</text>
  53. </view>
  54. <view class="catalog-list" hidden="{{flag}}">
  55. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  56. <text class="left">{{item.title}}</text>
  57. <view class="right">
  58. <image src="../../../static/image/to.png"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="know" hidden="{{!flag}}">
  63. <import src="../../../towxml/entry.wxml" />
  64. <template is="entry" data="{{...article}}" />
  65. </view>
  66. </scroll-view>
  67. <!-- 底部按钮 -->
  68. <view class="group-details-btn" hidden="{{surplusNum == '0' || !stillGoing }}">
  69. <view class="left-btn" bindtap="sendGroup">
  70. 开团
  71. </view>
  72. <view class="right-btn" bindtap="jionGroup">
  73. 参团
  74. </view>
  75. </view>
  76. <view class="group-details-btn" hidden="{{stillGoing }}">
  77. <view class="only-one-btn" bindtap="sendGroup">
  78. 重新开团
  79. </view>
  80. </view>
  81. </view>
  82. <view class="group-popup" bindtap="sendGroup" hidden="{{sendGroupFlag}}">
  83. <view class="group-content">
  84. <view class="group-title">请选择课本</view>
  85. <view class="group-list">
  86. <block wx:for="{{bookList}}" wx:key="{{index}}">
  87. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  88. <image class="item-img" src="{{item.iconImg}}"></image>
  89. <view id="grade">{{item.subTitle}}</view>
  90. <image class="select-img" src="../../../static/groupImg/{{selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  91. </view>
  92. </block>
  93. </view>
  94. <view class="sure" catchtap="sure">
  95. <image src="../../../static/groupImg/sure.png"></image>
  96. <text>确定</text>
  97. </view>
  98. </view>
  99. </view>
  100. <popup
  101. id="popupup"
  102. typeOf="{{typeOf}}"
  103. title="{{titles}}"
  104. headTextOne="{{headTextOne}}"
  105. headTextTwo="{{headTextTwo}}"
  106. btnContent="{{btnContent}}"
  107. content="{{content}}"
  108. bindGroup="group"
  109. ></popup>
  110. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  111. <view hidden="{{hide}}">
  112. <Dialog bindmyevent="jurisdiction" />
  113. </view>
  114. <myToast bindShowAlert="showAlert" wx:if="{{alertFlag}}" />
  115. <myModal id="myModal" type="{{modalType}}" isCloseShow="{{modalCloseShow}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />