index.wxml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 class="tabbar {{3 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="3">
  35. <text>我的</text>
  36. </view>
  37. <view class="tabbar {{0 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="0">
  38. <text>推荐</text>
  39. </view>
  40. <view class="tabbar {{1 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="1">
  41. <text>关注</text>
  42. </view>
  43. <view class="tabbar {{2 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="2">
  44. <text>资源</text>
  45. </view>
  46. </view>
  47. <!-- 调用组件 -->
  48. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  49. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}" nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}" noMoreWork="{{noMoreWork}}" ifHeadTap="{{true}}" bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler" bindgoToReading="goToReading" bindcollectTap="collectTap" bindlikeTap="likeTap" binddelHideMyWork="delHideMyWork" bindaddShareAmount="addShareAmount" bindchange="videoChange">
  50. <!-- bindplay="onPlay"
  51. bindpause="onPause"
  52. bindtimeupdate="onTimeUpdate"
  53. bindended="onEnded"
  54. binderror="onError"
  55. bindwaiting="onWaiting"
  56. bindprogress="onProgress"
  57. bindloadedmetadata="onLoadedMetaData" -->
  58. </VideoSwiper>
  59. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  60. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}" bindsendReply="sendReply" />
  61. </view>
  62. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  63. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  64. <text>赶快去关注优秀作者吧,</text>
  65. <text>这里将会发生欣喜的变化。</text>
  66. </view>
  67. </view>
  68. <!-- <MyToast /> -->
  69. <view hidden="{{hide}}">
  70. <Dialog bindmyevent="jurisdiction" />
  71. </view>
  72. <view class="upgrade" hidden="{{upgradeHide}}">
  73. <view class="upgrade-main">
  74. <image class="upgrade-icon" src="https://reader-wx.ai160.com/images/reader/upgrade_success.png"></image>
  75. <image class="close" bindtap="hideUpgrade" src="../../static/image/close.png"></image>
  76. </view>
  77. </view>
  78. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount" bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  79. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  80. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  81. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  82. <view class="index-dialog-text">签到领取小红花哦</view>
  83. <view class="index-dialog-btn" >去签到</view>
  84. <button class="index-dialog-btn-hide" form-type="submit"></button>
  85. </form>
  86. </view> -->
  87. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  88. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  89. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  90. <view class="index-dialog-btn" >查看任务</view>
  91. </view>
  92. </view> -->