courseSection.vue 20 KB

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