index.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="PRIMARY_SENIOR_GRADE">四年级</view>
  13. </view>
  14. <view class="change_row change_row_single">
  15. <view class="change_item" bindtap="changeGrade" data-code="PRESCHOOL">学前班</view>
  16. <view class="change_item change_item_blank" data-code="PRESCHOOL"></view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="container">
  21. <!-- 引入组件 -->
  22. <!-- <import src="/component/group/group.wxml" /> -->
  23. <!-- <import src="/component/hot/hot.wxml" /> -->
  24. <!-- <import src="/component/follow/follow.wxml" /> -->
  25. <import src="/component/my/my.wxml" />
  26. <import src="/templates/courses/courses.wxml" />
  27. <!-- 顶部导航 -->
  28. <view class="top-tab" wx:if="{{!isGradeShow}}" >
  29. <block wx:for="{{tab}}" wx:key="index">
  30. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  31. <text>{{item.name}}</text>
  32. </view>
  33. </block>
  34. </view>
  35. <!-- 调用组件 -->
  36. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData}}"></template>
  37. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}" nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}" ifHeadTap="{{true}}" bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler" bindgoToReading="goToReading" bindcollectTap="collectTap" bindlikeTap="likeTap" binddelHideMyWork="delHideMyWork" bindchange="videoChange">
  38. <!-- bindplay="onPlay"
  39. bindpause="onPause"
  40. bindtimeupdate="onTimeUpdate"
  41. bindended="onEnded"
  42. binderror="onError"
  43. bindwaiting="onWaiting"
  44. bindprogress="onProgress"
  45. bindloadedmetadata="onLoadedMetaData" -->
  46. </VideoSwiper>
  47. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  48. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}" bindsendReply="sendReply" />
  49. </view>
  50. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  51. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  52. <text >赶快去关注优秀作者吧,</text>
  53. <text >这里将会发生欣喜的变化。</text>
  54. </view>
  55. </view>
  56. <!-- <MyToast /> -->
  57. <view hidden="{{hide}}">
  58. <Dialog bindmyevent="jurisdiction" />
  59. </view>
  60. <shareDialog id="share-dialog" shareType='works' bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  61. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  62. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  63. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  64. <view class="index-dialog-text">签到领取小红花哦</view>
  65. <view class="index-dialog-btn" >去签到</view>
  66. <button class="index-dialog-btn-hide" form-type="submit"></button>
  67. </form>
  68. </view> -->
  69. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  70. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  71. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  72. <view class="index-dialog-btn" >查看任务</view>
  73. </view>
  74. </view> -->