courseSection.vue 19 KB

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