grade-details.wxml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!-- pages/grade-details/grade-details.wxml -->
  2. <view class="group-details">
  3. <scroll-view scroll-y="{{true}}">
  4. <view class="grade-details">
  5. <image src="{{titleIcon}}"></image>
  6. <text class="lastThreeYears" wx:if="{{lastThreeYears}}">使用期限至:{{lastThreeYears}}</text>
  7. </view>
  8. <view class="catalog">
  9. <!-- <image class="bg2" src="../../../static/groupImg/Rectangle_9.png"></image> -->
  10. <view class="switch {{knowFlag ? 'select' : ''}}" data-flag="know" bindtap="tabSwitch">
  11. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{knowFlag}}"></image>
  12. <text >您需要知道</text>
  13. </view>
  14. <view class="switch {{menuFlag ? 'select' : ''}}" bindtap="tabSwitch" data-flag="menu" bindtap="tabSwitch">
  15. <image src="../../../static/image/know_menu_bg.jpg" wx:if="{{menuFlag}}"></image>
  16. <text >课文目录</text>
  17. </view>
  18. </view>
  19. <view class="catalog-list" hidden="{{!menuFlag}}">
  20. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  21. <text class="left">{{item.title}}</text>
  22. <view class="right">
  23. <!-- <image src="../../../static/image/play.png"></image>
  24. <text>{{item.readNum}}</text> -->
  25. <image src="../../../static/image/to.png"></image>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 你需要知道 -->
  30. <view class="know" hidden="{{!knowFlag}}">
  31. <import src="../../../towxml/entry.wxml" />
  32. <template is="entry" data="{{...article}}" />
  33. </view>
  34. </scroll-view>
  35. <!-- 安卓界面 -->
  36. <view class="group-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{!isIOS ? haveJoinNormal ? false : haveCreatedHelp ? false : haveJoinHelp ? true : true : false}}">
  37. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  38. <image class="bg1" src="../../../static/groupImg/baise.png"></image>
  39. <!-- <image class="bg2" src="../../../static/groupImg/baise.png"></image> -->
  40. <block wx:for="{{payList}}" wx:key="{{index}}">
  41. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{item.headcount === 5 ? false : true }}">
  42. <text class="formFit two-line-1">{{item.price / 100}}元</text>
  43. <text class="formFit two-line-2">{{item.headcount == '1' ? '单人购买' : '开团获得使用权'}}
  44. </text>
  45. <button class="formBtn" form-type="submit"></button>
  46. </form>
  47. </block>
  48. </view>
  49. <!-- ios界面 -->
  50. <view class="group-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{isIOS ? haveCreatedHelp ? false : haveJoinNormal ? false : true :false }}">
  51. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  52. <!-- <image class="bg1" src="../../../static/groupImg/baise.png" style="left: 50%"></image> -->
  53. <block wx:for="{{payList}}" wx:key="{{index}}" wx:if="{{!imSuper}}">
  54. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{index != 0 && index != 2 }}">
  55. <!-- <text class="formFit">{{item.price / 100}}元/{{item.headcount - 1}}人帮忙</text> -->
  56. <!-- <text class="formFit">两个小伙伴助力</text> -->
  57. <text class="formFit one-line-text">邀请好友助力获得本课使用权</text>
  58. <button class="formBtn" form-type="submit"></button>
  59. </form>
  60. </block>
  61. <!-- ios 七天权限的界面-->
  62. <block wx:for="{{payList}}" wx:key="{{index}}" wx:if="{{imSuper && haveJoinHelp}}">
  63. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{item.headcount == 1 || item.headcount == 5 ? false : true }}">
  64. <text class="formFit two-line-2">试用期还有{{tasteDay}}天</text>
  65. <text class="formFit two-line-1">邀请好友助力获得本课使用权</text>
  66. <button class="formBtn" form-type="submit"></button>
  67. </form>
  68. </block>
  69. <!-- ios 三年权限的界面 支持继续开团 -->
  70. <block wx:for="{{payList}}" wx:key="{{index}}" wx:if="{{imSuper && !haveJoinHelp}}">
  71. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{index != 0 && index != 2 }}">
  72. <!-- <text class="formFit">{{item.price / 100}}元/{{item.headcount - 1}}人帮忙</text> -->
  73. <!-- <text class="formFit">两个小伙伴助力</text> -->
  74. <text class="formFit one-line-text">好东西要分享给好朋友</text>
  75. <button class="formBtn" form-type="submit"></button>
  76. </form>
  77. </block>
  78. </view>
  79. <!-- 已有权限的界面 安卓 -->
  80. <view class="group-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{!isIOS ? haveJoinNormal ? true : haveCreatedHelp ? true : false : false}}">
  81. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  82. <!-- <image class="bg1" style="left: 50%" src="../../../static/groupImg/baise.png"></image> -->
  83. <block wx:for="{{payList}}" wx:key="{{index}}">
  84. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{index != 0 && index != 2 }}">
  85. <view>继续开团赚取奖学金吧</view>
  86. <!-- <view class="formFit"> -->
  87. <!-- <text class="formFit">{{item.headcount}}人团</text> -->
  88. <!-- </view> -->
  89. <button class="formBtn" form-type="submit"></button>
  90. </form>
  91. </block>
  92. </view>
  93. <!-- 已有权限的界面 并且是ios-->
  94. <!-- <view class="group-btn {{isIPX ? 'bottomx' :''}}" wx:if="{{isIOS ? haveCreatedHelp ? false : haveJoinHelp ? true : false : false }}">
  95. <image class="btn-image" src="../../../static/groupImg/group_in_ios.jpg" />
  96. <!-- <image class="bg1" style="left: 50%" src="../../../static/groupImg/baise.png"></image> -->
  97. <!-- <block wx:for="{{payList}}" wx:key="{{index}}">
  98. <form class="Price" bindsubmit="pay" report-submit="{{formIsANAsshole}}" data-id="{{item.id}}" wx:if="{{item.headcount == 1 || item.headcount == 5 ? false : true }}">
  99. <text class="formFit two-line-2">试用期还有n天</text>
  100. <text class="formFit two-line-1">邀请好友助力获得本课使用权</text>
  101. <button class="formBtn" form-type="submit"></button>
  102. </form>
  103. </block> -->
  104. <!-- </view> -->
  105. </view>
  106. <popup id="popup" typeOf="sendSuccess" title="报告团长" headTextOne="您发起的团购已经成立" headTextTwo="订单号:{{orderId}}" content="{{content}}"></popup>
  107. <myModal id="myModal" type="{{modalType}}" isCloseShow="{{isCloseShow}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />
  108. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  109. <myToast bindShowAlert="showAlert" noRightRules="2" wx:if="{{alertFlag}}" />