keynote.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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 recommendList" :key="index" @click="jumpDetail(item)">
  80. <image :src="$method.splitImgHost(item.coverUrl)" style="width: 320rpx;height: 160rpx;"></image>
  81. <view style="font-size: 24rpx;color: #666666;text-align: left;">
  82. {{item.name}}
  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. ¥{{item.price}}
  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. recommendList:[]
  136. }
  137. },
  138. onLoad(option) {
  139. this.id = option.id
  140. this.getDetail()
  141. this.noteRecommendList({fileId:this.id})
  142. },
  143. onShow(){
  144. },
  145. methods: {
  146. jumpDetail(item) {
  147. this.$navTo.togo('/pages2/course/keynote', {
  148. id:item.fileId
  149. });
  150. },
  151. getDetail(){
  152. let self = this
  153. this.$api.noteInfo(this.id).then(res => {
  154. self.detail = res.data.data
  155. if(self.detail.teacherIds&&self.detail.teacherIds!=''){
  156. let param = {
  157. teacherIds : self.detail.teacherIds
  158. }
  159. self.getTeacherList(param);
  160. }
  161. })
  162. },
  163. getTeacherList(param){
  164. let self = this
  165. this.$api.teacherList(param).then(res => {
  166. self.teacherList = res.data.rows
  167. })
  168. },
  169. noteRecommendList(param){
  170. let self = this
  171. this.$api.noteRecommendList(param).then(res => {
  172. self.recommendList = res.data.data
  173. })
  174. },
  175. change(index) {
  176. this.current = index;
  177. },
  178. jumpRead(){
  179. this.$navTo.togo('/pages2/course/read', {})
  180. }
  181. },
  182. }
  183. </script>
  184. <style>
  185. ::-webkit-scrollbar{
  186. width: 0;
  187. height: 0;
  188. color: transparent;
  189. }
  190. </style>
  191. <style scope>
  192. .text_box{
  193. font-size: 24rpx;
  194. font-family: PingFang SC;
  195. font-weight: 400;
  196. color: #666666;
  197. line-height: 36rpx;
  198. padding: 20rpx;
  199. }
  200. .price_num{
  201. font-size: 24rpx;
  202. font-family: PingFang SC;
  203. font-weight: bold;
  204. color: #E91313;
  205. }
  206. .price_t2{
  207. font-size: 18rpx;
  208. font-family: PingFang SC;
  209. font-weight: 500;
  210. text-decoration: line-through;
  211. color: #999999;
  212. }
  213. .price_t1{
  214. font-size: 33rpx;
  215. font-family: PingFang SC;
  216. font-weight: bold;
  217. color: #E91313;
  218. }
  219. .sc_t{
  220. font-size: 22rpx;
  221. color: #000000;
  222. }
  223. .sc{
  224. width: 29rpx ;
  225. height: 29rpx;
  226. }
  227. .buy{
  228. width: 138rpx;
  229. height: 48rpx;
  230. line-height: 48rpx;
  231. background: #32467B;
  232. border-radius: 10rpx;
  233. color: #FFFFFF;
  234. font-size: 28rpx;
  235. text-align: center;
  236. vertical-align: middle;
  237. position: absolute;
  238. right: 30rpx;
  239. }
  240. .video_body{
  241. padding-bottom: 96rpx;
  242. }
  243. .footer_tab{
  244. position:fixed;
  245. bottom:0;
  246. height: 96rpx;
  247. width: 100%;
  248. background-color: #FFFFFF;
  249. }
  250. .tj_box{
  251. width: 50%;
  252. display: inline-block;
  253. text-align: center;
  254. margin: 10rpx 0;
  255. }
  256. .teacher_t{
  257. font-size: 24rpx;
  258. font-family: PingFang SC;
  259. font-weight: 400;
  260. color: #666666;
  261. line-height: 36rpx;
  262. margin-left: 15rpx;
  263. }
  264. .teacher_img{
  265. width: 87rpx;
  266. height: 129rpx;
  267. }
  268. .t2{
  269. font-size: 24rpx;
  270. font-family: PingFang SC;
  271. color: #666666;
  272. line-height: 36rpx;
  273. margin: 15rpx;
  274. }
  275. .r_t2{
  276. width: 201rpx;
  277. height: 49rpx;
  278. background: rgba(22, 119, 255, 0.05);
  279. border: 1rpx solid #32467B;
  280. border-radius: 16rpx;
  281. color: #666666;
  282. font-size: 23rpx;
  283. text-align: center;
  284. display: flex;
  285. align-items: center;
  286. padding: 5rpx;
  287. }
  288. .scroll_box{
  289. width: 100%;
  290. height: 60rpx;
  291. background: #FFFFFF;
  292. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  293. white-space:nowrap;
  294. overflow: hidden;
  295. margin: 15rpx 0;
  296. }
  297. .r_sliper{
  298. padding: 0 20rpx;
  299. }
  300. .top_line{
  301. width: 6rpx;
  302. height: 22rpx;
  303. background: #32467B;
  304. margin-right: 10rpx;
  305. }
  306. .video_t2{
  307. font-size: 24rpx;
  308. font-family: PingFang SC;
  309. font-weight: 500;
  310. color: #666666;
  311. }
  312. .video_t1{
  313. font-size: 28rpx;
  314. font-family: PingFang SC;
  315. font-weight: bold;
  316. color: #333333;
  317. }
  318. .video_play{
  319. position:absolute;
  320. width: 95rpx;
  321. height: 95rpx;
  322. top:0;
  323. left:0;
  324. right:0;
  325. bottom:0;
  326. margin:auto;
  327. }
  328. .video_box{
  329. position: relative;
  330. }
  331. page {
  332. background: #FFFFFF;
  333. }
  334. </style>