keynote.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <template>
  2. <view >
  3. <view class="video_body">
  4. <view class="video_box">
  5. <image :src="$method.splitImgHost(detail.coverUrl)" style="width: 100%;height: 460rpx;"></image>
  6. </view>
  7. <view>
  8. <u-row >
  9. <u-col span="8" offset="1">
  10. <view class="video_t1">
  11. {{detail.name}}
  12. </view>
  13. </u-col>
  14. <u-col span="3">
  15. <view class="price_num">
  16. ¥{{detail.price}}
  17. </view>
  18. </u-col>
  19. </u-row>
  20. </view>
  21. <view>
  22. <u-tabs :list="list" font-size="24" bar-width="110" :current="current" @change="change" active-color="#32467B"></u-tabs>
  23. </view>
  24. <u-line color="#D6D6DB" />
  25. <view v-if="current==0">
  26. <!-- 重点考点介绍-->
  27. <view style="margin-top: 15rpx;">
  28. <u-row >
  29. <u-col span="9" >
  30. <view class="video_t2" style="display: flex;align-items: center;">
  31. <view class="top_line"></view>
  32. 重点考点介绍
  33. </view>
  34. </u-col>
  35. </u-row>
  36. <view class="text_box">
  37. <u-parse :html="detail.introduction"></u-parse>
  38. </view>
  39. </view>
  40. <u-line color="#D6D6DB" />
  41. </view>
  42. <!-- 出题名师-->
  43. <view v-if="current<=1">
  44. <view style="margin: 15rpx 0;">
  45. <u-row >
  46. <u-col span="8" >
  47. <view class="video_t2" style="display: flex;align-items: center;">
  48. <view class="top_line"></view>
  49. 出题名师
  50. </view>
  51. </u-col>
  52. </u-row>
  53. <view v-for="(item,index) in teacherList" :key="index">
  54. <u-row >
  55. <view style="margin: 25rpx;display: flex;">
  56. <view >
  57. <image :src="$method.splitImgHost(item.avatar)" class="teacher_img"></image>
  58. </view>
  59. <view class="teacher_t">
  60. {{item.introduce}}
  61. </view>
  62. </view>
  63. </u-row>
  64. </view>
  65. </view>
  66. <u-line color="#D6D6DB" />
  67. </view>
  68. <!-- 相关推荐-->
  69. <view style="margin: 15rpx 0;">
  70. <u-row >
  71. <u-col span="8" >
  72. <view class="video_t2" style="display: flex;align-items: center;">
  73. <view class="top_line"></view>
  74. 相关推荐
  75. </view>
  76. </u-col>
  77. </u-row>
  78. <view style="margin: 10rpx;">
  79. <view class="tj_box" v-for="(item,index) in list" :key="index">
  80. <image src="/static/banner.png" style="width: 320rpx;height: 160rpx;"></image>
  81. <view style="font-size: 24rpx;color: #666666;d">
  82. 2020年二级建造师继续教...
  83. </view>
  84. <view>
  85. <u-row >
  86. <u-col span="6" >
  87. <view style="margin-left: 20rpx;">
  88. <image src="/static/people.png" style="width: 20rpx;height: 20rpx;"></image>
  89. <text style="color: #999999;font-size: 20rpx;margin-left: 10rpx;">2023</text>
  90. </view>
  91. </u-col>
  92. <u-col span="6" text-align="right">
  93. <text style="color: #E91313;font-size: 16rpx;margin-left: 8rpx;">
  94. 活动价
  95. </text>
  96. <text style="color: #E91313;font-size: 24rpx;font-weight: bold;">
  97. ¥499
  98. </text>
  99. </u-col>
  100. </u-row>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="footer_tab">
  107. <u-line color="#D6D6DB" />
  108. <view style="height: 100%;display: flex;align-items: center;position: relative;">
  109. <view style="text-align: center;margin-left: 30rpx;">
  110. <image src="/static/sc.png" class="sc"></image>
  111. <view class="sc_t">收藏</view>
  112. </view>
  113. <view class="buy" @click="jumpRead">
  114. 开始阅读
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </template>
  120. <script>
  121. export default {
  122. data() {
  123. return {
  124. list: [{
  125. name: '重点考点介绍'
  126. }, {
  127. name: '出题名师',
  128. }, {
  129. name: '相关推荐',
  130. }],
  131. current: 0,
  132. id:0,
  133. detail:{},
  134. teacherList:[]
  135. }
  136. },
  137. onLoad(option) {
  138. this.id = option.id
  139. this.getDetail()
  140. },
  141. onShow(){
  142. },
  143. methods: {
  144. getDetail(){
  145. let self = this
  146. this.$api.noteInfo(this.id).then(res => {
  147. self.detail = res.data.data
  148. if(self.detail.teacherIds&&self.detail.teacherIds!=''){
  149. let param = {
  150. teacherIds : self.detail.teacherIds
  151. }
  152. self.getTeacherList(param);
  153. }
  154. })
  155. },
  156. getTeacherList(param){
  157. let self = this
  158. this.$api.teacherList(param).then(res => {
  159. self.teacherList = res.data.rows
  160. })
  161. },
  162. change(index) {
  163. this.current = index;
  164. },
  165. jumpRead(){
  166. this.$navTo.togo('/pages2/course/read', {})
  167. }
  168. },
  169. }
  170. </script>
  171. <style>
  172. ::-webkit-scrollbar{
  173. width: 0;
  174. height: 0;
  175. color: transparent;
  176. }
  177. </style>
  178. <style scope>
  179. .text_box{
  180. font-size: 24rpx;
  181. font-family: PingFang SC;
  182. font-weight: 400;
  183. color: #666666;
  184. line-height: 36rpx;
  185. padding: 20rpx;
  186. }
  187. .price_num{
  188. font-size: 24rpx;
  189. font-family: PingFang SC;
  190. font-weight: bold;
  191. color: #E91313;
  192. }
  193. .price_t2{
  194. font-size: 18rpx;
  195. font-family: PingFang SC;
  196. font-weight: 500;
  197. text-decoration: line-through;
  198. color: #999999;
  199. }
  200. .price_t1{
  201. font-size: 33rpx;
  202. font-family: PingFang SC;
  203. font-weight: bold;
  204. color: #E91313;
  205. }
  206. .sc_t{
  207. font-size: 22rpx;
  208. color: #000000;
  209. }
  210. .sc{
  211. width: 29rpx ;
  212. height: 29rpx;
  213. }
  214. .buy{
  215. width: 138rpx;
  216. height: 48rpx;
  217. line-height: 48rpx;
  218. background: #32467B;
  219. border-radius: 10rpx;
  220. color: #FFFFFF;
  221. font-size: 28rpx;
  222. text-align: center;
  223. vertical-align: middle;
  224. position: absolute;
  225. right: 30rpx;
  226. }
  227. .video_body{
  228. padding-bottom: 96rpx;
  229. }
  230. .footer_tab{
  231. position:fixed;
  232. bottom:0;
  233. height: 96rpx;
  234. width: 100%;
  235. background-color: #FFFFFF;
  236. }
  237. .tj_box{
  238. width: 50%;
  239. display: inline-block;
  240. text-align: center;
  241. margin: 10rpx 0;
  242. }
  243. .teacher_t{
  244. font-size: 24rpx;
  245. font-family: PingFang SC;
  246. font-weight: 400;
  247. color: #666666;
  248. line-height: 36rpx;
  249. margin-left: 15rpx;
  250. }
  251. .teacher_img{
  252. width: 87rpx;
  253. height: 129rpx;
  254. }
  255. .t2{
  256. font-size: 24rpx;
  257. font-family: PingFang SC;
  258. color: #666666;
  259. line-height: 36rpx;
  260. margin: 15rpx;
  261. }
  262. .r_t2{
  263. width: 201rpx;
  264. height: 49rpx;
  265. background: rgba(22, 119, 255, 0.05);
  266. border: 1rpx solid #32467B;
  267. border-radius: 16rpx;
  268. color: #666666;
  269. font-size: 23rpx;
  270. text-align: center;
  271. display: flex;
  272. align-items: center;
  273. padding: 5rpx;
  274. }
  275. .scroll_box{
  276. width: 100%;
  277. height: 60rpx;
  278. background: #FFFFFF;
  279. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  280. white-space:nowrap;
  281. overflow: hidden;
  282. margin: 15rpx 0;
  283. }
  284. .r_sliper{
  285. padding: 0 20rpx;
  286. }
  287. .top_line{
  288. width: 6rpx;
  289. height: 22rpx;
  290. background: #32467B;
  291. margin-right: 10rpx;
  292. }
  293. .video_t2{
  294. font-size: 24rpx;
  295. font-family: PingFang SC;
  296. font-weight: 500;
  297. color: #666666;
  298. }
  299. .video_t1{
  300. font-size: 28rpx;
  301. font-family: PingFang SC;
  302. font-weight: bold;
  303. color: #333333;
  304. }
  305. .video_play{
  306. position:absolute;
  307. width: 95rpx;
  308. height: 95rpx;
  309. top:0;
  310. left:0;
  311. right:0;
  312. bottom:0;
  313. margin:auto;
  314. }
  315. .video_box{
  316. position: relative;
  317. }
  318. page {
  319. background: #FFFFFF;
  320. }
  321. </style>