index.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
  50. </view>
  51. <!-- 调用组件 -->
  52. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  53. <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">
  54. <!-- bindplay="onPlay"
  55. bindpause="onPause"
  56. bindtimeupdate="onTimeUpdate"
  57. bindended="onEnded"
  58. binderror="onError"
  59. bindwaiting="onWaiting"
  60. bindprogress="onProgress"
  61. bindloadedmetadata="onLoadedMetaData" -->
  62. </VideoSwiper>
  63. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  64. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}" bindsendReply="sendReply" />
  65. </view>
  66. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  67. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  68. <text>赶快去关注优秀作者吧,</text>
  69. <text>这里将会发生欣喜的变化。</text>
  70. </view>
  71. </view>
  72. <!-- <MyToast /> -->
  73. <view hidden="{{hide}}">
  74. <Dialog bindmyevent="jurisdiction" />
  75. </view>
  76. <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}">
  77. <view class="upgrade-main">
  78. <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png" bindtap="goToActivity"></image>
  79. <image class="close" bindtap="hideUpgrade" src="../../static/image/close.png"></image>
  80. </view>
  81. </view>
  82. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount" bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  83. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  84. <!-- <view class="index-dialog" wx:if="{{indexSignDialog}}">
  85. <form bindsubmit="signInBtn" report-submit="{{true}}" class="index-dialog-wrapper" >
  86. <view class="index-dialog-text">签到领取小红花哦</view>
  87. <view class="index-dialog-btn" >去签到</view>
  88. <button class="index-dialog-btn-hide" form-type="submit"></button>
  89. </form>
  90. </view> -->
  91. <!-- <view class="index-dialog" wx:if="{{indexMissionDialog}}">
  92. <view class="index-dialog-wrapper" bindtap="missionBtn" >
  93. <view class="index-dialog-text">还有<text class="red-text">{{unfinishedCount}}</text>个小红花任务哦</view>
  94. <view class="index-dialog-btn" >查看任务</view>
  95. </view>
  96. </view> -->