group-details.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!-- pages/group-details/group-details.wxml -->
  2. <view class="group-details" ontouchmove="pageScroll" enable-back-to-top="{{true}}">
  3. <view class="loading" wx:if="{{isLoading}}">
  4. <view class="loading-text">Loading...</view>
  5. </view>
  6. <view class="green-placerholder"></view>
  7. <image class="class-icon" src="{{groupPurchaseInfo.bgImg}}" />
  8. 团成功{{ifGroupSuccessed}}
  9. 团继续{{stillGoing}}
  10. 团类型{{groupOsType}}
  11. 剩余时间{{timeLast}}
  12. 剩余人数{{surplusNum}}
  13. <view class="details-head">
  14. <!-- 剩余时间盒子 -->
  15. <view class="last-time-box" wx:if="{{!dataLoading}}">
  16. <view class="last-time">
  17. <image class="left-icon" src="../../../static/groupImg/right_icon.png" />
  18. <text class="last-time-end">距结束</text>
  19. <image class="right-icon" src="../../../static/groupImg/left_icon.png" />
  20. </view>
  21. <view class="last-text">{{timeLast}}</view>
  22. </view>
  23. <!-- 还剩几人参团 -->
  24. <view class="last-member" wx:if="{{!ifGroupSuccessed}}">
  25. <view class="group-regular-text" hidden="{{surplusNum == '0' || !stillGoing}}">
  26. <view wx:if="{{surplusNum == '2'}}">
  27. 你{{groupOsType === 'IOS' ? '助力' : '参团'}}后,就还差
  28. <text class="red-text">1</text>
  29. </view>
  30. <view wx:else>
  31. 还剩
  32. <text class="red-text">{{surplusNum}}</text>
  33. 位好友{{groupOsType === 'IOS' ? '助力' : '参团'}}
  34. </view>
  35. </view>
  36. <view class="group-organizer group-regular-text">
  37. <!-- ios分销团提示小红花 安卓分销团提示获得本课 -->
  38. <view wx:if="{{groupOsType === 'IOS'&& !colonelName}}">
  39. 即可助力团长
  40. <text class="red-text">{{organizer.wechatName}}</text>
  41. 获得本课
  42. </view>
  43. <view wx:if="{{groupOsType === 'ANDROID'}}">即可拼团成功</view>
  44. <view wx:if="{{groupOsType === 'IOS' && colonelName}}">
  45. 即可助力团长{{colonelName}}获得300朵
  46. <image class="flower-inline" src="../../../static/image/flower_small.png" />
  47. </view>
  48. </view>
  49. <view class="group-regular-text" hidden="{{stillGoing}}">团购已超过时限</view>
  50. <view class="group-regular-text" hidden="{{surplusNum != '0'}}">
  51. {{groupOsType === 'IOS' ? '助力' : '团购'}}成功!快去朗读吧
  52. </view>
  53. </view>
  54. <!-- 头像 -->
  55. <view class="headImg">
  56. <block wx:for="{{joinUserList}}" wx:key="{{index}}">
  57. <view class="headImg-item bg-boder">
  58. <view wx:if="{{organizerUid == item.uid}}" class="organizerIcon">团长</view>
  59. <image src="{{item.avatar}}"></image>
  60. </view>
  61. </block>
  62. <block wx:for="{{surplusList}}" wx:key="{{index}}">
  63. <view class="headImg-item">
  64. <image src="../../../static/groupImg/no_head.png"></image>
  65. </view>
  66. </block>
  67. </view>
  68. <view class="data-loading" wx:if="{{dataLoading}}">
  69. <view class="line1"></view>
  70. <view class="line2"></view>
  71. <view class="line3"></view>
  72. </view>
  73. <view class="invitation-btn" bindtap="jionGroup">
  74. <text>我要助力</text>
  75. </view>
  76. </view>
  77. <view scroll-y="{{true}}" wx:if="{{!isLoading}}">
  78. <view class="catalog">
  79. <view class="switch {{knowFlag ? 'select' : ''}}" data-flag="know" bindtap="tabSwitch">
  80. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{knowFlag}}"></image>
  81. <text>您需要知道</text>
  82. </view>
  83. <view class="switch {{menuFlag ? 'select' : ''}}" bindtap="tabSwitch" data-flag="menu" bindtap="tabSwitch">
  84. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{menuFlag}}"></image>
  85. <text>课文目录</text>
  86. </view>
  87. </view>
  88. <view class="catalog-list" hidden="{{!menuFlag}}">
  89. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  90. <text class="left">{{item.title}}</text>
  91. <view class="right">
  92. <image src="../../../static/image/to.png"></image>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="know" hidden="{{!knowFlag}}">
  97. <import src="../../../towxml/entry.wxml" />
  98. <template is="entry" data="{{...article}}" />
  99. </view>
  100. </view>
  101. </view>
  102. <!-- ios界面的底部按钮 -->
  103. <view class="group-details-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{groupOSType === 'IOS' && stillGoing && !groupStatus }}" hidden="{{hideBottomBtn}}">
  104. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  105. <form class="only-one-btn {{isIPX ? 'bottomx' :''}}" report-submit="{{formIsANAsshole}}" bindsubmit="jionGroup">
  106. 我来助力!获得七天试用权
  107. <button class="formBtn" form-type="submit"></button>
  108. </form>
  109. </view>
  110. <!-- <view class="group-popup" bindtap="sendGroup" hidden="{{sendGroupFlag}}" wx:if="{{!isLoading}}">
  111. <view class="group-content">
  112. <view class="group-title">请选择课本</view>
  113. <view class="group-list">
  114. <block wx:for="{{bookList}}" wx:key="{{index}}">
  115. <view class="group-item" catchtap="selectImg" data-ind="{{index}}">
  116. <image class="item-img" src="{{item.iconImg}}"></image>
  117. <view id="grade">{{item.subTitle}}</view>
  118. <image class="select-img" src="../../../static/groupImg/{{selectFlag[index] ? 'bai' : 'lan'}}.png"></image>
  119. </view>
  120. </block>
  121. </view>
  122. <view class="sure" catchtap="sure">
  123. <image src="../../../static/groupImg/sure.png"></image>
  124. <text>确定</text>
  125. </view>
  126. </view>
  127. </view> -->
  128. <popup id="popupup" typeOf="{{typeOf}}" title="{{titles}}" headTextOne="{{headTextOne}}" headTextTwo="{{headTextTwo}}" btnContent="{{btnContent}}" content="{{content}}" bindGroup="group"></popup>
  129. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  130. <view hidden="{{hide}}">
  131. <Dialog bindmyevent="jurisdiction" />
  132. </view>
  133. <myToast bindShowAlert="showAlert" wx:if="{{alertFlag}}" />
  134. <myModal id="myModal" type="{{modalType}}" isCloseShow="{{modalCloseShow}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />
  135. <!-- <MyToast bindShowAlert="showAlert" wx:if="{{damnDialogShow}}" /> -->