courseSection.vue 18 KB

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