group-details.wxml 7.1 KB

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