courseSection.vue 19 KB

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