navInfo.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="content">
  3. <view class=" vidLi dfsb">
  4. <view class="imgbox"><image src="../../static/img/pro/ordlist.png" mode=""></image></view>
  5. <view class="dffd flex1">
  6. <view class="title elli">名师揭秘 - 英语领跑多科目强化课名师揭秘 - 英语领跑多科目强化课名师揭秘 - 英语领跑多科目强化课</view>
  7. <view class="textgrey fontsm">八年级|物理|视频课</view>
  8. <view class="auth">
  9. <view :style="{ height: height }" class="tit fontssm textgrey">
  10. 简介:中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20中考政策在近两年不会改变,初中20
  11. </view>
  12. <text @click="changHeight()" class="fontssm show green">展开</text>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="conwarp">
  17. <view class="gdHead dfsb">
  18. <view class="head">基础知识过关</view>
  19. <view class="fontssm textgrey dffs">
  20. 查看更多
  21. <u-icon name="arrow-right" color="#999" size="10"></u-icon>
  22. </view>
  23. </view>
  24. <view class="fl-five"><video-list :flag="2" :list="baosList"></video-list></view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import videoList from './components/wordlist.vue';
  30. export default {
  31. components: {
  32. videoList
  33. },
  34. data() {
  35. return {
  36. height: '64rpx',
  37. baosList: [
  38. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  39. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  40. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  41. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' },
  42. { image: '/static/img/pro/indnotice.png', name: '知识过关', path: '/pages/knowledge/knowledge' }
  43. ]
  44. };
  45. },
  46. onPullDownRefresh() {
  47. setTimeout(res => {
  48. uni.stopPullDownRefresh();
  49. }, 1000);
  50. },
  51. onLoad() {
  52. this.getInfoList();
  53. },
  54. methods: {
  55. // 修改高度
  56. changHeight() {
  57. console.log(this.height == 'auto');
  58. if (this.height == '100%') {
  59. this.height = '64rpx';
  60. } else {
  61. this.height = '100%';
  62. }
  63. },
  64. getInfoList() {
  65. let url = 'index/getClassInfo';
  66. this.$api
  67. .request(url, {
  68. id: this.id
  69. })
  70. .then(res => {
  71. if (res.code == '200') {
  72. let data = res.data;
  73. this.goodInfo = data;
  74. }
  75. });
  76. }
  77. }
  78. };
  79. </script>
  80. <style lang="scss" scoped>
  81. .content {
  82. .vidLi {
  83. width: 100%;
  84. padding: 55rpx 35rpx 30rpx;
  85. margin-bottom: 20rpx;
  86. background-color: #fff;
  87. align-items: flex-start;
  88. .imgbox {
  89. position: relative;
  90. width: 176rpx;
  91. height: 244rpx;
  92. margin-right: 27rpx;
  93. .left-img {
  94. position: absolute;
  95. top: 0;
  96. left: 0;
  97. height: 33rpx;
  98. line-height: 33rpx;
  99. font-size: 18rpx;
  100. color: #fff;
  101. padding: 0 5rpx;
  102. background: #e84325;
  103. border-radius: 7rpx;
  104. }
  105. image {
  106. width: 100%;
  107. height: 100%;
  108. }
  109. }
  110. .title {
  111. overflow: hidden;
  112. font-size: 28rpx;
  113. line-height: 40rpx;
  114. margin-bottom: 12rpx;
  115. }
  116. .auth {
  117. margin-top: 15rpx;
  118. width: 100%;
  119. position: relative;
  120. .tit {
  121. overflow: hidden;
  122. }
  123. .show {
  124. height: 32rpx;
  125. position: absolute;
  126. background-color: #fff;
  127. bottom: 0;
  128. right: 0;
  129. }
  130. }
  131. }
  132. .conwarp {
  133. background-color: #fff;
  134. padding: 32rpx 30rpx 30rpx;
  135. border-radius: 16rpx;
  136. margin-bottom: 20rpx;
  137. .gdHead {
  138. line-height: 58rpx;
  139. margin-bottom: 16rpx;
  140. .head {
  141. font-size: 34rpx;
  142. font-family: PingFangSC-Medium, PingFang SC;
  143. font-weight: 600;
  144. color: #333333;
  145. line-height: 48rpx;
  146. }
  147. }
  148. }
  149. }
  150. </style>