courseSection.vue 20 KB

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