courseSection.vue 19 KB

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