courseSection.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  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')
  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.liveStartTime, 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. uni.$off('playNext'+playNextId) //绑定前先移除之前的事件
  154. uni.$once('playNext'+playNextId, (data) => {
  155. //到时会触发每个节的监听事件,只允许当前节的接收
  156. let self = this
  157. if(this.nextMenuItem.recordingUrl&&this.isRebuild&&(this.newId==this.playSectionId) && data.fromRebuild){ // fromRebuild 来自重修目录的点击才弹出播放下一节
  158. //重修存在下一节
  159. uni.showModal({
  160. title: '提示',
  161. content: '是否播放下一节',
  162. success: function (res) {
  163. if (res.confirm) {
  164. console.log('用户点击确定');
  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. console.log(newRows)
  268. let isAllLearn = newRows.every(item => {
  269. return item.studyStatus == 1;
  270. })
  271. if(isAllLearn) {
  272. this.playVideo();
  273. } else {
  274. uni.showToast({
  275. icon:'none',
  276. title:'请按顺序学习视频课程'
  277. })
  278. }
  279. // if(this.preItem.menuType == 3) { //上一个是节
  280. // if(this.preItem.learning == 1) { //上一节学完
  281. // this.playVideo();
  282. // } else {
  283. // uni.showToast({
  284. // icon:'none',
  285. // title:'请按顺序学习视频课程'
  286. // })
  287. // }
  288. // } else if(this.preItem.menuType == 2) { //上一个是章
  289. // this.$api.reSectionList({chapterId: this.preItem.menuId || this.preItem.chapterId,gradeId:this.gradeId,courseId:this.courseId,moduleId:this.preItem.moduleId || 0}).then(res => {
  290. // if(res.data.code==200){
  291. // let lastItem = res.data.data[res.data.data.length -1];
  292. // if(lastItem.learning == 1) {
  293. // this.playVideo();
  294. // } else {
  295. // uni.showToast({
  296. // icon:'none',
  297. // title:'请按顺序学习视频课程'
  298. // })
  299. // }
  300. // }
  301. // });
  302. // } else if(this.preItem.menuType == 1) { //上一个是模块
  303. // this.$api.reChapterList({moduleId:this.preItem.menuId,gradeId:this.gradeId,courseId:this.courseId}).then(res => {
  304. // if(res.data.code==200){
  305. // let lastChapterItem = res.data.data[res.data.data.length -1];
  306. // this.$api.reSectionList({chapterId:lastChapterItem.chapterId,gradeId:this.gradeId,courseId:this.courseId,moduleId:this.menuItem.menuId || this.menuItem.moduleId}).then(res => {
  307. // if(res.data.code==200){
  308. // let lastSectionItem = res.data.data[res.data.data.length -1];
  309. // if(lastSectionItem.learning == 1) {
  310. // this.playVideo();
  311. // } else {
  312. // uni.showToast({
  313. // icon:'none',
  314. // title:'请按顺序学习视频课程'
  315. // })
  316. // }
  317. // }
  318. // });
  319. // }
  320. // });
  321. // }
  322. } else { //第一章第一节
  323. this.playVideo();
  324. }
  325. } else {
  326. this.playVideo();
  327. }
  328. setTimeout(() => {
  329. this.clickLock = false;
  330. },3000)
  331. },
  332. studyRecordGetChannelBasicInfo(channelId) {
  333. return new Promise((resolve) => {
  334. this.$api
  335. .studyRecordGetChannelBasicInfo({
  336. channelId,
  337. })
  338. .then((res) => {
  339. resolve(res.data.data);
  340. });
  341. });
  342. },
  343. async playVideo() {
  344. if(this.menuItem.sectionType==1||this.menuItem.sectionType==3){
  345. //录播
  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. if(this.playSectionId>0){
  387. //切换视频
  388. let oldSectionId = this.playSectionId
  389. uni.$emit('changeSection', oldSectionId)
  390. }
  391. //设置播放的节ID
  392. this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  393. this.$store.commit('setPlayVID', {playVID :this.menuItem.recordingUrl});
  394. this.$store.commit('updatePlayNextId',this.playId)
  395. uni.$emit('levelId', this.levelId)
  396. uni.$emit('getSection', this.menuItem)
  397. uni.$emit('isRebuild',this.isRebuild)
  398. console.log(this.menuItem,'menuItem')
  399. // uni.$off('playend')
  400. // uni.$on('playend',res => {
  401. // console.log('playend2')
  402. // this.$emit('playEnd',{isRebuild:this.isRebuild})
  403. // })
  404. console.log(999)
  405. }
  406. if(this.menuItem.sectionType==2){
  407. //直播
  408. if(!this.isBuy){
  409. //非购买
  410. this.clickLock = false;
  411. return
  412. }
  413. let learnNum = await this.goodsTodayStudySectionNum()
  414. let hasLearn = await this.gradeCheckGoodsStudy();
  415. console.log(this.sectionMaxNum,'this.sectionMaxNum')
  416. console.log(learnNum,'learnNum')
  417. if(this.sectionMaxNum > 0 && !this.isLive) {
  418. if(learnNum >= this.sectionMaxNum && !hasLearn) {
  419. uni.showToast({
  420. icon:'none',
  421. title:`每天最多学习${this.sectionMaxNum}节`
  422. })
  423. this.clickLock = false;
  424. return;
  425. }
  426. }
  427. if(!this.menuItem.liveUrl){
  428. uni.showToast({
  429. title: '暂无直播地址数据',
  430. icon: 'error'
  431. });
  432. return;
  433. }
  434. let data = await this.studyRecordGetChannelBasicInfo(this.menuItem.liveUrl);
  435. let nowTime = +this.$method.timest();
  436. if (this.menuItem.liveStartTime > nowTime) {
  437. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  438. this.clickLock = false;
  439. uni.showToast({
  440. title: '直播未开始',
  441. icon: 'none'
  442. });
  443. return;
  444. }
  445. } else if (
  446. this.menuItem.liveStartTime < nowTime &&
  447. this.menuItem.liveEndTime > nowTime
  448. ) {
  449. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  450. this.clickLock = false;
  451. uni.showToast({
  452. title: '暂无直播',
  453. icon: 'none'
  454. });
  455. return;
  456. }
  457. } else if (this.menuItem.liveEndTime < nowTime) {
  458. if (!data) {
  459. uni.showToast({
  460. title: '直播已结束',
  461. icon: 'none'
  462. });
  463. return;
  464. }
  465. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  466. this.clickLock = false;
  467. uni.showToast({
  468. title: '直播已结束',
  469. icon: 'none'
  470. });
  471. return;
  472. }
  473. }
  474. // if (data.watchStatus == "end" || data.watchStatus == "playback") {
  475. // this.clickLock = false;
  476. // uni.showToast({
  477. // title: '直播已结束',
  478. // icon: 'none'
  479. // });
  480. // return;
  481. // }
  482. // if (data.watchStatus == "waiting") {
  483. // this.clickLock = false;
  484. // uni.showToast({
  485. // title: '直播未开始',
  486. // icon: 'none'
  487. // });
  488. // return;
  489. // }
  490. // if(this.playSectionId==this.newId){
  491. // //切换为同一频道
  492. // this.clickLock = false;
  493. // return
  494. // }
  495. let moduleId = this.menuItem.moduleId || 0;
  496. let chapterId = this.menuItem.chapterId || 0;
  497. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  498. let uuid = new Date().valueOf() + ""
  499. // buyCourse 是否购买课程:1是 0否
  500. let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
  501. '&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
  502. '&sectionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid)
  503. uni.navigateTo({
  504. url:`../../pages/webview/index?url=`+encode
  505. })
  506. return;
  507. //设置播放的节ID
  508. // this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  509. // this.$store.commit('setPlayChannelId', {playChannelId :this.menuItem.liveUrl});
  510. // this.$store.commit('updatePlayNextId',this.playId)
  511. // uni.$emit('levelId', this.levelId)
  512. // uni.$emit('getChannel', this.menuItem)
  513. // uni.$emit('isRebuild',this.isRebuild)
  514. // console.log(this.menuItem,'menuItem')
  515. // uni.$off('playend')
  516. // uni.$on('playend',res => {
  517. // console.log('playend1')
  518. // this.$emit('playEnd',{isRebuild:this.isRebuild})
  519. // })
  520. }
  521. }
  522. },
  523. computed: { ...mapGetters(['playSectionId','playChannelId','playVID','playNextId','userInfo','liveLast']) }
  524. };
  525. </script>
  526. <style scoped lang="scss">
  527. .tagGreen{
  528. width: 80rpx;
  529. height: 28rpx;
  530. background: #34C759;
  531. border-radius: 8rpx;
  532. font-size: 20rpx;
  533. color: #FFFFFF;
  534. text-align: center;
  535. }
  536. .tagWillPlay{
  537. width: 80rpx;
  538. height: 28rpx;
  539. background: #EBF4FF;
  540. border-radius: 8rpx;
  541. font-size: 20rpx;
  542. color: #007AFF;
  543. text-align: center;
  544. }
  545. .tagPlaying{
  546. width: 80rpx;
  547. height: 28rpx;
  548. background: #FFF7EB;
  549. border-radius: 8rpx;
  550. font-size: 20rpx;
  551. color: #FF9500;
  552. text-align: center;
  553. }
  554. .tagPlayed{
  555. width: 80rpx;
  556. height: 28rpx;
  557. background: #EEEEEE;
  558. border-radius: 8rpx;
  559. font-size: 20rpx;
  560. color: #666666;
  561. text-align: center;
  562. }
  563. .tagRe{
  564. width: 80rpx;
  565. height: 28rpx;
  566. background: #FF3B30;
  567. border-radius: 8rpx;
  568. font-size: 20rpx;
  569. color: #FFFFFF;
  570. text-align: center;
  571. }
  572. .tryBox{
  573. width: 103rpx;
  574. height: 48rpx;
  575. background: #fff;
  576. border-radius: 24rpx;
  577. color: #3577E8;
  578. font-size: 24rpx;
  579. line-height: 48rpx;
  580. text-align: center;
  581. border: 1rpx solid #3577E8;
  582. }
  583. .icon_up{
  584. width: 24rpx;
  585. height: 24rpx;
  586. }
  587. .t_content3{
  588. color: #007AFF;
  589. }
  590. .t_content2{
  591. color: #007AFF;
  592. }
  593. .t_content1{
  594. color: #007AFF;
  595. }
  596. .t_content{
  597. font-size: 30rpx;
  598. margin-left: 10rpx;
  599. color: #666666;
  600. flex:1;
  601. }
  602. .tagColor3{
  603. border: 2rpx solid #FF9500;
  604. color: #FF9500;
  605. }
  606. .tagColor2{
  607. border: 2rpx solid #FF3B30;
  608. color: #FF3B30;
  609. }
  610. .tagColor1{
  611. border: 2rpx solid #007AFF;
  612. color: #007AFF;
  613. }
  614. .color3{
  615. color: #FF9500;
  616. }
  617. .color2{
  618. color: #FF3B30;
  619. }
  620. .color1{
  621. color: #007AFF;
  622. }
  623. .tag{
  624. border-radius: 8rpx;
  625. font-size: 20rpx;
  626. padding: 5rpx;
  627. }
  628. </style>