knowledgeList.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="content">
  3. <view class="top-input dfsb">
  4. <navigator url="/pages/index/screenList" class="sel dffs">
  5. 条件筛选
  6. <u-icon name="arrow-right" color="#F89638" size="10"></u-icon>
  7. </navigator>
  8. <u-search :showAction="false" placeholder="输入关键词搜索课程" @focus="toNext('/pages/index/search')" v-model="keyword"></u-search>
  9. </view>
  10. <view class="swiper"><u-swiper :autoplay="false" :list="banner" height="120" border-radius="20" @click="bannerClick"></u-swiper></view>
  11. <view class="conwarp">
  12. <view class="gdHead dfsb">
  13. <view class="head">基础知识过关</view>
  14. <view class="fontssm textgrey dffs">
  15. 查看更多
  16. <u-icon name="arrow-right" color="#999" size="10"></u-icon>
  17. </view>
  18. </view>
  19. <view class="fl-five"><course-list :flag="1" :list="baosList"></course-list></view>
  20. </view>
  21. <view class="conwarp">
  22. <view class="gdHead dfsb">
  23. <view class="head">基础知识过关</view>
  24. <view class="fontssm textgrey dffs">
  25. 查看更多
  26. <u-icon name="arrow-right" color="#999" size="10"></u-icon>
  27. </view>
  28. </view>
  29. <view class="fl-five"><course-list :flag="1" :list="baosList"></course-list></view>
  30. </view>
  31. <view class="conwarp">
  32. <view class="gdHead dfsb">
  33. <view class="head">基础知识过关</view>
  34. <view class="fontssm textgrey dffs">
  35. 查看更多
  36. <u-icon name="arrow-right" color="#999" size="10"></u-icon>
  37. </view>
  38. </view>
  39. <view class="fl-five"><video-list :flag="1" :list="baosList"></video-list></view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import courseList from './components/knowList.vue';
  45. import videoList from './components/knowVidList.vue';
  46. export default {
  47. components: {
  48. courseList,
  49. videoList
  50. },
  51. data() {
  52. return {
  53. keyword: '',
  54. banner: [],
  55. baosList: [
  56. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  57. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  58. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  59. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  60. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' }
  61. ]
  62. };
  63. },
  64. onPullDownRefresh() {
  65. setTimeout(res => {
  66. uni.stopPullDownRefresh();
  67. }, 1000);
  68. },
  69. //url: `/pages/index/knowledgeList?flag=${val}&subject_id=${val}&grade_id=${this.grade_id}&title=${item.name}`
  70. onLoad(opt) {
  71. this.nav_id = opt.nav_id || '';
  72. this.cat = opt.cat || '';
  73. this.getInfoList();
  74. this.getInfoList();
  75. },
  76. methods: {
  77. getInfoList() {},
  78. toNext(url) {
  79. uni.navigateTo({
  80. url: url
  81. });
  82. }
  83. }
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. .content {
  88. .top-input {
  89. padding: 20rpx 30rpx;
  90. .sel {
  91. color: #f89638;
  92. padding: 12rpx 20rpx;
  93. font-size: $font-sm;
  94. background-color: rgba(#f89638, 0.1);
  95. border-radius: 30rpx;
  96. margin-right: 36rpx;
  97. }
  98. }
  99. .swiper {
  100. margin: 20rpx 30rpx;
  101. }
  102. .conwarp {
  103. background-color: #fff;
  104. padding: 32rpx 30rpx 30rpx;
  105. border-radius: 16rpx;
  106. margin-bottom: 20rpx;
  107. .gdHead {
  108. line-height: 58rpx;
  109. margin-bottom: 16rpx;
  110. .head {
  111. font-size: 34rpx;
  112. font-family: PingFangSC-Medium, PingFang SC;
  113. font-weight: 600;
  114. color: #333333;
  115. line-height: 48rpx;
  116. }
  117. }
  118. }
  119. }
  120. </style>