index.wxml 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!-- index.wxml -->
  2. <!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
  3. <mp-navigation-bar title="UI组件库"></mp-navigation-bar>
  4. <view class="change_grade" wx:if="{{isGradeShow}}">
  5. <view class="change_brage_wrapper">
  6. <text class="title">分龄选择</text>
  7. <view class="change_row">
  8. <view class="change_item" bindtap="changeGrade" data-code="PRIMARY_FIRST_GRADE">一年级</view>
  9. <view class="change_item" bindtap="changeGrade" data-code="PRIMARY_SECOND_GRADE">二年级</view>
  10. </view>
  11. <view class="change_row">
  12. <view class="change_item" bindtap="changeGrade" data-code="PRIMARY_THREE_GRADE">三年级</view>
  13. <view class="change_item" bindtap="changeGrade" data-code="PRIMARY_SENIOR_GRADE">四年级</view>
  14. </view>
  15. <view class="change_row change_row_single">
  16. <view class="change_item" bindtap="changeGrade" data-code="PRESCHOOL">学前班</view>
  17. <view class="change_item change_item_blank" data-code="PRESCHOOL"></view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="container">
  22. <!-- 引入组件 -->
  23. <!-- <import src="/component/group/group.wxml" /> -->
  24. <!-- <import src="/component/hot/hot.wxml" /> -->
  25. <!-- <import src="/component/follow/follow.wxml" /> -->
  26. <import src="/component/my/my.wxml" />
  27. <import src="/templates/courses/courses.wxml" />
  28. <!-- 顶部导航 -->
  29. <view class="top-tab" wx:if="{{!isGradeShow}}">
  30. <!-- <block wx:for="{{tab}}" wx:key="index">
  31. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  32. <text>{{item.name}}</text>
  33. </view>
  34. </block> -->
  35. <view class="tabbar {{3 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="3">
  36. <text>我的</text>
  37. </view>
  38. <view class="tabbar {{0 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="0">
  39. <text>推荐</text>
  40. </view>
  41. <view class="tabbar {{1 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="1">
  42. <text>关注</text>
  43. </view>
  44. <view class="tabbar {{2 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="2">
  45. <text>资源</text>
  46. </view>
  47. </view>
  48. <!-- <view hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || 0 != myIndex}}" class="activity-img" bindtap="goToActivity"> -->
  49. <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity">
  50. <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
  51. </view>
  52. <!-- 调用组件 -->
  53. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  54. <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">
  55. <!-- bindplay="onPlay"
  56. bindpause="onPause"
  57. bindtimeupdate="onTimeUpdate"
  58. bindended="onEnded"
  59. binderror="onError"
  60. bindwaiting="onWaiting"
  61. bindprogress="onProgress"
  62. bindloadedmetadata="onLoadedMetaData" -->
  63. </VideoSwiper>
  64. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  65. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}" bindsendReply="sendReply" />
  66. </view>
  67. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  68. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  69. <text>赶快去关注优秀作者吧,</text>
  70. <text>这里将会发生欣喜的变化。</text>
  71. </view>
  72. </view>
  73. <!-- <MyToast /> -->
  74. <view hidden="{{hide}}">
  75. <Dialog bindmyevent="jurisdiction" />
  76. </view>
  77. <!-- <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}"> -->
  78. <view class="upgrade" hidden="{{upgradeHide}}">
  79. <view class="upgrade-main">
  80. <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png" bindtap="goToActivity"></image>
  81. <image class="close" bindtap="hideUpgrade" src="../../static/image/close.png"></image>
  82. </view>
  83. </view>
  84. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount" bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  85. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  86. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  87. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  88. <view class="index-dialog-text">签到领取小红花哦</view>
  89. <view class="index-dialog-btn" >去签到</view>
  90. <button class="index-dialog-btn-hide" form-type="submit"></button>
  91. </form>
  92. </view> -->
  93. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  94. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  95. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  96. <view class="index-dialog-btn" >查看任务</view>
  97. </view>
  98. </view> -->