index.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <!-- <view class="tabbar {{3 == myIndex ? 'select':' '}}" bindtap="jumpMy">
  31. <text>我的</text>
  32. </view> -->
  33. <view class="tabbar {{3 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="3">
  34. <text>我的</text>
  35. </view>
  36. <view class="tabbar {{0 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="0">
  37. <text>推荐</text>
  38. </view>
  39. <view class="tabbar {{1 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="1">
  40. <text>关注</text>
  41. </view>
  42. <view class="tabbar {{2 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="2">
  43. <text>资源</text>
  44. </view>
  45. </view>
  46. <!-- <view hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || 0 != myIndex}}" class="activity-img" bindtap="goToActivity"> -->
  47. <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity">
  48. <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
  49. </view>
  50. <!-- <view hidden="{{(!isIos && isVip) || 0 != myIndex }}" class="activity-img" bindtap="bannerTap">
  51. <image src="http://reader-wx.ai160.com/images/reader/pay/{{isIos ? 'ios_banner' : 'android_banner'}}.jpg"></image>
  52. </view>-->
  53. <view wx:if="{{isIos || isVip}}" class="activity-buy" bindtap="myPlase">
  54. <image src="http://reader-wx.ai160.com/images/reader/pay/vip_icon.png"></image>
  55. </view>
  56. <!-- 调用组件 -->
  57. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}"
  58. data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  59. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}"
  60. nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}" noMoreWork="{{noMoreWork}}" ifHeadTap="{{true}}"
  61. bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler"
  62. bindgoToReading="goToReading" bindcollectTap="collectTap" bindlikeTap="likeTap"
  63. binddelHideMyWork="delHideMyWork" bindaddShareAmount="addShareAmount" bindchange="videoChange">
  64. </VideoSwiper>
  65. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank"
  66. wx:if="{{commentShow}}">
  67. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}"
  68. 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. <!--弹窗-->
  77. <view class="help-pay" hidden="{{helpPayHide}}">
  78. <view class="help-pay-main" style="{{tipsType === 'tips' && 'top: 35%'}}">
  79. <view wx:if="{{ tipsType === 'helpPay'}}" bindtap="payAndHelp">
  80. <view class="pay-price" wx:if="{{payPrice}}">{{payPrice}}<text>元</text></view>
  81. <image class="help-pay-icon" src="{{helpPayImg}}"></image>
  82. </view>
  83. <image wx:else class="tips-icon" src="{{tipsImg}}" bindtap="tips"></image>
  84. <image class="help-close" bindtap="helpPayHideEvent" src="../../static/image/close.png"></image>
  85. </view>
  86. </view>
  87. <!-- <MyToast /> -->
  88. <view hidden="{{hide}}">
  89. <Dialog bindmyevent="jurisdiction" />
  90. </view>
  91. <!-- <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}"> -->
  92. <view class="upgrade" hidden="{{upgradeHide}}" bindtap="hideUpgrade">
  93. <view class="upgrade-main">
  94. <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png"
  95. catchtap="goToActivity"></image>
  96. <image class="close" catchtap="hideUpgrade" src="../../static/image/close.png"></image>
  97. </view>
  98. </view>
  99. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount"
  100. bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  101. <canvas canvas-id="myCanvas"
  102. style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>