index.wxml 6.3 KB

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