group-details.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!--pages/group-details/group-details.wxml-->
  2. <view class="group-details">
  3. <view class="loading" wx:if="{{isLoading}}">
  4. <view class="loading-text">Loading...</view>
  5. </view>
  6. <view class="details-head" bindtap="collage" wx:if="{{!isLoading}}">
  7. <view class="headImg">
  8. <block wx:for="{{joinUserList}}" wx:key="{{index}}">
  9. <view class="headImg-item {{organizer == item.uid ? 'bg-boder' : ''}}">
  10. <image wx:if="{{organizer == item.uid}}" class="tuanzhangIcon" src="../../../static/groupImg/tuanzhangIcon.png"></image>
  11. <image src="{{item.avatar}}"></image>
  12. </view>
  13. </block>
  14. <block wx:for="{{surplusList}}" wx:key="{{index}}">
  15. <view class="headImg-item">
  16. <image src="../../../static/groupImg/no_head.png"></image>
  17. </view>
  18. </block>
  19. </view>
  20. <view class="data-loading" wx:if="{{dataLoading}}">
  21. <view class="line1"></view>
  22. <view class="line2"></view>
  23. <view class="line3"></view>
  24. </view>
  25. <view class="shengyu" wx:if="{{!dataLoading}}">
  26. <view class="shengyu-num" wx:if="{{colonelName}}">团长{{colonelName}}发起{{groupOSType === 'IOS' ? '助力' : '拼团'}}</view>
  27. <view class="shengyu-num" hidden="{{surplusNum == '0' || !stillGoing || groupStatus}}">仅剩<text>{{surplusNum}}</text>个名额就{{groupOSType === 'IOS' ? '助力' : '拼团'}}成功了</view>
  28. <view class="shengyu-num" hidden="{{stillGoing}}">团购已超过时限</view>
  29. <view class="shengyu-num" hidden="{{surplusNum != '0'}}">{{groupOSType === 'IOS' ? '助力' : '拼团'}}成功!</view>
  30. <view class="shengyu-time" hidden="{{!stillGoing || groupStatus}}">
  31. 剩余时间:
  32. <block wx:for="{{timeList[0]}}" wx:key="{{index}}">
  33. <view class="time">
  34. <text>{{item}}</text>
  35. </view>
  36. </block>
  37. 小时
  38. <block wx:for="{{timeList[1]}}" wx:key="{{index}}">
  39. <view class="time">
  40. <text>{{item}}</text>
  41. </view>
  42. </block>
  43. 分钟
  44. <!-- <block wx:for="{{timeList[2]}}" wx:key="{{index}}">
  45. <view class="time">
  46. <text>{{item}}</text>
  47. </view>
  48. </block>
  49. 分 -->
  50. </view>
  51. </view>
  52. </view>
  53. <scroll-view scroll-y="{{true}}" wx:if="{{!isLoading}}">
  54. <view class="grade-details" bindtap="gradeDetails">
  55. <image src="{{titleIcon}}" ></image>
  56. </view>
  57. <view class="catalog">
  58. <!-- <image class="bg2" src="../../../static/groupImg/Rectangle_9.png"></image> -->
  59. <view class="switch {{knowFlag ? 'select' : ''}}" data-flag="know" bindtap="tabSwitch">
  60. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{knowFlag}}"></image>
  61. <text >您需要知道</text>
  62. </view>
  63. <view class="switch {{menuFlag ? 'select' : ''}}" bindtap="tabSwitch" data-flag="menu" bindtap="tabSwitch">
  64. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{menuFlag}}"></image>
  65. <text >课文目录</text>
  66. </view>
  67. </view>
  68. <view class="catalog-list" hidden="{{!menuFlag}}">
  69. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  70. <text class="left">{{item.title}}</text>
  71. <view class="right">
  72. <image src="../../../static/image/to.png"></image>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="know" hidden="{{!knowFlag}}">
  77. <import src="../../../towxml/entry.wxml" />
  78. <template is="entry" data="{{...article}}" />
  79. </view>
  80. </scroll-view>
  81. <!-- 底部按钮 -->
  82. <view class="group-details-btn {{isIPX ? 'bottomx' :''}}" hidden="{{surplusNum == '0' || !stillGoing }}" wx:if="{{!isLoading && (groupOSType === 'ANDROID') }}">
  83. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  84. <view class="left-btn" bindtap="sendGroup">
  85. 开团
  86. </view>
  87. <form class="right-btn {{isIPX ? 'bottomx' :''}}" report-submit="{{formIsANAsshole}}" bindsubmit="jionGroup">
  88. 参团
  89. <button class="formBtn" form-type="submit"></button>
  90. </form>
  91. </view>
  92. <view class="group-details-btn {{isIPX ? 'bottomx' :''}}" hidden="{{stillGoing }}" wx:if="{{!isIOS}}">
  93. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  94. <view class="only-one-btn" bindtap="sendGroup">
  95. 重新开团
  96. </view>
  97. </view>
  98. <!-- ios界面的底部按钮 -->
  99. <view class="group-details-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{groupOSType === 'IOS' && stillGoing && !groupStatus }}">
  100. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  101. <form class="only-one-btn {{isIPX ? 'bottomx' :''}}" report-submit="{{formIsANAsshole}}" bindsubmit="jionGroup">
  102. 我来助力!获得七天试用权
  103. <button class="formBtn" form-type="submit"></button>
  104. </form>
  105. </view>
  106. <!-- <view class="group-details-btn {{isIPX ? 'bottomx' :''}}" hidden="{{surplusNum == '0' || !stillGoing }}" wx:if="{{!isLoading && isIOS}}">
  107. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  108. <form class="only-one-btn {{isIPX ? 'bottomx' :''}}" report-submit="{{formIsANAsshole}}" bindsubmit="jionGroup">
  109. 我来助力
  110. <button class="formBtn" form-type="submit"></button>
  111. </form>
  112. </view> -->
  113. </view>
  114. <view class="group-popup" bindtap="sendGroup" hidden="{{sendGroupFlag}}" wx:if="{{!isLoading}}">
  115. <view class="group-content">
  116. <view class="group-title">请选择课本</view>
  117. <view class="group-list">
  118. <block wx:for="{{bookList}}" wx:key="{{index}}">
  119. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  120. <image class="item-img" src="{{item.iconImg}}"></image>
  121. <view id="grade">{{item.subTitle}}</view>
  122. <image class="select-img" src="../../../static/groupImg/{{selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  123. </view>
  124. </block>
  125. </view>
  126. <view class="sure" catchtap="sure">
  127. <image src="../../../static/groupImg/sure.png"></image>
  128. <text>确定</text>
  129. </view>
  130. </view>
  131. </view>
  132. <popup
  133. id="popupup"
  134. typeOf="{{typeOf}}"
  135. title="{{titles}}"
  136. headTextOne="{{headTextOne}}"
  137. headTextTwo="{{headTextTwo}}"
  138. btnContent="{{btnContent}}"
  139. content="{{content}}"
  140. bindGroup="group"
  141. ></popup>
  142. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  143. <view hidden="{{hide}}">
  144. <Dialog bindmyevent="jurisdiction" />
  145. </view>
  146. <myToast bindShowAlert="showAlert" wx:if="{{alertFlag}}" />
  147. <myModal id="myModal" type="{{modalType}}" isCloseShow="{{modalCloseShow}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />
  148. <!-- <MyToast bindShowAlert="showAlert" wx:if="{{damnDialogShow}}" /> -->