index.wxml 5.2 KB

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