index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!-- index.wxml -->
  2. <!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
  3. <view class="change_grade" wx:if="{{isGradeShow}}">
  4. <view class="change_brage_wrapper">
  5. <text class="title">分龄选择</text>
  6. <view class="change_row">
  7. <view class="change_item" bindtap="changeGrade" data-code="0">
  8. 学前班
  9. </view>
  10. <view class="change_item" bindtap="changeGrade" data-code="1">
  11. 一年级
  12. </view>
  13. </view>
  14. <view class="change_row">
  15. <view class="change_item" bindtap="changeGrade" data-code="2">
  16. 二年级
  17. </view>
  18. <view class="change_item" bindtap="changeGrade" data-code="3">
  19. 三年级
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="container">
  25. <!-- 引入组件 -->
  26. <!-- <import src="/component/group/group.wxml" /> -->
  27. <!-- <import src="/component/hot/hot.wxml" /> -->
  28. <!-- <import src="/component/follow/follow.wxml" /> -->
  29. <import src="/component/my/my.wxml" />
  30. <import src="/templates/courses/courses.wxml" />
  31. <!-- 顶部导航 -->
  32. <view class="top-tab">
  33. <block wx:for="{{tab}}" wx:key="{{index}}">
  34. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  35. <text>{{item.name}}</text>
  36. </view>
  37. </block>
  38. </view>
  39. <VideoSwiper
  40. wx:if="{{videoList.length > 0}}"
  41. class="video-swiper"
  42. video-list="{{videoList}}"
  43. nextMargin="{{nextMargin}}"
  44. bindopenComment="openComment"
  45. bindheadTap="headTapHandler"
  46. bindgoToReading="goToReading"
  47. >
  48. <!-- bindplay="onPlay"
  49. bindpause="onPause"
  50. bindtimeupdate="onTimeUpdate"
  51. bindended="onEnded"
  52. binderror="onError"
  53. bindwaiting="onWaiting"
  54. bindprogress="onProgress"
  55. bindloadedmetadata="onLoadedMetaData" -->
  56. </VideoSwiper>
  57. <!-- 调用组件 -->
  58. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData}}"></template>
  59. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  60. <Comment
  61. data-type="list"
  62. commentList = "{{commentList}}"
  63. commentNum ="{{commentNum}}"
  64. inputValue="{{inputValue}}"
  65. bindsendReply = "sendReply"
  66. />
  67. </view>
  68. </view>
  69. <!-- <MyToast /> -->
  70. <view hidden="{{hide}}">
  71. <Dialog bindmyevent="jurisdiction" />
  72. </view>
  73. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  74. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  75. <view class="index-dialog-text">签到领取小红花哦</view>
  76. <view class="index-dialog-btn" >去签到</view>
  77. <button class="index-dialog-btn-hide" form-type="submit"></button>
  78. </form>
  79. </view> -->
  80. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  81. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  82. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  83. <view class="index-dialog-btn" >查看任务</view>
  84. </view>
  85. </view> -->