group-details.wxml 6.8 KB

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