detail.vue 20 KB

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