index.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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}}" bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler" bindgoToReading="goToReading" binddelHideMyWork="delHideMyWork" bindchange="videoChange">
  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" catchtouchmove="touchMove" 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 class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0}}">
  47. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  48. <text >这是关注页面!</text>
  49. <text >赶快去关注优秀作者吧,</text>
  50. <text >这里会发生微妙变化</text>
  51. </view>
  52. </view>
  53. <!-- <MyToast /> -->
  54. <view hidden="{{hide}}">
  55. <Dialog bindmyevent="jurisdiction" />
  56. </view>
  57. <shareDialog id="share-dialog" shareType='works' bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  58. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  59. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  60. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  61. <view class="index-dialog-text">签到领取小红花哦</view>
  62. <view class="index-dialog-btn" >去签到</view>
  63. <button class="index-dialog-btn-hide" form-type="submit"></button>
  64. </form>
  65. </view> -->
  66. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  67. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  68. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  69. <view class="index-dialog-btn" >查看任务</view>
  70. </view>
  71. </view> -->