detail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  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. async toStudy() {
  454. let item = this.hadBuyCourse
  455. if (item.goodsType == 6) { // 进入直播课
  456. this.toLive(item)
  457. return
  458. }
  459. // /course/goodsRebuildStatus查询用户商品重修状态
  460. let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId, item.gradeId)
  461. if (rebuildStatus == 0) {
  462. this.$navTo.togo('/pages2/learn/details', {
  463. gradeId: item.gradeId,
  464. goodsId: item.goodsId,
  465. orderGoodsId: item.orderGoodsId,
  466. });
  467. return;
  468. }
  469. // /lock/lockStatus
  470. this.$api.lockLockStatus({
  471. action: 'jxjy',
  472. uuid:this.$method.getUuid()
  473. }).then(res => {
  474. if (res.data.code == 200) { //有其他端在操作,不能学习
  475. uni.showToast({
  476. icon: 'none',
  477. title: res.data.msg,
  478. mask: true,
  479. duration: 3000
  480. })
  481. } else if (res.data.code == 500) { //可以学习
  482. this.$http({
  483. url: '/course/courseList',
  484. method: 'get',
  485. data: {
  486. pageNum: 1,
  487. pageSize: 1,
  488. goodsId: item.goodsId,
  489. gradeId: item.gradeId,
  490. orderGoodsId: item.orderGoodsId,
  491. },
  492. })
  493. .then(res => {
  494. if (res.data.code == 200) {
  495. if(res.data.total > 1) {
  496. // this.$navTo.togo(`/pages2/wd/course?id=${item.goodsId}&gid=${item.gradeId}&orderGoodsId=${item.orderGoodsId}`);
  497. uni.navigateTo({
  498. url: `/pages3/polyv/detail?id=''&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`
  499. })
  500. } else if(res.data.total == 1) {
  501. uni.navigateTo({
  502. url: `/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`
  503. })
  504. } else {
  505. uni.showToast({
  506. icon:'none',
  507. title:'暂无可观看的视频课程'
  508. })
  509. }
  510. }
  511. })
  512. }
  513. })
  514. },
  515. toLive(item) {
  516. this.$api.courseCourseList({
  517. pageNum: 1,
  518. pageSize: 1,
  519. goodsId: item.goodsId,
  520. gradeId: 0,
  521. orderGoodsId: item.orderGoodsId,
  522. }).then(res => {
  523. if (res.data.code == 200) {
  524. if(res.data.total > 1) {
  525. // uni.navigateTo({
  526. // url:'/pages5/liveDetail/course?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0'
  527. // })
  528. uni.navigateTo({
  529. url:'/pages3/live/detail?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0&courseId=""'
  530. })
  531. } else if(res.data.total == 1) {
  532. uni.navigateTo({
  533. url:'/pages3/live/detail?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0&courseId='+ res.data.rows[0].courseId
  534. })
  535. } else {
  536. uni.showToast({
  537. icon:'none',
  538. title:'暂无可观看的直播课程'
  539. })
  540. }
  541. }
  542. })
  543. },
  544. /**
  545. * @param {Object} goodsId 商品id
  546. * 查询商品重修状态
  547. */
  548. courseGoodsRebuildStatus(goodsId, gradeId) {
  549. return new Promise(resolve => {
  550. this.$http({
  551. url: '/course/goodsRebuildStatus',
  552. method: 'get',
  553. data: {
  554. goodsId: goodsId,
  555. gradeId: gradeId
  556. },
  557. // noLoading: true,
  558. // compleLoading: true, // 请求成功是否还要继续显示加载中
  559. })
  560. .then(res => {
  561. resolve(res.data.data)
  562. })
  563. })
  564. },
  565. }
  566. };
  567. </script>
  568. <style >
  569. page{
  570. background-color: #F2F2F2;
  571. }
  572. </style>
  573. <style lang="scss" scope>
  574. @import './index.scss';
  575. .video_t2 {
  576. font-size: 24rpx;
  577. font-family: PingFang SC;
  578. font-weight: 500;
  579. color: #666666;
  580. }
  581. .video_t1 {
  582. height: 80rpx;
  583. color: #333333;
  584. line-height: 80rpx;
  585. font-size: 30rpx;
  586. font-family: PingFang SC;
  587. font-weight: bold;
  588. color: #333333;
  589. overflow: hidden;
  590. text-overflow:ellipsis;
  591. white-space: nowrap;
  592. }
  593. .video_t1_t {
  594. display: flex;
  595. flex-direction: column;
  596. height: 80rpx;
  597. color: #333333;
  598. text-align: center;
  599. align-items: center;
  600. border-left: solid 1px #d6d6db;
  601. }
  602. .video_play {
  603. position: absolute;
  604. width: 95rpx;
  605. height: 95rpx;
  606. top: 0;
  607. left: 0;
  608. right: 0;
  609. bottom: 0;
  610. margin: auto;
  611. }
  612. .video_box {
  613. position: relative;
  614. }
  615. .contents {
  616. width: 100%;
  617. height: 100%;
  618. background-color: #ffffff;
  619. margin-top: 16rpx;
  620. overflow: hidden;
  621. }
  622. .cou_title {
  623. padding: 24rpx 32rpx 40rpx 32rpx;
  624. display: flex;
  625. flex-direction: column;
  626. justify-content: space-around;
  627. }
  628. .prices {
  629. .price_word {
  630. font-size: 40rpx;
  631. font-weight: 800;
  632. color: #FC3F3F;
  633. }
  634. }
  635. // tab
  636. .tabs {
  637. // width: 100%;
  638. height: 78rpx;
  639. display: flex;
  640. align-items: center;
  641. justify-content: space-between;
  642. background-color: #F2F7FF;
  643. border-radius: 38rpx;
  644. margin: 24rpx;
  645. padding: 0rpx 5rpx;
  646. .tab_item {
  647. width: 345rpx;
  648. height: 65rpx;
  649. line-height: 65rpx;
  650. font-size: 28rpx;
  651. font-weight: bold;
  652. border-radius: 32rpx;
  653. text-align: center;
  654. color: #333;
  655. &.nactive {
  656. color: #fff;
  657. background-color: #3577E8;
  658. }
  659. &.twoBtn {
  660. width: 50%;
  661. }
  662. &.threeBtn {
  663. width: 33%;
  664. }
  665. }
  666. // /deep/ .u-tabs {
  667. // background:none!important;
  668. // }
  669. }
  670. .courseName{
  671. white-space:nowrap;
  672. overflow:hidden;
  673. text-overflow:ellipsis;
  674. }
  675. .videoBox{
  676. background-color: #FFFFFF;
  677. width: 100%;
  678. /* height: 680rpx; */
  679. z-index: 999;
  680. }
  681. .icon_up{
  682. width: 32rpx;
  683. height: 32rpx;
  684. }
  685. .courseItemBox{
  686. background: #FFFFFF;
  687. border-radius: 16rpx;
  688. padding: 0 10rpx;
  689. margin-bottom: 20rpx;
  690. }
  691. .courseItem{
  692. height: 80rpx;
  693. color: #333333;
  694. font-size: 32rpx;
  695. line-height: 80rpx;
  696. font-weight: bold;
  697. display: flex;
  698. justify-content: space-between;
  699. }
  700. .content{
  701. background-color: #FFFFFF;
  702. width: 100%;
  703. }
  704. .btn2 {
  705. width: 187rpx;
  706. height: 79rpx;
  707. line-height: 79rpx;
  708. background: #FC3F3F;
  709. border-radius: 40rpx;
  710. text-align: center;
  711. font-size: 24rpx;
  712. }
  713. .btn1 {
  714. width: 187rpx;
  715. height: 79rpx;
  716. line-height: 79rpx;
  717. background: #FFB102;
  718. border-radius: 40rpx;
  719. text-align: center;
  720. margin-right: 11rpx;
  721. font-size: 24rpx;
  722. }
  723. .blackFont{
  724. margin: 0 4rpx;
  725. }
  726. .wk_icon{
  727. width: 24rpx;
  728. height: 24rpx;
  729. margin-right: 12rpx;
  730. }
  731. .noteTag, .blackFont {
  732. font-size: 30rpx;
  733. font-family: PingFang SC;
  734. font-weight: 400;
  735. color: #A7B0B8;
  736. align-items: center;
  737. }
  738. .priceTag{
  739. /* font-size: 30rpx;
  740. font-family: PingFang SC;
  741. font-weight: bold;
  742. color: #FF2D55; */
  743. width: 60rpx;
  744. height: 40rpx;
  745. line-height: 40rpx;
  746. text-align: center;
  747. border: 1rpx solid #333;
  748. }
  749. .titleTag{
  750. font-size: 32rpx;
  751. font-weight: bold;
  752. color: #333333;
  753. // margin-left: 8rpx;
  754. }
  755. .yearTag{
  756. width: 80rpx;
  757. height: 32rpx;
  758. background: #EBF5FF;
  759. border: 2rpx solid #007AFF;
  760. border-radius: 16rpx;
  761. font-size: 24rpx;
  762. color: #007AFF;
  763. text-align: center;
  764. line-height: 32rpx;
  765. }
  766. .itemBox{
  767. background: #FFFFFF;
  768. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  769. border-radius: 24rpx;
  770. width: 100%;
  771. padding: 20rpx;
  772. margin-bottom: 20rpx;
  773. }
  774. </style>