index.wxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <!-- 调用组件 -->
  40. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData}}"></template>
  41. <VideoSwiper
  42. wx:if="{{videoList.length > 0}}"
  43. class="video-swiper"
  44. video-list="{{videoList}}"
  45. nextMargin="{{nextMargin}}"
  46. isSwiper="{{isSwiper}}"
  47. ifHeadTap="{{true}}"
  48. bindopenComment="openComment"
  49. bindheadTap="headTapHandler"
  50. bindgoToReading="goToReading"
  51. >
  52. <!-- bindplay="onPlay"
  53. bindpause="onPause"
  54. bindtimeupdate="onTimeUpdate"
  55. bindended="onEnded"
  56. binderror="onError"
  57. bindwaiting="onWaiting"
  58. bindprogress="onProgress"
  59. bindloadedmetadata="onLoadedMetaData" -->
  60. </VideoSwiper>
  61. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  62. <Comment
  63. data-type="list"
  64. commentId="{{commentId}}"
  65. commentNum ="{{commentNum}}"
  66. inputValue="{{inputValue}}"
  67. bindsendReply = "sendReply"
  68. />
  69. </view>
  70. </view>
  71. <!-- <MyToast /> -->
  72. <view hidden="{{hide}}">
  73. <Dialog bindmyevent="jurisdiction" />
  74. </view>
  75. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  76. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  77. <view class="index-dialog-text">签到领取小红花哦</view>
  78. <view class="index-dialog-btn" >去签到</view>
  79. <button class="index-dialog-btn-hide" form-type="submit"></button>
  80. </form>
  81. </view> -->
  82. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  83. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  84. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  85. <view class="index-dialog-btn" >查看任务</view>
  86. </view>
  87. </view> -->