index.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!-- index.wxml -->
  2. <mp-navigation-bar title="UI组件库"></mp-navigation-bar>
  3. <view class="gradeContainer" catchtouchmove='true' wx:if="{{isGradeShow}}">
  4. <view class="gradeBox" bindtap="selectGrade">
  5. <view class="title">年级选择</view>
  6. <view class="content">
  7. <view class="grade {{temporaryGrade=='PRESCHOOL'?'check':''}}" data-code="PRESCHOOL">学前班</view>
  8. <view class="grade {{temporaryGrade=='PRIMARY_FIRST_GRADE'?'check':''}}" data-code="PRIMARY_FIRST_GRADE">一年级
  9. </view>
  10. </view>
  11. <view class="content">
  12. <view class="grade {{temporaryGrade=='PRIMARY_SECOND_GRADE'?'check':''}}" data-code="PRIMARY_SECOND_GRADE">
  13. 二年级
  14. </view>
  15. <view class="grade {{temporaryGrade=='PRIMARY_THREE_GRADE'?'check':''}}" data-code="PRIMARY_THREE_GRADE">三年级
  16. </view>
  17. </view>
  18. <view class="content">
  19. <view class="grade {{temporaryGrade=='PRIMARY_SENIOR_GRADE'?'check':''}}" data-code="PRIMARY_SENIOR_GRADE">
  20. 四年级
  21. </view>
  22. </view>
  23. <view class="submitBox">
  24. <button class="resetBtn submit" bindtap="changeGrade">登录</button>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="container">
  29. <!-- 引入组件 -->
  30. <!-- <import src="/component/my/my.wxml" /> -->
  31. <import src="/templates/courses/courses.wxml" />
  32. <!-- 顶部导航 -->
  33. <view class="top-tab" wx:if="{{!isGradeShow}}">
  34. <!-- <view class="tabbar {{3 == myIndex ? 'select':' '}}" bindtap="jumpMy">
  35. <text>我的</text>
  36. </view> -->
  37. <view class="tabbar" bindtap="jumpMy">
  38. <text>我的</text>
  39. </view>
  40. <view class="tabbar {{0 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="0">
  41. <text>推荐</text>
  42. </view>
  43. <view class="tabbar {{1 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="1">
  44. <text>关注</text>
  45. </view>
  46. <view class="tabbar {{2 == myIndex ? 'select':' '}}" bindtap="switcher" data-index="2">
  47. <text>资源</text>
  48. </view>
  49. </view>
  50. <swiper class="activity-img" autoplay circular indicator-dots indicator-active-color="#FFFFFF"
  51. hidden="{{0 != myIndex}}">
  52. <!-- <swiper-item>
  53. <image src="http://reader-wx.ai160.com/images/reader/card/banner.png" bindtap="goToCard">
  54. </image>
  55. </swiper-item> -->
  56. <!-- <swiper-item>
  57. <image src="http://reader-wx.ai160.com/images/reader/activity/ad.jpg" bindtap="goToActivity">
  58. </image>
  59. </swiper-item> -->
  60. <swiper-item>
  61. <image src="https://reader-wx.ai160.com/images/reader/activity/guide.jpg"></image>
  62. </swiper-item>
  63. </swiper>
  64. <!-- 调用组件 -->
  65. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}"
  66. data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  67. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}"
  68. nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}" noMoreWork="{{noMoreWork}}" ifHeadTap="{{true}}"
  69. bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler"
  70. bindgoToReading="goToReading" bindcollectTap="collectTap" bindlikeTap="likeTap"
  71. binddelHideMyWork="delHideMyWork" bindaddShareAmount="addShareAmount" bindchange="videoChange">
  72. </VideoSwiper>
  73. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank"
  74. wx:if="{{commentShow}}">
  75. <view class="comment_close" data-type='blank'>
  76. ×
  77. </view>
  78. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}"
  79. bindsendReply="sendReply" />
  80. </view>
  81. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  82. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  83. <text>赶快去关注优秀作者吧,</text>
  84. <text>这里将会发生欣喜的变化。</text>
  85. </view>
  86. </view>
  87. <!--弹窗-->
  88. <view class="help-pay" hidden="{{helpPayHide}}">
  89. <view class="help-pay-main" style="{{tipsType === 'tips' && 'top: 35%'}}">
  90. <view wx:if="{{ tipsType === 'helpPay'}}" bindtap="payAndHelp">
  91. <view class="pay-price" wx:if="{{payPrice}}">{{payPrice}}<text>元</text></view>
  92. <image class="help-pay-icon" src="{{helpPayImg}}"></image>
  93. </view>
  94. <image wx:else class="tips-icon" src="{{tipsImg}}" bindtap="tips"></image>
  95. <image class="help-close" bindtap="helpPayHideEvent" src="../../static/image/close.png"></image>
  96. </view>
  97. </view>
  98. <!-- <MyToast /> -->
  99. <view hidden="{{hide}}">
  100. <Dialog bindmyevent="jurisdiction" />
  101. </view>
  102. <!-- <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}"> -->
  103. <view class="upgrade" hidden="{{upgradeHide}}" bindtap="hideUpgrade">
  104. <view class="upgrade-main">
  105. <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png"
  106. catchtap="goToActivity"></image>
  107. <image class="close" catchtap="hideUpgrade" src="../../static/image/close.png"></image>
  108. </view>
  109. </view>
  110. <!-- 活动弹窗 -->
  111. <activityPop />
  112. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount"
  113. bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  114. <canvas canvas-id="myCanvas"
  115. style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  116. <canvas id='share' type="2d"> </canvas>