index.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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="http://reader-wx.ai160.com/images/reader/activity/banner.jpg">
  62. </image>
  63. </swiper-item>
  64. <swiper-item>
  65. <image src="https://reader-wx.ai160.com/images/reader/activity/guide.jpg"></image>
  66. </swiper-item>
  67. </swiper>
  68. <!-- 调用组件 -->
  69. <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}"
  70. data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>
  71. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}"
  72. nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}" noMoreWork="{{noMoreWork}}" ifHeadTap="{{true}}"
  73. bindopenShare="openShare" bindopenComment="openComment" bindheadTap="headTapHandler"
  74. bindgoToReading="goToReading" bindcollectTap="collectTap" bindlikeTap="likeTap"
  75. binddelHideMyWork="delHideMyWork" bindaddShareAmount="addShareAmount" bindchange="videoChange">
  76. </VideoSwiper>
  77. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank"
  78. wx:if="{{commentShow}}">
  79. <view class="comment_close" data-type='blank'>
  80. ×
  81. </view>
  82. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}"
  83. bindsendReply="sendReply" />
  84. </view>
  85. <view class="no_follow" wx:if="{{myIndex === 1 && videoList.length <= 0 && noFollow}}">
  86. <image class="no_follow_icon" src="../../static/index/no_follow.png" />
  87. <text>赶快去关注优秀作者吧,</text>
  88. <text>这里将会发生欣喜的变化。</text>
  89. </view>
  90. </view>
  91. <!--弹窗-->
  92. <view class="help-pay" hidden="{{helpPayHide}}">
  93. <view class="help-pay-main" style="{{tipsType === 'tips' && 'top: 35%'}}">
  94. <view wx:if="{{ tipsType === 'helpPay'}}" bindtap="payAndHelp">
  95. <view class="pay-price" wx:if="{{payPrice}}">{{payPrice}}<text>元</text></view>
  96. <image class="help-pay-icon" src="{{helpPayImg}}"></image>
  97. </view>
  98. <image wx:else class="tips-icon" src="{{tipsImg}}" bindtap="tips"></image>
  99. <image class="help-close" bindtap="helpPayHideEvent" src="../../static/image/close.png"></image>
  100. </view>
  101. </view>
  102. <!-- <MyToast /> -->
  103. <view hidden="{{hide}}">
  104. <Dialog bindmyevent="jurisdiction" />
  105. </view>
  106. <!-- <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}"> -->
  107. <view class="upgrade" hidden="{{upgradeHide}}" bindtap="hideUpgrade">
  108. <view class="upgrade-main">
  109. <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png"
  110. catchtap="goToActivity"></image>
  111. <image class="close" catchtap="hideUpgrade" src="../../static/image/close.png"></image>
  112. </view>
  113. </view>
  114. <!-- 活动弹窗 -->
  115. <activityPop />
  116. <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount"
  117. bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  118. <canvas canvas-id="myCanvas"
  119. style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  120. <canvas id='share' type="2d"> </canvas>