index.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <template is="{{templates}}" wx:if="{{myIndex === 3}}" data="{{myData: myData,coursesData:coursesData}}"></template>
  33. <!-- 顶部导航 -->
  34. <view class="top-tab">
  35. <block wx:for="{{tab}}" wx:key="{{index}}">
  36. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  37. <text>{{item.name}}</text>
  38. </view>
  39. </block>
  40. </view>
  41. <VideoSwiper
  42. wx:if="{{videoList.length > 0}}"
  43. class="video-swiper"
  44. video-list="{{videoList}}"
  45. nextMargin="{{nextMargin}}"
  46. bindopenComment="openComment"
  47. bindheadTap="headTapHandler"
  48. bindgoToReading="goToReading"
  49. >
  50. <!-- bindplay="onPlay"
  51. bindpause="onPause"
  52. bindtimeupdate="onTimeUpdate"
  53. bindended="onEnded"
  54. binderror="onError"
  55. bindwaiting="onWaiting"
  56. bindprogress="onProgress"
  57. bindloadedmetadata="onLoadedMetaData" -->
  58. </VideoSwiper>
  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> -->