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. if (this.$method.isGoLogin()) {
  311. return;
  312. }
  313. this.clickLock = true;
  314. if(this.learningOrder == 2 && !this.menuItem.isRebuild && !this.isLive) { //要按从头到尾顺序学习, 且不是重修课程
  315. if(this.preItem) {
  316. // let rows = await this.studyRecordMenuAllList();
  317. let rows = this.menuAllList
  318. let newRows = [];
  319. for(let i = 0; i < rows.length; i++ ) {
  320. let moduleTrue = rows[i].moduleId == this.menuItem.moduleId || rows[i].moduleId == 0
  321. let chapterTrue = rows[i].chapterId == this.menuItem.chapterId || rows[i].chapterId == 0;
  322. let sectionTrue = (rows[i].sectionId == this.menuItem.sectionId) || (rows[i].sectionId == this.menuItem.menuId);
  323. if(moduleTrue && chapterTrue && sectionTrue) {
  324. break;
  325. } else {
  326. if(rows[i].sectionType != 2) {
  327. newRows.push(rows[i])
  328. }
  329. }
  330. }
  331. let isAllLearn = newRows.every(item => {
  332. return item.studyStatus == 1;
  333. })
  334. if(isAllLearn) {
  335. this.playVideo();
  336. } else {
  337. uni.showToast({
  338. icon:'none',
  339. title:'请按顺序学习视频课程'
  340. })
  341. }
  342. } else { //第一章第一节
  343. this.playVideo();
  344. }
  345. } else {
  346. this.playVideo();
  347. }
  348. setTimeout(() => {
  349. this.clickLock = false;
  350. },3000)
  351. },
  352. studyRecordGetChannelBasicInfo(channelId) {
  353. return new Promise((resolve) => {
  354. this.$api
  355. .studyRecordGetChannelBasicInfo({
  356. channelId,
  357. })
  358. .then((res) => {
  359. resolve(res.data.data);
  360. });
  361. });
  362. },
  363. async playVideo() {
  364. if(this.menuItem.sectionType==1 || this.menuItem.sectionType == 3){
  365. //1视频 3回放
  366. if(!this.isBuy){
  367. //非购买
  368. if(!this.menuItem.tryListen){
  369. //不允许试听
  370. this.clickLock = false;
  371. return
  372. } else {
  373. this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  374. this.$store.commit('setPlayVID', {playVID :this.menuItem.recordingUrl});
  375. this.menuItem.courseId = this.courseId;
  376. uni.$emit('getSection', this.menuItem)
  377. return;
  378. }
  379. }
  380. let learnNum = await this.goodsTodayStudySectionNum()
  381. let hasLearn = await this.gradeCheckGoodsStudy();
  382. if(this.sectionMaxNum > 0) {
  383. if(learnNum >= this.sectionMaxNum && !hasLearn) {
  384. uni.showToast({
  385. icon:'none',
  386. title:`每天最多学习${this.sectionMaxNum}节`
  387. })
  388. this.clickLock = false;
  389. return;
  390. }
  391. }
  392. if(!this.menuItem.recordingUrl){
  393. uni.showToast({
  394. title: '暂无播放地址数据',
  395. icon: 'none'
  396. });
  397. this.clickLock = false;
  398. return;
  399. }
  400. /* if(this.playSectionId==this.newId){
  401. //切换为同一节
  402. return
  403. } */
  404. // 回放
  405. if (this.menuItem.sectionType == 3) {
  406. let moduleId = this.menuItem.moduleId || 0;
  407. let chapterId = this.menuItem.chapterId || 0;
  408. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  409. let uuid = new Date().valueOf() + ""
  410. // buyCourse 是否购买课程:1是 0否,type=vod是回放
  411. let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
  412. '&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
  413. '&sectionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'&sectionType=3'+'&vid='+this.menuItem.recordingUrl)
  414. uni.navigateTo({
  415. url:`../../pages/webview/index?url=`+encode
  416. })
  417. return
  418. }
  419. if(this.playSectionId>0){
  420. //切换视频
  421. let oldSectionId = this.playSectionId
  422. uni.$emit('changeSection', oldSectionId)
  423. }
  424. // console.log('===设置播放的节IDthis.menuItem,', this.menuItem, this.playId);
  425. //设置播放的节ID
  426. this.$store.commit('setPlaySectionId', {playSectionId :this.newId});
  427. this.$store.commit('setPlayVID', {playVID :this.menuItem.recordingUrl});
  428. this.$store.commit('updatePlayNextId',this.playId)
  429. uni.$emit('levelId', this.levelId)
  430. uni.$emit('getSection', this.menuItem)
  431. uni.$emit('isRebuild',this.isRebuild)
  432. }
  433. if(this.menuItem.sectionType==2){
  434. //直播
  435. if(!this.isBuy){
  436. //非购买
  437. this.clickLock = false;
  438. return
  439. }
  440. let learnNum = await this.goodsTodayStudySectionNum()
  441. let hasLearn = await this.gradeCheckGoodsStudy();
  442. if(this.sectionMaxNum > 0 && !this.isLive) {
  443. if(learnNum >= this.sectionMaxNum && !hasLearn) {
  444. uni.showToast({
  445. icon:'none',
  446. title:`每天最多学习${this.sectionMaxNum}节`
  447. })
  448. this.clickLock = false;
  449. return;
  450. }
  451. }
  452. if(!this.menuItem.liveUrl){
  453. uni.showToast({
  454. title: '暂无直播地址数据',
  455. icon: 'error'
  456. });
  457. return;
  458. }
  459. let data = await this.studyRecordGetChannelBasicInfo(this.menuItem.liveUrl);
  460. let nowTime = +this.$method.timest();
  461. if (this.menuItem.liveStartTime > nowTime) {
  462. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  463. this.clickLock = false;
  464. uni.showToast({
  465. title: '直播未开始',
  466. icon: 'none'
  467. });
  468. return;
  469. }
  470. } else if (
  471. this.menuItem.liveStartTime < nowTime &&
  472. this.menuItem.liveEndTime > nowTime
  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. } else if (this.menuItem.liveEndTime < nowTime) {
  483. if (!data) {
  484. uni.showToast({
  485. title: '直播已结束',
  486. icon: 'none'
  487. });
  488. return;
  489. }
  490. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  491. this.clickLock = false;
  492. uni.showToast({
  493. title: '直播已结束',
  494. icon: 'none'
  495. });
  496. return;
  497. }
  498. }
  499. let moduleId = this.menuItem.moduleId || 0;
  500. let chapterId = this.menuItem.chapterId || 0;
  501. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  502. let uuid = new Date().valueOf() + ""
  503. // buyCourse 是否购买课程:1是 0否
  504. let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
  505. '&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
  506. '&sectionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'&sectionType=2')
  507. uni.navigateTo({
  508. url:`../../pages/webview/index?url=`+encode
  509. })
  510. return;
  511. }
  512. }
  513. },
  514. computed: { ...mapGetters(['playSectionId','playChannelId','playVID','playNextId','userInfo','liveLast']) }
  515. };
  516. </script>
  517. <style scoped lang="scss">
  518. .tagGreen{
  519. width: 80rpx;
  520. height: 28rpx;
  521. background: #34C759;
  522. border-radius: 8rpx;
  523. font-size: 20rpx;
  524. color: #FFFFFF;
  525. text-align: center;
  526. }
  527. .tagWillPlay{
  528. width: 80rpx;
  529. height: 28rpx;
  530. background: #EBF4FF;
  531. border-radius: 8rpx;
  532. font-size: 20rpx;
  533. color: #007AFF;
  534. text-align: center;
  535. }
  536. .tagPlaying{
  537. width: 80rpx;
  538. height: 28rpx;
  539. background: #FFF7EB;
  540. border-radius: 8rpx;
  541. font-size: 20rpx;
  542. color: #FF9500;
  543. text-align: center;
  544. }
  545. .tagPlayed{
  546. width: 80rpx;
  547. height: 28rpx;
  548. background: #EEEEEE;
  549. border-radius: 8rpx;
  550. font-size: 20rpx;
  551. color: #666666;
  552. text-align: center;
  553. }
  554. .tagRe{
  555. width: 80rpx;
  556. height: 28rpx;
  557. background: #FF3B30;
  558. border-radius: 8rpx;
  559. font-size: 20rpx;
  560. color: #FFFFFF;
  561. text-align: center;
  562. }
  563. .tryBox{
  564. width: 103rpx;
  565. height: 48rpx;
  566. background: #fff;
  567. border-radius: 24rpx;
  568. color: #3577E8;
  569. font-size: 24rpx;
  570. line-height: 48rpx;
  571. text-align: center;
  572. border: 1rpx solid #3577E8;
  573. }
  574. .icon_up{
  575. width: 24rpx;
  576. height: 24rpx;
  577. }
  578. .t_content3{
  579. color: #007AFF;
  580. }
  581. .t_content2{
  582. color: #007AFF;
  583. }
  584. .t_content1{
  585. color: #007AFF;
  586. }
  587. .t_content{
  588. font-size: 30rpx;
  589. margin-left: 10rpx;
  590. color: #666666;
  591. flex:1;
  592. }
  593. .tagColor3{
  594. border: 2rpx solid #FF9500;
  595. color: #FF9500;
  596. }
  597. .tagColor2{
  598. border: 2rpx solid #FF3B30;
  599. color: #FF3B30;
  600. }
  601. .tagColor1{
  602. border: 2rpx solid #007AFF;
  603. color: #007AFF;
  604. }
  605. .color3{
  606. color: #FF9500;
  607. }
  608. .color2{
  609. color: #FF3B30;
  610. }
  611. .color1{
  612. color: #007AFF;
  613. }
  614. .tag{
  615. border-radius: 8rpx;
  616. font-size: 20rpx;
  617. padding: 4rpx 10rpx;
  618. }
  619. .exercises {
  620. margin-left: 10rpx;
  621. font-size: 26rpx;
  622. color: #498AFE;
  623. >text {
  624. margin-right: 6rpx;
  625. }
  626. }
  627. .learnings {
  628. margin-right: 8rpx;
  629. .learning_icon {
  630. width: 40rpx;
  631. height: 40rpx;
  632. margin-right: 4rpx;
  633. }
  634. }
  635. </style>