index.wxml 3.0 KB

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