index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <!-- 调用组件 -->
  31. <template is="{{templates}}" data="{{groupData: groupData, hotData: hotData, followData: followData, myData: myData}}"></template>
  32. <!-- 顶部导航 -->
  33. <view class="top-tab">
  34. <block wx:for="{{tab}}" wx:key="{{index}}">
  35. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  36. <text>{{item.name}}</text>
  37. </view>
  38. </block>
  39. </view>
  40. <VideoSwiper
  41. wx:if="{{videoList.length > 0}}"
  42. class="video-swiper"
  43. video-list="{{videoList}}"
  44. nextMargin="{{nextMargin}}"
  45. bindopenComment="openComment"
  46. bindheadTap="headTapHandler"
  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. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  58. <Comment
  59. data-type="list"
  60. commentList = "{{commentList}}"
  61. commentNum ="{{commentNum}}"
  62. inputValue="{{inputValue}}"
  63. bindsendReply = "sendReply"
  64. />
  65. </view>
  66. </view>
  67. <!-- <MyToast /> -->
  68. <view hidden="{{hide}}">
  69. <Dialog bindmyevent="jurisdiction" />
  70. </view>
  71. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  72. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  73. <view class="index-dialog-text">签到领取小红花哦</view>
  74. <view class="index-dialog-btn" >去签到</view>
  75. <button class="index-dialog-btn-hide" form-type="submit"></button>
  76. </form>
  77. </view> -->
  78. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  79. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  80. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  81. <view class="index-dialog-btn" >查看任务</view>
  82. </view>
  83. </view> -->