grade-details.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. </view>
  7. <view class="catalog">
  8. <image class="bg2" src="../../../static/groupImg/Rectangle_9.png"></image>
  9. <text class="{{knowFlag ? 'select' : ''}}" bindtap="tabSwitch" data-flag="know">您需要知道</text>
  10. <text class="{{menuFlag ? 'select' : ''}}" bindtap="tabSwitch" data-flag="menu">课文目录</text>
  11. </view>
  12. <view class="catalog-list" hidden="{{!menuFlag}}">
  13. <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">
  14. <text class="left">{{item.title}}</text>
  15. <view class="right">
  16. <!-- <image src="../../../static/image/play.png"></image>
  17. <text>{{item.readNum}}</text> -->
  18. <image src="../../../static/image/to.png"></image>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 你需要知道 -->
  23. <view class="know" hidden="{{!knowFlag}}">
  24. <import src="../../../towxml/entry.wxml" />
  25. <template is="entry" data="{{...article}}" />
  26. </view>
  27. </scroll-view>
  28. <view class="group-btn" wx:if="{{!imSuper? !isIOS : null}}">
  29. <image class="bg1" src="../../../static/groupImg/baise.png"></image>
  30. <image class="bg2" src="../../../static/groupImg/baise.png"></image>
  31. <block wx:for="{{payList}}" wx:key="{{index}}">
  32. <view class="Price" bindtap="pay" data-id="{{item.id}}" wx:if="{{share ? (index != 0) : true }}">
  33. <text>¥{{item.price / 100}}</text>
  34. <text>{{item.headcount == '1' ? '单' : item.headcount}}人{{item.headcount == '1' ? '购' : '团'}}</text>
  35. </view>
  36. </block>
  37. </view>
  38. <view class="group-btn" wx:if="{{!imSuper? isIOS : null}}">
  39. <image class="bg1" src="../../../static/groupImg/baise.png" style="left: 50%"></image>
  40. <block wx:for="{{payList}}" wx:key="{{index}}">
  41. <view class="Price" bindtap="pay" data-id="{{item.id}}" wx:if="{{share ? (index != 0) : item.headcount === 1 ? false : true }}">
  42. <text>{{item.price / 100}}元/{{item.headcount - 1}}人帮忙</text>
  43. <text style="fontSize: 24rpx">免费开团</text>
  44. </view>
  45. </block>
  46. </view>
  47. <view class="group-btn" wx:if="{{imSuper}}">
  48. <image class="bg1" style="left: 50%" src="../../../static/groupImg/baise.png" ></image>
  49. <block wx:for="{{payList}}" wx:key="{{index}}">
  50. <view class="Price" bindtap="pay" data-id="{{item.id}}" wx:if="{{imSuper ? (index != 0) : true }}">
  51. <view>继续开团 赚奖学金</view>
  52. <view>
  53. <text>{{item.headcount}}人团</text>
  54. </view>
  55. </view>
  56. </block>
  57. </view>
  58. </view>
  59. <popup id="popup" typeOf="sendSuccess" title="报告团长" headTextOne="您发起的团购已经成立" headTextTwo="订单号:{{orderId}}" content="{{content}}"></popup>