courseSection.vue 19 KB

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