courseSection.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <template>
  2. <view style="display: flex;justify-content: space-between;align-items: center;" @click="getVideo">
  3. <view style="display: flex;justify-content: space-between;margin: 20rpx 0;width: 100%;">
  4. <view style="display: flex;align-items: center;flex:1;">
  5. <view class="tag tagColor1" v-if="menuItem.sectionType==1">录播</view>
  6. <view class="tag tagColor2" v-if="menuItem.sectionType==2">直播</view>
  7. <view class="tag tagColor3" v-if="menuItem.sectionType==3">回放</view>
  8. <view class="t_content">
  9. <view v-if="menuItem.sectionType==1" :class="playSectionId==newId && playNextId==playId?'color1':''">{{menuItem.name || ''}}</view>
  10. <view v-if="menuItem.sectionType==2" :class="playSectionId==newId && playNextId==playId?'color2':''">{{menuItem.name || ''}}</view>
  11. <view v-if="menuItem.sectionType==3" :class="playSectionId==newId && playNextId==playId?'color3':''">{{menuItem.name || ''}}</view>
  12. <view style="font-size: 20rpx;color: #FF3B30;" v-if="menuItem.sectionType==2 && menuItem.liveStartTime">
  13. <view v-if="menuItem.liveStartTime>nowTime || !isBuy">
  14. <text>{{$method.timestampToTime(menuItem.liveStartTime, isDay =false)}}</text>-
  15. <text>{{$method.timestampToTime(menuItem.liveEndTime, isDay =false)}}</text>
  16. </view>
  17. <template v-if="isLast()">
  18. <view v-if="liveLast.watchStatus == 'live'">
  19. <text>直播中</text>
  20. </view>
  21. <view v-if="liveLast.watchStatus == 'end'">
  22. <text>当前直播回放视频请稍后再查看</text>
  23. </view>
  24. </template>
  25. <!-- <view v-if="menuItem.liveStartTime<=nowTime&&menuItem.liveEndTime>nowTime">
  26. <text>直播中</text>
  27. </view>
  28. <view v-if="menuItem.liveEndTime<nowTime">
  29. <text>回放</text>
  30. </view> -->
  31. </view>
  32. <view style="font-size: 20rpx;color: #FF3B30;" v-if="menuItem.sectionType == 3">
  33. <view v-if="!menuItem.recordingUrl">
  34. <text>当前直播回放视频请稍后再查看</text>
  35. </view>
  36. <view v-else>
  37. 回放中
  38. </view>
  39. </view>
  40. </view>
  41. <view v-if="menuItem.sectionType==null">{{menuItem.name || ''}}</view>
  42. </view>
  43. <view style="font-size: 20rpx;color: #FF3B30;" v-if="menuItem.liveStartTime && menuItem.sectionType != 3 && isBuy">
  44. <template v-if="!isLast() && !isLive">
  45. <view class="tagWillPlay" v-if="menuItem.liveStartTime>nowTime">
  46. <text>待开播</text>
  47. </view>
  48. <view class="tagPlaying" v-if="menuItem.liveStartTime<=nowTime&&menuItem.liveEndTime>nowTime">
  49. <text>直播中</text>
  50. </view>
  51. <view class="tagPlayed" v-if="menuItem.liveEndTime<nowTime">
  52. <text>已结束</text>
  53. </view>
  54. </template>
  55. </view>
  56. <!-- 直播课程没有学习状态 -->
  57. <template v-if="!isLive">
  58. <view v-if="(isRebuild||menuItem.rebuild>0)" class="tagRe">待重修</view>
  59. <view v-else>
  60. <view v-if="menuItem.learning==1" class="tagGreen">已看完</view>
  61. </view>
  62. </template>
  63. </view>
  64. <view v-if="menuItem.tryListen&&!isBuy" class="tryBox">
  65. 试看
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. import { mapGetters } from 'vuex';
  71. import eventHub from '@/common/eventHub.js'
  72. import {WEBVIEW_URL} from '@/common/request.js'
  73. export default {
  74. name: 'courseSection',
  75. props: {
  76. isLive:false, //是否是直播课
  77. orderGoodsId:{
  78. default:0
  79. },
  80. preItem:{
  81. default:undefined,
  82. },
  83. learningOrder:{ //是否设置学习顺序 1 章节顺序 0不设置 2从头学到尾顺序
  84. type:Number,
  85. default:0
  86. },
  87. courseId: {
  88. type: Number,
  89. default: 0
  90. },
  91. goodsId: {
  92. type: Number,
  93. default: 0
  94. },
  95. menuItem: {
  96. type: Object,
  97. default: {}
  98. },
  99. isBuy: {
  100. type: Boolean,
  101. default: false
  102. },
  103. levelId: {
  104. type: String,
  105. default: ""
  106. },
  107. isRebuild: {
  108. type: Boolean,
  109. default: false
  110. },
  111. gradeId: {
  112. type: Number,
  113. default: 0
  114. },
  115. nextMenuItem: {
  116. type: Object,
  117. default: {}
  118. },
  119. sectionMaxNum:{
  120. default:undefined,
  121. },
  122. },
  123. watch:{
  124. menuItem(val) {
  125. console.log(val,'val')
  126. }
  127. },
  128. data() {
  129. return {
  130. nowTime:0,
  131. newId:0,
  132. playId:'',
  133. clickLock:false, //点击锁,防止连续点击多次
  134. };
  135. },
  136. onLoad() {
  137. },
  138. created() {
  139. },
  140. mounted() {
  141. this.nowTime = Number(new Date().getTime()/1000).toFixed(0)
  142. this.newId= this.menuItem.sectionId>0?this.menuItem.sectionId:this.menuItem.menuId
  143. console.log(this.newId,'this.newId', this.playNextId)
  144. console.log(this.playSectionId,'this.playSectionId')
  145. console.log(this.isRebuild)
  146. console.log(this.nextMenuItem,'nextMenuItem')
  147. console.log(this.menuItem,'this.menuItem=======>',this.menuItem.recordingUrl, this.nowTime)
  148. let moduleId = this.menuItem.moduleId || 0;
  149. let chapterId = this.menuItem.chapterId || 0;
  150. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  151. let playNextId = `moduleId${moduleId}chapterId${chapterId}sectionId${sectionId}${this.isRebuild?'isRebuild':''}`;
  152. this.playId = playNextId;
  153. console.log('this.playId:', this.playId)
  154. uni.$off('playNext'+playNextId) //绑定前先移除之前的事件
  155. uni.$once('playNext'+playNextId, (data) => {
  156. //到时会触发每个节的监听事件,只允许当前节的接收
  157. let self = this
  158. if(this.nextMenuItem.recordingUrl&&this.isRebuild&&(this.newId==this.playSectionId) && data.fromRebuild){ // fromRebuild 来自重修目录的点击才弹出播放下一节
  159. //重修存在下一节
  160. uni.showModal({
  161. title: '提示',
  162. content: '是否播放下一节',
  163. success: function (res) {
  164. if (res.confirm) {
  165. console.log('用户点击确定');
  166. let nextId= self.nextMenuItem.sectionId>0?self.nextMenuItem.sectionId:self.nextMenuItem.menuId
  167. //设置播放的节ID
  168. self.$store.commit('setPlaySectionId', {playSectionId :nextId});
  169. self.$store.commit('setPlayVID', {playVID :self.nextMenuItem.recordingUrl});
  170. let ids = self.levelId.split('-');
  171. ids[2] = nextId
  172. uni.$emit('levelId', ids.join('-'))
  173. uni.$emit('getSection', self.nextMenuItem)
  174. self.$emit('playEnd',{isRebuild:self.isRebuild})
  175. // uni.$off('playend')
  176. // uni.$on('playend',res => {
  177. // console.log('playend2')
  178. // this.$emit('playEnd',{isRebuild:this.isRebuild})
  179. // })
  180. } else {
  181. let nextId= self.nextMenuItem.sectionId>0?self.nextMenuItem.sectionId:self.nextMenuItem.menuId
  182. //设置播放的节ID
  183. self.$store.commit('setPlaySectionId', {playSectionId :nextId});
  184. self.$store.commit('setPlayVID', {playVID :self.nextMenuItem.recordingUrl});
  185. let ids = self.levelId.split('-');
  186. ids[2] = nextId
  187. self.$emit('playEnd',{isRebuild:self.isRebuild})
  188. }
  189. }
  190. });
  191. } else {
  192. this.$emit('playEnd',{isRebuild:this.isRebuild})
  193. }
  194. });
  195. },
  196. methods: {
  197. isLast() {
  198. console.log(this.liveLast,'this.liveLast')
  199. if(this.liveLast) {
  200. let sectionASame = this.liveLast.sectionId == (this.menuItem.sectionId || this.menuItem.menuId)
  201. let chapterSame = this.liveLast.chapterId == (this.menuItem.chapterId || 0)
  202. let moduleSame = this.liveLast.moduleId == (this.menuItem.moduleId || 0);
  203. console.log(sectionASame && chapterSame && moduleSame,'sectionASame && chapterSame && moduleSame')
  204. return sectionASame && chapterSame && moduleSame
  205. } else {
  206. return false;
  207. }
  208. },
  209. studyRecordMenuAllList() {
  210. return new Promise(resolve => {
  211. this.$api.studyRecordMenuAllList({
  212. courseId:this.courseId,
  213. gradeId:this.gradeId,
  214. goodsId:this.goodsId
  215. }).then(res => {
  216. if(res.data.code == 200) {
  217. resolve(res.data.data)
  218. }
  219. })
  220. })
  221. },
  222. gradeCheckGoodsStudy() {
  223. let moduleId = this.menuItem.moduleId || 0;
  224. let chapterId = this.menuItem.chapterId || 0;
  225. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  226. return new Promise(resolve => {
  227. this.$api.gradeCheckGoodsStudy({
  228. goodsId:this.goodsId,
  229. gradeId:this.gradeId,
  230. moduleId:this.menuItem.moduleId || 0,
  231. chapterId:this.menuItem.chapterId || 0,
  232. sectionId:this.menuItem.sectionId || this.menuItem.menuId
  233. }).then( res => {
  234. resolve(res.data.data)
  235. })
  236. })
  237. },
  238. goodsTodayStudySectionNum() {
  239. return new Promise(resolve => {
  240. this.$api.goodsTodayStudySectionNum({goodsId:this.goodsId,gradeId:this.gradeId}).then(res => {
  241. if(res.data.code == 200) {
  242. resolve(res.data.data)
  243. }
  244. })
  245. })
  246. },
  247. async getVideo(){
  248. if(this.clickLock) {
  249. return;
  250. }
  251. this.clickLock = true;
  252. if(this.learningOrder == 2 && !this.menuItem.isRebuild && !this.isLive) { //要按从头到尾顺序学习, 且不是重修课程
  253. if(this.preItem) {
  254. let rows = await this.studyRecordMenuAllList();
  255. let newRows = [];
  256. for(let i = 0; i < rows.length; i++ ) {
  257. let moduleTrue = rows[i].moduleId == this.menuItem.moduleId || rows[i].moduleId == 0
  258. let chapterTrue = rows[i].chapterId == this.menuItem.chapterId || rows[i].chapterId == 0;
  259. let sectionTrue = (rows[i].sectionId == this.menuItem.sectionId) || (rows[i].sectionId == this.menuItem.menuId);
  260. if(moduleTrue && chapterTrue && sectionTrue) {
  261. break;
  262. } else {
  263. if(rows[i].sectionType != 2) {
  264. newRows.push(rows[i])
  265. }
  266. }
  267. }
  268. console.log(newRows)
  269. let isAllLearn = newRows.every(item => {
  270. return item.studyStatus == 1;
  271. })
  272. if(isAllLearn) {
  273. this.playVideo();
  274. } else {
  275. uni.showToast({
  276. icon:'none',
  277. title:'请按顺序学习视频课程'
  278. })
  279. }
  280. // if(this.preItem.menuType == 3) { //上一个是节
  281. // if(this.preItem.learning == 1) { //上一节学完
  282. // this.playVideo();
  283. // } else {
  284. // uni.showToast({
  285. // icon:'none',
  286. // title:'请按顺序学习视频课程'
  287. // })
  288. // }
  289. // } else if(this.preItem.menuType == 2) { //上一个是章
  290. // this.$api.reSectionList({chapterId: this.preItem.menuId || this.preItem.chapterId,gradeId:this.gradeId,courseId:this.courseId,moduleId:this.preItem.moduleId || 0}).then(res => {
  291. // if(res.data.code==200){
  292. // let lastItem = res.data.data[res.data.data.length -1];
  293. // if(lastItem.learning == 1) {
  294. // this.playVideo();
  295. // } else {
  296. // uni.showToast({
  297. // icon:'none',
  298. // title:'请按顺序学习视频课程'
  299. // })
  300. // }
  301. // }
  302. // });
  303. // } else if(this.preItem.menuType == 1) { //上一个是模块
  304. // this.$api.reChapterList({moduleId:this.preItem.menuId,gradeId:this.gradeId,courseId:this.courseId}).then(res => {
  305. // if(res.data.code==200){
  306. // let lastChapterItem = res.data.data[res.data.data.length -1];
  307. // this.$api.reSectionList({chapterId:lastChapterItem.chapterId,gradeId:this.gradeId,courseId:this.courseId,moduleId:this.menuItem.menuId || this.menuItem.moduleId}).then(res => {
  308. // if(res.data.code==200){
  309. // let lastSectionItem = res.data.data[res.data.data.length -1];
  310. // if(lastSectionItem.learning == 1) {
  311. // this.playVideo();
  312. // } else {
  313. // uni.showToast({
  314. // icon:'none',
  315. // title:'请按顺序学习视频课程'
  316. // })
  317. // }
  318. // }
  319. // });
  320. // }
  321. // });
  322. // }
  323. } else { //第一章第一节
  324. this.playVideo();
  325. }
  326. } else {
  327. this.playVideo();
  328. }
  329. setTimeout(() => {
  330. this.clickLock = false;
  331. },3000)
  332. },
  333. studyRecordGetChannelBasicInfo(channelId) {
  334. return new Promise((resolve) => {
  335. this.$api
  336. .studyRecordGetChannelBasicInfo({
  337. channelId,
  338. })
  339. .then((res) => {
  340. resolve(res.data.data);
  341. });
  342. });
  343. },
  344. async playVideo() {
  345. console.log('直播的课程:',this.menuItem,this.menuItem.recordingUrl)
  346. if(this.menuItem.sectionType==1 || this.menuItem.sectionType == 3){
  347. //1录播 3回放
  348. if(!this.isBuy){
  349. //非购买
  350. if(!this.menuItem.tryListen){
  351. //不允许试听
  352. this.clickLock = false;
  353. return
  354. } else {
  355. this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  356. this.$store.commit('setPlayVID', {playVID :this.menuItem.recordingUrl});
  357. this.menuItem.courseId = this.courseId;
  358. console.log('-----getSection-')
  359. uni.$emit('getSection', this.menuItem)
  360. return;
  361. }
  362. }
  363. let learnNum = await this.goodsTodayStudySectionNum()
  364. let hasLearn = await this.gradeCheckGoodsStudy();
  365. console.log(this.sectionMaxNum,'this.sectionMaxNum')
  366. console.log(learnNum,'learnNum')
  367. if(this.sectionMaxNum > 0) {
  368. if(learnNum >= this.sectionMaxNum && !hasLearn) {
  369. uni.showToast({
  370. icon:'none',
  371. title:`每天最多学习${this.sectionMaxNum}节`
  372. })
  373. this.clickLock = false;
  374. return;
  375. }
  376. }
  377. if(!this.menuItem.recordingUrl){
  378. uni.showToast({
  379. title: '暂无播放地址数据',
  380. icon: 'none'
  381. });
  382. this.clickLock = false;
  383. return;
  384. }
  385. /* if(this.playSectionId==this.newId){
  386. //切换为同一节
  387. return
  388. } */
  389. // 回放
  390. if (this.menuItem.sectionType == 3) {
  391. // return
  392. let moduleId = this.menuItem.moduleId || 0;
  393. let chapterId = this.menuItem.chapterId || 0;
  394. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  395. let uuid = new Date().valueOf() + ""
  396. // buyCourse 是否购买课程:1是 0否,type=vod是回放
  397. let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
  398. '&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
  399. '&sectionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'&sectionType=3'+'&vid='+this.menuItem.recordingUrl)
  400. uni.navigateTo({
  401. url:`../../pages/webview/index?url=`+encode
  402. })
  403. return
  404. }
  405. if(this.playSectionId>0){
  406. //切换视频
  407. let oldSectionId = this.playSectionId
  408. uni.$emit('changeSection', oldSectionId)
  409. }
  410. //设置播放的节ID
  411. this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  412. this.$store.commit('setPlayVID', {playVID :this.menuItem.recordingUrl});
  413. this.$store.commit('updatePlayNextId',this.playId)
  414. uni.$emit('levelId', this.levelId)
  415. uni.$emit('getSection', this.menuItem)
  416. uni.$emit('isRebuild',this.isRebuild)
  417. console.log(this.menuItem,'menuItem')
  418. // uni.$off('playend')
  419. // uni.$on('playend',res => {
  420. // console.log('playend2')
  421. // this.$emit('playEnd',{isRebuild:this.isRebuild})
  422. // })
  423. console.log(999)
  424. }
  425. if(this.menuItem.sectionType==2){
  426. //直播
  427. if(!this.isBuy){
  428. //非购买
  429. this.clickLock = false;
  430. return
  431. }
  432. let learnNum = await this.goodsTodayStudySectionNum()
  433. let hasLearn = await this.gradeCheckGoodsStudy();
  434. console.log(this.sectionMaxNum,'this.sectionMaxNum')
  435. console.log(learnNum,'learnNum')
  436. if(this.sectionMaxNum > 0 && !this.isLive) {
  437. if(learnNum >= this.sectionMaxNum && !hasLearn) {
  438. uni.showToast({
  439. icon:'none',
  440. title:`每天最多学习${this.sectionMaxNum}节`
  441. })
  442. this.clickLock = false;
  443. return;
  444. }
  445. }
  446. if(!this.menuItem.liveUrl){
  447. uni.showToast({
  448. title: '暂无直播地址数据',
  449. icon: 'error'
  450. });
  451. return;
  452. }
  453. let data = await this.studyRecordGetChannelBasicInfo(this.menuItem.liveUrl);
  454. let nowTime = +this.$method.timest();
  455. if (this.menuItem.liveStartTime > nowTime) {
  456. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  457. this.clickLock = false;
  458. uni.showToast({
  459. title: '直播未开始',
  460. icon: 'none'
  461. });
  462. return;
  463. }
  464. } else if (
  465. this.menuItem.liveStartTime < nowTime &&
  466. this.menuItem.liveEndTime > nowTime
  467. ) {
  468. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  469. this.clickLock = false;
  470. uni.showToast({
  471. title: '暂无直播',
  472. icon: 'none'
  473. });
  474. return;
  475. }
  476. } else if (this.menuItem.liveEndTime < nowTime) {
  477. if (!data) {
  478. uni.showToast({
  479. title: '直播已结束',
  480. icon: 'none'
  481. });
  482. return;
  483. }
  484. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  485. this.clickLock = false;
  486. uni.showToast({
  487. title: '直播已结束',
  488. icon: 'none'
  489. });
  490. return;
  491. }
  492. }
  493. // if (data.watchStatus == "end" || data.watchStatus == "playback") {
  494. // this.clickLock = false;
  495. // uni.showToast({
  496. // title: '直播已结束',
  497. // icon: 'none'
  498. // });
  499. // return;
  500. // }
  501. // if (data.watchStatus == "waiting") {
  502. // this.clickLock = false;
  503. // uni.showToast({
  504. // title: '直播未开始',
  505. // icon: 'none'
  506. // });
  507. // return;
  508. // }
  509. // if(this.playSectionId==this.newId){
  510. // //切换为同一频道
  511. // this.clickLock = false;
  512. // return
  513. // }
  514. let moduleId = this.menuItem.moduleId || 0;
  515. let chapterId = this.menuItem.chapterId || 0;
  516. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  517. let uuid = new Date().valueOf() + ""
  518. // buyCourse 是否购买课程:1是 0否
  519. let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
  520. '&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
  521. '&sectionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'&sectionType=2')
  522. uni.navigateTo({
  523. url:`../../pages/webview/index?url=`+encode
  524. })
  525. return;
  526. //设置播放的节ID
  527. // this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  528. // this.$store.commit('setPlayChannelId', {playChannelId :this.menuItem.liveUrl});
  529. // this.$store.commit('updatePlayNextId',this.playId)
  530. // uni.$emit('levelId', this.levelId)
  531. // uni.$emit('getChannel', this.menuItem)
  532. // uni.$emit('isRebuild',this.isRebuild)
  533. // console.log(this.menuItem,'menuItem')
  534. // uni.$off('playend')
  535. // uni.$on('playend',res => {
  536. // console.log('playend1')
  537. // this.$emit('playEnd',{isRebuild:this.isRebuild})
  538. // })
  539. }
  540. }
  541. },
  542. computed: { ...mapGetters(['playSectionId','playChannelId','playVID','playNextId','userInfo','liveLast']) }
  543. };
  544. </script>
  545. <style scoped lang="scss">
  546. .tagGreen{
  547. width: 80rpx;
  548. height: 28rpx;
  549. background: #34C759;
  550. border-radius: 8rpx;
  551. font-size: 20rpx;
  552. color: #FFFFFF;
  553. text-align: center;
  554. }
  555. .tagWillPlay{
  556. width: 80rpx;
  557. height: 28rpx;
  558. background: #EBF4FF;
  559. border-radius: 8rpx;
  560. font-size: 20rpx;
  561. color: #007AFF;
  562. text-align: center;
  563. }
  564. .tagPlaying{
  565. width: 80rpx;
  566. height: 28rpx;
  567. background: #FFF7EB;
  568. border-radius: 8rpx;
  569. font-size: 20rpx;
  570. color: #FF9500;
  571. text-align: center;
  572. }
  573. .tagPlayed{
  574. width: 80rpx;
  575. height: 28rpx;
  576. background: #EEEEEE;
  577. border-radius: 8rpx;
  578. font-size: 20rpx;
  579. color: #666666;
  580. text-align: center;
  581. }
  582. .tagRe{
  583. width: 80rpx;
  584. height: 28rpx;
  585. background: #FF3B30;
  586. border-radius: 8rpx;
  587. font-size: 20rpx;
  588. color: #FFFFFF;
  589. text-align: center;
  590. }
  591. .tryBox{
  592. width: 103rpx;
  593. height: 48rpx;
  594. background: #fff;
  595. border-radius: 24rpx;
  596. color: #3577E8;
  597. font-size: 24rpx;
  598. line-height: 48rpx;
  599. text-align: center;
  600. border: 1rpx solid #3577E8;
  601. }
  602. .icon_up{
  603. width: 24rpx;
  604. height: 24rpx;
  605. }
  606. .t_content3{
  607. color: #007AFF;
  608. }
  609. .t_content2{
  610. color: #007AFF;
  611. }
  612. .t_content1{
  613. color: #007AFF;
  614. }
  615. .t_content{
  616. font-size: 30rpx;
  617. margin-left: 10rpx;
  618. color: #666666;
  619. flex:1;
  620. }
  621. .tagColor3{
  622. border: 2rpx solid #FF9500;
  623. color: #FF9500;
  624. }
  625. .tagColor2{
  626. border: 2rpx solid #FF3B30;
  627. color: #FF3B30;
  628. }
  629. .tagColor1{
  630. border: 2rpx solid #007AFF;
  631. color: #007AFF;
  632. }
  633. .color3{
  634. color: #FF9500;
  635. }
  636. .color2{
  637. color: #FF3B30;
  638. }
  639. .color1{
  640. color: #007AFF;
  641. }
  642. .tag{
  643. border-radius: 8rpx;
  644. font-size: 20rpx;
  645. padding: 5rpx;
  646. }
  647. </style>