index.wxml 5.5 KB

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