detail.vue 21 KB

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