detail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <view>
  3. <nav-bar title="课程详情"></nav-bar>
  4. <view class="videoBox" >
  5. <!-- <view > -->
  6. <view class="video_box" v-if="!startStatus">
  7. <image :src="$method.splitImgHost(detail.coverUrl)" style="width: 100%;height: 450rpx;"></image>
  8. <image v-if="false" class="video_play" src="/static/play.png" @click="startVideo"></image>
  9. </view>
  10. <view v-else class="video_box" style="width: 100%;height: 450rpx;">
  11. <polyv-player
  12. id="playerVideo"
  13. playerId="playerVideo"
  14. height="450rpx"
  15. :vid="vid"
  16. :showSettingBtn="true"
  17. :enablePlayGesture="true"
  18. :playbackRate="playbackRate"
  19. :isAllowSeek="isAllowSeek"
  20. :autoplay="autoplay"
  21. :startTime="startTime"
  22. @statechange="onStateChange"
  23. ></polyv-player>
  24. </view>
  25. <view class="cou_title">
  26. <view class="title_name">
  27. <!-- <view class="yearTag" v-if="detail.year">{{detail.year}}</view> -->
  28. <view class="titleTag">{{detail.goodsName}}</view>
  29. </view>
  30. <view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
  31. <view class="prices">
  32. <!-- <text class="price_sym">¥</text> -->
  33. <text class="price_word">¥ {{ detail.standPrice }}</text>
  34. </view>
  35. <view class="noteTag">
  36. <!-- <image src="/static/icon/wk_icon1.png" class="wk_icon"></image> -->
  37. 共 <text class="blackFont">{{courseList.length}} 课程 {{detail.classHours || '-'}}</text> 学时
  38. </view>
  39. </view>
  40. </view>
  41. <!-- </view> -->
  42. </view>
  43. <view class="contents">
  44. <!-- <u-line color="#D6D6DB" /> -->
  45. <!-- <view style="height: 80rpx;">
  46. <view><u-tabs :list="list" :item-width="itemWidth()" font-size="30" bar-width="24" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
  47. </view> -->
  48. <view class="tabs">
  49. <view v-for="(item, index) in list" :key="index" class="tab_item"
  50. :class="[list.length == 2 ? 'twoBtn' : list.length == 3 ? 'threeBtn' : '',{nactive: current == index}]" @click="change(index)">{{ item.name }}</view>
  51. </view>
  52. <view style="padding: 20rpx;padding-bottom: 100rpx;position: relative;" v-show="current==0">
  53. <view class="content">
  54. <view v-html="detail.mobileDetailHtml" style="width: 100%;overflow: hidden;"></view>
  55. </view>
  56. </view>
  57. <view style="padding: 20rpx;padding-bottom: 100rpx;position: relative;" v-show="current==1">
  58. <view v-for="(item,index) in courseList" :key="index" >
  59. <view class="courseItemBox" >
  60. <view class="courseItem" @click="openCourse(item)">
  61. <view class="courseName">{{item.courseName}}</view>
  62. <view>
  63. <image src="/static/icon/up.png" class="icon_up" v-if="item.down"></image>
  64. <image src="/static/icon/down.png" class="icon_up" v-if="!item.down"></image>
  65. </view>
  66. </view>
  67. <view v-show="!item.down">
  68. <view v-for="(itemM,indexM) in item.menuList" :key="indexM">
  69. <courseModule :courseId="itemM.courseId" :needOpen="(isFirstEnter && menuIndex[0] === index && menuIndex[1] === indexM) ? true : false" v-if="itemM.type==1" :menuItem="itemM"></courseModule>
  70. <courseChapter :courseId="itemM.courseId" :needOpen="(isFirstEnter && menuIndex[0] === index && menuIndex[1] === indexM) ? true : false" v-if="itemM.type==2" :isBuy="false" :menuItem="itemM"></courseChapter>
  71. <courseSection :courseId="itemM.courseId" v-if="itemM.type==3" :isBuy="false" :menuItem="itemM"></courseSection>
  72. <u-line></u-line>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view style="padding: 20rpx;padding-bottom: 100rpx;position: relative;" v-show="current==2">
  79. <!-- <view > -->
  80. <view v-for="(item,index) in freeMenuList" :key="index" >
  81. <view class="courseItemBox" >
  82. <view class="courseItem">
  83. <view class="courseName">{{item.freeExamName}}</view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- </view> -->
  88. </view>
  89. </view>
  90. <view class="bottomBox" v-if="!hideBuyState">
  91. <!-- <view class="priceTag">¥ {{toFixed(detail.standPrice)}}</view> -->
  92. <!-- <view class="priceTag">分享</view> -->
  93. <view class="icons">
  94. <view class="icon_item ones">
  95. <image src="/static/index/share.png" class="share"></image>
  96. <button type="default" open-type="share" class="bt_share"></button>
  97. <view class="share_w">分享</view>
  98. </view>
  99. <view class="icon_item">
  100. <image src="/static/index/shopcar.png" class="shopcar" @click="toShopcar()"></image>
  101. <view class="share_w">购物车</view>
  102. </view>
  103. </view>
  104. <view style="display: flex;color: #FFFFFF;align-items: center;">
  105. <view class="btn1" @click="addCart">加购物车</view>
  106. <view class="btn2" @click="buy">立即购买 </view>
  107. </view>
  108. </view>
  109. <!-- 已购买过课程的弹窗 -->
  110. <u-popup v-model="bugCourseModel" mode="center" border-radius="40">
  111. <view class="had_bugCourse">
  112. <image src="/pages3/static/imgs/hadBug.png" class="share"></image>
  113. <view class="tips">
  114. <view class="warns">温馨提示</view>
  115. <view class="words">您<text>已购买过</text>该商品课程</view>
  116. <view class="words">可立即前往学习</view>
  117. </view>
  118. <view class="tip_botton">
  119. <view class="cancel_btn" @click="changeKown()">知道了</view>
  120. <view class="confirm_btn" @click="toStudy()">去学习</view>
  121. </view>
  122. </view>
  123. </u-popup>
  124. </view>
  125. </template>
  126. <script>
  127. import courseModule from '@/components/course/courseModule.vue';
  128. import courseChapter from '@/components/course/courseChapter.vue';
  129. import courseSection from '@/components/course/courseSection.vue';
  130. import { mapGetters,mapMutations } from 'vuex';
  131. export default {
  132. components: {
  133. courseModule,
  134. courseChapter,
  135. courseSection
  136. },
  137. data() {
  138. return {
  139. id:0,
  140. list: [],
  141. menuIndex:[],
  142. current:0,
  143. detail:{},
  144. courseList:[],
  145. menuList:[],
  146. freeMenuList:[],
  147. startStatus:false,
  148. playbackRate: [1.0],
  149. isAllowSeek:'no',
  150. vid:'',
  151. autoplay:true,
  152. listenConfigList:[],
  153. listenSecond:0,
  154. isFirstEnter:true, //是否首次进入
  155. timer:null,
  156. businessData:{},
  157. startTime:0,
  158. bugCourseModel: false, // 弹窗
  159. hadBuyCourse: {}, // 已购买课程信息
  160. };
  161. },
  162. computed: { ...mapGetters(['userInfo','goodsAuditionConfigIdList','playSectionId','hideBuyState']) },
  163. onLoad(option) {
  164. this.id = option.id;
  165. this.getDetail()
  166. this.goodsCourseList()
  167. this.appCommonGoodsCourseModuleFreeExamList();
  168. this.getIsBuy() // 判断是否已经购买过该课程
  169. wx.showShareMenu({
  170. withShareTicket: true,
  171. menus: ["shareAppMessage", "shareTimeline"]
  172. })
  173. },
  174. onUnload(option) {
  175. this.$store.commit('setPlaySectionId', {playSectionId :0});
  176. //移除所有的事件监听器
  177. uni.$off();
  178. },
  179. // 分享到朋友圈
  180. onShareTimeline() {
  181. return {
  182. title: this.detail.goodsName,
  183. query: 'id=' + this.id,
  184. imageUrl: this.$method.splitImgHost(this.detail.coverUrl)
  185. }
  186. },
  187. // 分享给朋友
  188. onShareAppMessage() {
  189. return {
  190. title: this.detail.goodsName,
  191. path: `/pages3/course/detail?id=` + this.id,
  192. imageUrl: this.$method.splitImgHost(this.detail.coverUrl)
  193. }
  194. },
  195. mounted() {
  196. let self = this
  197. uni.$on('getSection', item => {
  198. //播放试听
  199. self.listenSecond = 0
  200. for (var itemChild of self.listenConfigList) {
  201. if(self.playSectionId == (itemChild.sectionId || itemChild.menuId) && item.courseId == itemChild.courseId){
  202. if(itemChild.auditionMinute>0){
  203. // self.listenSecond = itemChild.auditionMinute *60 //试听秒数
  204. self.listenSecond = itemChild.auditionMinute //试听秒数 auditionMinute调整为秒单位
  205. }
  206. }
  207. }
  208. if(self.listenSecond>0){
  209. if(self.timer){
  210. clearInterval(self.timer);
  211. }
  212. if(self.vid){
  213. //切换视频
  214. var polyvPlayerContext = self.selectComponent('#playerVideo');
  215. polyvPlayerContext.changeVid(item.recordingUrl)
  216. }else{
  217. self.vid = item.recordingUrl
  218. }
  219. self.startStatus = true
  220. self.startTime = 0
  221. }else{
  222. self.$u.toast('试听配置错误');
  223. }
  224. })
  225. this.updateChapterOpen(true)
  226. },
  227. methods: {
  228. ...mapMutations(['updateChapterOpen']),
  229. itemWidth() {
  230. return (100/this.list.length)+'%'
  231. },
  232. appCommonGoodsCourseModuleFreeExamList() {
  233. // url: '/app/common/goods/course/moduleFreeExamList/'+data,
  234. this.$api.appCommonGoodsCourseModuleFreeExamList(this.id).then(res => {
  235. if(res.data.data.length) {
  236. this.freeMenuList = res.data.data;
  237. this.list = [
  238. {
  239. name: '课程介绍'
  240. },
  241. {
  242. name: '课程目录'
  243. },
  244. {
  245. name: '赠送'
  246. }
  247. ]
  248. } else {
  249. this.list = [
  250. {
  251. name: '课程介绍'
  252. },
  253. {
  254. name: '课程目录'
  255. }
  256. ]
  257. }
  258. console.log(this.list)
  259. })
  260. },
  261. courseBusiness(){
  262. // url: '/app/common/course/business/'+data,
  263. this.$api.courseBusiness(this.detail.businessId).then(res => {
  264. this.businessData = res.data.data;
  265. })
  266. },
  267. toFixed(number) {
  268. if(number > 0) {
  269. return number.toFixed(2)
  270. } else {
  271. return '0.00'
  272. }
  273. },
  274. onStateChange(newstate, oldstate) {
  275. if (newstate.detail.newstate == 'playing') {
  276. //开始播放
  277. if(this.timer){
  278. clearInterval(this.timer);
  279. }
  280. this.timer = setInterval(this.timeEvent, 1500);//定时器
  281. }
  282. },
  283. closePlay(){
  284. this.$store.commit('setPlaySectionId', {playSectionId :0});
  285. this.vid = ""
  286. this.startStatus = false
  287. },
  288. timeEvent() {
  289. let self = this
  290. var polyvPlayerContext = this.selectComponent('#playerVideo');
  291. if (polyvPlayerContext != null) {
  292. let PlayCurrentTime = polyvPlayerContext.getCurrentTime();
  293. if(PlayCurrentTime>=this.listenSecond){
  294. polyvPlayerContext.stop();
  295. polyvPlayerContext.exitFullScreen();
  296. clearInterval(this.timer);
  297. this.timer = null
  298. uni.showModal({
  299. title: '提示',
  300. content: '试听结束,购买课程可学习全部',
  301. showCancel:false,
  302. success: function(resst) {
  303. self.closePlay()
  304. }
  305. });
  306. }
  307. }
  308. },
  309. openCourse(item){
  310. item.down = !item.down
  311. if(!item.down&&item.menuList.length==0){
  312. this.getMenuList(item)
  313. }
  314. },
  315. addShopCart() {
  316. let self = this
  317. this.$api.addCart({goodsId:this.id}).then(res => {
  318. if(res.data.code==200){
  319. uni.setStorageSync('updateCart',1) //提醒刷新购物车
  320. uni.showToast({
  321. title: '添加成功'
  322. });
  323. }else{
  324. this.$u.toast(res.data.msg);
  325. }
  326. });
  327. },
  328. goodsCourseList() {
  329. // url: '/app/common/goods/course/list/'+ data,
  330. this.$api.goodsCourseList(this.id).then(res => {
  331. if(res.data.code==200){
  332. for(let i=0;i<res.data.rows.length;i++){
  333. let item = res.data.rows[i]
  334. item.down = true
  335. item.menuList = []
  336. }
  337. this.courseList = res.data.rows;
  338. this.getFirstCourse();
  339. }
  340. });
  341. },
  342. /**
  343. * 获取第一个有模块或者章的课程
  344. */
  345. async getFirstCourse() {
  346. for(let i = 0; i < this.courseList.length; i++) {
  347. let menuIndexOrFalse = await this.getCourseMenus(this.courseList[i]);
  348. if(menuIndexOrFalse !== false) {
  349. this.menuIndex = [i,menuIndexOrFalse]
  350. this.openCourse(this.courseList[i])
  351. break
  352. }
  353. }
  354. },
  355. getCourseMenus(item) {
  356. return new Promise(resolve => {
  357. // url: '/app/common/course/menuList',
  358. this.$api.menuList({courseId:item.courseId}).then(res => {
  359. if(res.data.code==200){
  360. for(let i=0;i<res.data.rows.length;i++){
  361. if(res.data.rows[i].type == 1 || res.data.rows[i].type == 2) {
  362. resolve(i)
  363. break;
  364. }
  365. }
  366. }
  367. });
  368. })
  369. },
  370. getMenuList(item) {
  371. let self = this
  372. this.$api.menuList({courseId:item.courseId}).then(res => {
  373. if(res.data.code==200){
  374. for(let i=0;i<res.data.rows.length;i++){
  375. let item = res.data.rows[i]
  376. item.down = true
  377. item.id = item.menuId
  378. item.name = item.menuName
  379. if(item.type==3){
  380. //判断是否试听
  381. item.tryListen = false
  382. if(self.goodsAuditionConfigIdList.indexOf(item.id)!==-1){
  383. item.tryListen = true
  384. }
  385. }
  386. }
  387. item.menuList = res.data.rows
  388. }
  389. });
  390. },
  391. // 获取课程详情
  392. getDetail() {
  393. let self = this
  394. let sectionIdList = []
  395. // /app/common/goods/+data
  396. this.$api.commonGoodsDetail(this.id).then(res => {
  397. if(res.data.code==200){
  398. if(res.data.data.mobileDetailHtml){
  399. res.data.data.mobileDetailHtml = res.data.data.mobileDetailHtml.replace(/<img/gi,'<img style="max-width:100%;"')
  400. }
  401. self.detail = res.data.data
  402. this.courseBusiness();
  403. if(self.detail.goodsAuditionConfig){
  404. self.listenConfigList = JSON.parse(self.detail.goodsAuditionConfig)
  405. for (var itemChild of self.listenConfigList) {
  406. sectionIdList.push(itemChild.sectionId)//存储试听节ID
  407. }
  408. self.$store.commit('setGoodsAuditionConfigIdList', {goodsAuditionConfigIdList:sectionIdList});
  409. }
  410. }
  411. });
  412. },
  413. buy(){
  414. if(this.$method.isGoLogin()){
  415. return
  416. }
  417. this.$navTo.togo('/pages2/order/confirm_list?id='+this.id);
  418. },
  419. addCart(){
  420. if(this.$method.isGoLogin()){
  421. return
  422. }
  423. this.addShopCart()
  424. },
  425. open(item){
  426. item.showChildren = !item.showChildren
  427. },
  428. change(index){
  429. this.current = index;
  430. },
  431. toShopcar() {
  432. uni.switchTab({
  433. url: '/pages/shopping/shoppingCart'
  434. })
  435. },
  436. getIsBuy() {
  437. this.$http({
  438. url: '/order/buyGoodsNotExpired',
  439. method: 'get',
  440. data: { goodsId: this.id }
  441. }).then((res) => {
  442. if (res.data.code == 200) {
  443. if (res.data.data) { // 有data返回是已经购买过的课程
  444. this.hadBuyCourse = res.data.data
  445. this.bugCourseModel = true
  446. }
  447. }
  448. })
  449. },
  450. changeKown() {
  451. this.bugCourseModel = false
  452. },
  453. toStudy() {
  454. // console.log('==============')
  455. // let item = this.hadBuyCourse
  456. // if (item.goodsType == 6) { // 进入直播课
  457. // this.toLive(item)
  458. // return
  459. // }
  460. // // /course/goodsRebuildStatus查询用户商品重修状态
  461. // let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId, item.gradeId)
  462. // if (rebuildStatus == 0) {
  463. // this.$navTo.togo('/pages2/learn/details', {
  464. // gradeId: item.gradeId,
  465. // goodsId: item.goodsId,
  466. // orderGoodsId: item.orderGoodsId,
  467. // });
  468. // return;
  469. // }
  470. // // /lock/lockStatus
  471. // this.$api.lockLockStatus({
  472. // action: 'jxjy',
  473. // uuid:this.$method.getUuid()
  474. // }).then(res => {
  475. // if (res.data.code == 200) { //有其他端在操作,不能学习
  476. // uni.showToast({
  477. // icon: 'none',
  478. // title: res.data.msg,
  479. // mask: true,
  480. // duration: 3000
  481. // })
  482. // } else if (res.data.code == 500) { //可以学习
  483. // this.$http({
  484. // url: '/course/courseList',
  485. // method: 'get',
  486. // data: {
  487. // pageNum: 1,
  488. // pageSize: 1,
  489. // goodsId: item.goodsId,
  490. // gradeId: item.gradeId,
  491. // orderGoodsId: item.orderGoodsId,
  492. // },
  493. // })
  494. // .then(res => {
  495. // if (res.data.code == 200) {
  496. // if(res.data.total > 1) {
  497. // this.$navTo.togo(`/pages2/wd/course?id=${item.goodsId}&gid=${item.gradeId}&orderGoodsId=${item.orderGoodsId}`);
  498. // } else if(res.data.total == 1) {
  499. // uni.navigateTo({
  500. // url: `/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}`
  501. // })
  502. // } else {
  503. // uni.showToast({
  504. // icon:'none',
  505. // title:'暂无可观看的视频课程'
  506. // })
  507. // }
  508. // }
  509. // });
  510. // }
  511. // })
  512. },
  513. // toLive(item) {
  514. // this.$api.courseCourseList({
  515. // pageNum: 1,
  516. // pageSize: 1,
  517. // goodsId: item.goodsId,
  518. // gradeId: 0,
  519. // orderGoodsId: item.orderGoodsId,
  520. // }).then(res => {
  521. // if (res.data.code == 200) {
  522. // if(res.data.total > 1) {
  523. // uni.navigateTo({
  524. // url:'/pages5/liveDetail/course?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0'
  525. // })
  526. // } else if(res.data.total == 1) {
  527. // uni.navigateTo({
  528. // url:'/pages3/live/detail?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0&courseId='+ res.data.rows[0].courseId
  529. // })
  530. // } else {
  531. // uni.showToast({
  532. // icon:'none',
  533. // title:'暂无可观看的直播课程'
  534. // })
  535. // }
  536. // }
  537. // })
  538. // },
  539. /**
  540. * @param {Object} goodsId 商品id
  541. * 查询商品重修状态
  542. */
  543. // courseGoodsRebuildStatus(goodsId, gradeId) {
  544. // return new Promise(resolve => {
  545. // this.$http({
  546. // url: '/course/goodsRebuildStatus',
  547. // method: 'get',
  548. // data: {
  549. // goodsId: goodsId,
  550. // gradeId: gradeId
  551. // },
  552. // // noLoading: true,
  553. // // compleLoading: true, // 请求成功是否还要继续显示加载中
  554. // })
  555. // .then(res => {
  556. // resolve(res.data.data)
  557. // })
  558. // })
  559. // },
  560. }
  561. };
  562. </script>
  563. <style >
  564. page{
  565. background-color: #F2F2F2;
  566. }
  567. </style>
  568. <style lang="scss" scope>
  569. @import './index.scss';
  570. .video_t2 {
  571. font-size: 24rpx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #666666;
  575. }
  576. .video_t1 {
  577. height: 80rpx;
  578. color: #333333;
  579. line-height: 80rpx;
  580. font-size: 30rpx;
  581. font-family: PingFang SC;
  582. font-weight: bold;
  583. color: #333333;
  584. overflow: hidden;
  585. text-overflow:ellipsis;
  586. white-space: nowrap;
  587. }
  588. .video_t1_t {
  589. display: flex;
  590. flex-direction: column;
  591. height: 80rpx;
  592. color: #333333;
  593. text-align: center;
  594. align-items: center;
  595. border-left: solid 1px #d6d6db;
  596. }
  597. .video_play {
  598. position: absolute;
  599. width: 95rpx;
  600. height: 95rpx;
  601. top: 0;
  602. left: 0;
  603. right: 0;
  604. bottom: 0;
  605. margin: auto;
  606. }
  607. .video_box {
  608. position: relative;
  609. }
  610. .contents {
  611. width: 100%;
  612. height: 100%;
  613. background-color: #ffffff;
  614. margin-top: 16rpx;
  615. overflow: hidden;
  616. }
  617. .cou_title {
  618. padding: 24rpx 32rpx 40rpx 32rpx;
  619. display: flex;
  620. flex-direction: column;
  621. justify-content: space-around;
  622. }
  623. .prices {
  624. .price_word {
  625. font-size: 40rpx;
  626. font-weight: 800;
  627. color: #FC3F3F;
  628. }
  629. }
  630. // tab
  631. .tabs {
  632. // width: 100%;
  633. height: 78rpx;
  634. display: flex;
  635. align-items: center;
  636. justify-content: space-between;
  637. background-color: #F2F7FF;
  638. border-radius: 38rpx;
  639. margin: 24rpx;
  640. padding: 0rpx 5rpx;
  641. .tab_item {
  642. width: 345rpx;
  643. height: 65rpx;
  644. line-height: 65rpx;
  645. font-size: 28rpx;
  646. font-weight: bold;
  647. border-radius: 32rpx;
  648. text-align: center;
  649. color: #333;
  650. &.nactive {
  651. color: #fff;
  652. background-color: #3577E8;
  653. }
  654. &.twoBtn {
  655. width: 50%;
  656. }
  657. &.threeBtn {
  658. width: 33%;
  659. }
  660. }
  661. // /deep/ .u-tabs {
  662. // background:none!important;
  663. // }
  664. }
  665. .courseName{
  666. white-space:nowrap;
  667. overflow:hidden;
  668. text-overflow:ellipsis;
  669. }
  670. .videoBox{
  671. background-color: #FFFFFF;
  672. width: 100%;
  673. /* height: 680rpx; */
  674. z-index: 999;
  675. }
  676. .icon_up{
  677. width: 32rpx;
  678. height: 32rpx;
  679. }
  680. .courseItemBox{
  681. background: #FFFFFF;
  682. border-radius: 16rpx;
  683. padding: 0 10rpx;
  684. margin-bottom: 20rpx;
  685. }
  686. .courseItem{
  687. height: 80rpx;
  688. color: #333333;
  689. font-size: 32rpx;
  690. line-height: 80rpx;
  691. font-weight: bold;
  692. display: flex;
  693. justify-content: space-between;
  694. }
  695. .content{
  696. background-color: #FFFFFF;
  697. width: 100%;
  698. }
  699. .btn2 {
  700. width: 187rpx;
  701. height: 79rpx;
  702. line-height: 79rpx;
  703. background: #FC3F3F;
  704. border-radius: 40rpx;
  705. text-align: center;
  706. font-size: 24rpx;
  707. }
  708. .btn1 {
  709. width: 187rpx;
  710. height: 79rpx;
  711. line-height: 79rpx;
  712. background: #FFB102;
  713. border-radius: 40rpx;
  714. text-align: center;
  715. margin-right: 11rpx;
  716. font-size: 24rpx;
  717. }
  718. .blackFont{
  719. margin: 0 4rpx;
  720. }
  721. .wk_icon{
  722. width: 24rpx;
  723. height: 24rpx;
  724. margin-right: 12rpx;
  725. }
  726. .noteTag, .blackFont {
  727. font-size: 30rpx;
  728. font-family: PingFang SC;
  729. font-weight: 400;
  730. color: #A7B0B8;
  731. align-items: center;
  732. }
  733. .priceTag{
  734. /* font-size: 30rpx;
  735. font-family: PingFang SC;
  736. font-weight: bold;
  737. color: #FF2D55; */
  738. width: 60rpx;
  739. height: 40rpx;
  740. line-height: 40rpx;
  741. text-align: center;
  742. border: 1rpx solid #333;
  743. }
  744. .titleTag{
  745. font-size: 32rpx;
  746. font-weight: bold;
  747. color: #333333;
  748. // margin-left: 8rpx;
  749. }
  750. .yearTag{
  751. width: 80rpx;
  752. height: 32rpx;
  753. background: #EBF5FF;
  754. border: 2rpx solid #007AFF;
  755. border-radius: 16rpx;
  756. font-size: 24rpx;
  757. color: #007AFF;
  758. text-align: center;
  759. line-height: 32rpx;
  760. }
  761. .itemBox{
  762. background: #FFFFFF;
  763. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  764. border-radius: 24rpx;
  765. width: 100%;
  766. padding: 20rpx;
  767. margin-bottom: 20rpx;
  768. }
  769. </style>