courseSection.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. <template>
  2. <view
  3. style="display: flex; justify-content: space-between; align-items: center"
  4. @click="getVideo"
  5. >
  6. <view
  7. style="
  8. display: flex;
  9. justify-content: space-between;
  10. align-items: center;
  11. margin: 20rpx 0;
  12. width: 100%;
  13. "
  14. >
  15. <view style="display: flex; align-items: center; flex: 1">
  16. <view class="tag tagColor1" v-if="menuItem.sectionType == 1">视频</view>
  17. <view class="tag tagColor2" v-if="menuItem.sectionType == 2">直播</view>
  18. <view class="tag tagColor3" v-if="menuItem.sectionType == 3">回放</view>
  19. <view class="t_content">
  20. <view
  21. v-if="menuItem.sectionType == 1"
  22. :class="{ color1: isActive }"
  23. >{{ menuItem.name || "" }}</view
  24. >
  25. <view
  26. v-if="menuItem.sectionType == 2"
  27. :class="{ color2: isActive }"
  28. >{{ menuItem.name || "" }}</view
  29. >
  30. <view
  31. v-if="menuItem.sectionType == 3"
  32. :class="{ color3: isActive }"
  33. >{{ menuItem.name || "" }}</view
  34. >
  35. <view
  36. style="font-size: 20rpx; color: #ff3b30"
  37. v-if="menuItem.sectionType == 2 && menuItem.liveStartTime"
  38. >
  39. <view v-if="menuItem.liveStartTime > nowTime || !isBuy">
  40. <text>{{
  41. $method.timestampToTime(menuItem.liveStartTime, (isDay = false))
  42. }}</text
  43. >-
  44. <text>{{
  45. $method.timestampToTime(menuItem.liveEndTime, (isDay = false))
  46. }}</text>
  47. </view>
  48. <template v-if="isLast()">
  49. <view v-if="liveLast.watchStatus == 'live'">
  50. <text>直播中</text>
  51. </view>
  52. <view v-if="liveLast.watchStatus == 'end'">
  53. <text>当前直播回放视频请稍后再查看</text>
  54. </view>
  55. </template>
  56. </view>
  57. <view
  58. style="font-size: 20rpx; color: #ff3b30"
  59. v-if="menuItem.sectionType == 3"
  60. >
  61. <view v-if="!menuItem.recordingUrl">
  62. <text>当前直播回放视频请稍后再查看</text>
  63. </view>
  64. <view v-else> 回放中 </view>
  65. </view>
  66. </view>
  67. <view v-if="menuItem.sectionType == null">{{
  68. menuItem.name || ""
  69. }}</view>
  70. <!-- 学习中 -->
  71. <view v-if="isActive" class="learnings">
  72. <image
  73. src="/pages3/static/imgs/learning_icon.gif"
  74. class="learning_icon"
  75. ></image>
  76. </view>
  77. </view>
  78. <view
  79. style="font-size: 20rpx; color: #ff3b30"
  80. v-if="menuItem.liveStartTime && menuItem.sectionType != 3 && isBuy"
  81. >
  82. <template v-if="!isLast() && !isLive">
  83. <view class="tagWillPlay" v-if="menuItem.liveStartTime > nowTime">
  84. <text>待开播</text>
  85. </view>
  86. <view
  87. class="tagPlaying"
  88. v-if="
  89. menuItem.liveStartTime <= nowTime &&
  90. menuItem.liveEndTime > nowTime
  91. "
  92. >
  93. <text>直播中</text>
  94. </view>
  95. <view class="tagPlayed" v-if="menuItem.liveEndTime < nowTime">
  96. <text>已结束</text>
  97. </view>
  98. </template>
  99. </view>
  100. <!-- 直播课程没有学习状态 -->
  101. <template v-if="!isLive">
  102. <view v-if="isRebuild || menuItem.rebuild > 0" class="tagRe"
  103. >待重修</view
  104. >
  105. <view v-else>
  106. <view v-if="menuItem.learning == 1" class="tagGreen">已学完</view>
  107. </view>
  108. </template>
  109. <view
  110. v-if="checkTest()"
  111. class="exercises"
  112. @click.stop="toDoSectionExam()"
  113. >
  114. <text class="exe_w">习题</text>
  115. <u-icon name="arrow-right" color="#498AFE" size="28"></u-icon>
  116. </view>
  117. </view>
  118. <view v-if="isTryListen" class="tryBox"> 试看 </view>
  119. </view>
  120. </template>
  121. <script>
  122. import { mapGetters } from "vuex";
  123. export default {
  124. name: "courseSection",
  125. inject: ["paramsFn"],
  126. props: {
  127. isLive: false, //是否是直播课
  128. preItem: {
  129. default: undefined,
  130. },
  131. menuItem: {
  132. type: Object,
  133. default: {},
  134. },
  135. isBuy: {
  136. type: Boolean,
  137. default: false,
  138. },
  139. levelId: {
  140. type: String,
  141. default: "",
  142. },
  143. isRebuild: {
  144. type: Boolean,
  145. default: false,
  146. },
  147. nextMenuItem: {
  148. type: Object,
  149. default: () => {
  150. return {};
  151. },
  152. },
  153. sectionMaxNum: {
  154. default: undefined,
  155. },
  156. // 章->所有节试卷列表
  157. ChapterSectionExam: {
  158. type: Array,
  159. default: () => [],
  160. },
  161. // 区分是模块试卷还是章试卷,3是模块试卷
  162. testType: {
  163. type: Number,
  164. default: 0,
  165. },
  166. },
  167. watch: {
  168. menuItem(val) {
  169. console.log(val, "val");
  170. },
  171. },
  172. data() {
  173. return {
  174. nowTime: 0,
  175. playId: "",
  176. clickLock: false, //点击锁,防止连续点击多次
  177. moduleSectionExam: [], // 模块下的所有节试卷列表
  178. chapterExams: {},
  179. moduleExams: {},
  180. // newMenuAllList: [],
  181. };
  182. },
  183. onLoad() {},
  184. created() {
  185. if (this.testType == 3) {
  186. // 模块下的所有节试卷列表
  187. this.$api
  188. .reSectionExamList({
  189. chapterId: 0,
  190. courseId: this.courseId,
  191. gradeId: this.gradeId,
  192. orderGoodsId: this.orderGoodsId,
  193. })
  194. .then((res) => {
  195. if (res.data.code == 200) {
  196. this.moduleSectionExam = res.data.data || [];
  197. }
  198. });
  199. }
  200. },
  201. mounted() {
  202. this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
  203. this.isBuy &&
  204. uni.$on("playEnd", () => {
  205. if (this.isActive) {
  206. this.$emit("playEnd");
  207. }
  208. });
  209. },
  210. methods: {
  211. isLast() {
  212. if (this.liveLast) {
  213. let sectionASame =
  214. this.liveLast.sectionId ==
  215. (this.menuItem.sectionId || this.menuItem.menuId);
  216. let chapterSame =
  217. this.liveLast.chapterId == (this.menuItem.chapterId || 0);
  218. let moduleSame =
  219. this.liveLast.moduleId == (this.menuItem.moduleId || 0);
  220. return sectionASame && chapterSame && moduleSame;
  221. } else {
  222. return false;
  223. }
  224. },
  225. toDoSectionExam() {
  226. if (this.testType == 3) {
  227. this.ModuleExam();
  228. } else {
  229. this.ChapterExam();
  230. }
  231. },
  232. checkTest() {
  233. let data =
  234. this.testType == 3 ? this.moduleSectionExam : this.ChapterSectionExam;
  235. let id =
  236. this.testType == 3 ? this.menuItem.menuId : this.menuItem.sectionId;
  237. if (!data) {
  238. return false;
  239. }
  240. return data.some((e) => e.sectionId == id);
  241. },
  242. ChapterExam() {
  243. this.chapterExams = this.ChapterSectionExam.find(
  244. (e) => e.sectionId == this.menuItem.sectionId
  245. );
  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:
  251. "/pages2/class/questionBank?courseId=" +
  252. this.courseId +
  253. "&gradeId=" +
  254. this.gradeId +
  255. "&isFromVideo=1&id=" +
  256. this.chapterExams.typeId +
  257. "&goodsid=" +
  258. this.goodsId +
  259. "&moduleId=" +
  260. moduleId +
  261. "&chapterId=" +
  262. chapterId +
  263. "&sectionId=" +
  264. sectionId +
  265. "&orderGoodsId=" +
  266. this.orderGoodsId +
  267. "&type=2",
  268. });
  269. },
  270. ModuleExam() {
  271. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  272. this.moduleExams = this.moduleSectionExam.find(
  273. (e) => e.sectionId == sectionId
  274. );
  275. let moduleId = this.moduleExams.moduleId || 0;
  276. let chapterId = this.moduleExams.chapterId || 0;
  277. uni.navigateTo({
  278. url:
  279. "/pages2/class/questionBank?courseId=" +
  280. this.courseId +
  281. "&gradeId=" +
  282. this.gradeId +
  283. "&isFromVideo=1&id=" +
  284. this.moduleExams.typeId +
  285. "&goodsid=" +
  286. this.goodsId +
  287. "&moduleId=" +
  288. moduleId +
  289. "&chapterId=" +
  290. chapterId +
  291. "&sectionId=" +
  292. sectionId +
  293. "&orderGoodsId=" +
  294. this.orderGoodsId +
  295. "&type=2",
  296. });
  297. },
  298. gradeCheckGoodsStudy() {
  299. return new Promise((resolve) => {
  300. this.$api
  301. .gradeCheckGoodsStudy({
  302. goodsId: this.goodsId,
  303. gradeId: this.gradeId,
  304. moduleId: this.menuItem.moduleId || 0,
  305. chapterId: this.menuItem.chapterId || 0,
  306. sectionId: this.menuItem.sectionId || this.menuItem.menuId,
  307. orderGoodsId: this.orderGoodsId,
  308. })
  309. .then((res) => {
  310. resolve(res.data.data);
  311. });
  312. });
  313. },
  314. goodsTodayStudySectionNum() {
  315. return new Promise((resolve) => {
  316. this.$api
  317. .goodsTodayStudySectionNum({
  318. goodsId: this.goodsId,
  319. gradeId: this.gradeId,
  320. orderGoodsId: this.orderGoodsId,
  321. })
  322. .then((res) => {
  323. if (res.data.code == 200) {
  324. resolve(res.data.data);
  325. }
  326. });
  327. });
  328. },
  329. getVideo() {
  330. if (this.clickLock) {
  331. return;
  332. }
  333. if (this.$method.isGoLogin()) {
  334. return;
  335. }
  336. if (this.menuItem.id == this.sectionId) {
  337. return;
  338. }
  339. this.clickLock = true;
  340. // && !this.menuItem.isRebuild
  341. if (this.params.orderNum == 2 && !this.isLive) {
  342. //要按从头到尾顺序学习, 且不是重修课程
  343. if (this.preItem) {
  344. let rows = this.menuAllList;
  345. let newRows = [];
  346. for (let i = 0; i < rows.length; i++) {
  347. let moduleTrue =
  348. rows[i].moduleId == this.menuItem.moduleId ||
  349. rows[i].moduleId == 0;
  350. let chapterTrue =
  351. rows[i].chapterId == this.menuItem.chapterId ||
  352. rows[i].chapterId == 0;
  353. let sectionTrue =
  354. rows[i].sectionId == this.menuItem.sectionId ||
  355. rows[i].sectionId == this.menuItem.menuId;
  356. if (moduleTrue && chapterTrue && sectionTrue) {
  357. break;
  358. } else {
  359. if (rows[i].sectionType != 2) {
  360. newRows.push(rows[i]);
  361. }
  362. }
  363. }
  364. let isAllLearn = newRows.every((item) => {
  365. return item.studyStatus == 1;
  366. });
  367. if (isAllLearn) {
  368. this.playVideo();
  369. } else {
  370. uni.showToast({
  371. icon: "none",
  372. title: "请按顺序学习视频课程",
  373. });
  374. }
  375. } else {
  376. //第一章第一节
  377. this.playVideo();
  378. }
  379. } else {
  380. this.playVideo();
  381. }
  382. setTimeout(() => {
  383. this.clickLock = false;
  384. }, 3000);
  385. },
  386. studyRecordGetChannelBasicInfo(channelId) {
  387. return new Promise((resolve) => {
  388. this.$api
  389. .studyRecordGetChannelBasicInfo({
  390. channelId,
  391. })
  392. .then((res) => {
  393. resolve(res.data.data);
  394. });
  395. });
  396. },
  397. async playVideo() {
  398. if (!this.isBuy) {
  399. if (this.isTryListen) {
  400. uni.$emit("getSection", this.menuItem, this.isTryListen);
  401. }
  402. //非购买
  403. this.clickLock = false;
  404. return;
  405. }
  406. if (this.menuItem.sectionType == 1 || this.menuItem.sectionType == 3) {
  407. let learnNum = await this.goodsTodayStudySectionNum();
  408. let hasLearn = await this.gradeCheckGoodsStudy();
  409. if (this.sectionMaxNum > 0) {
  410. if (learnNum >= this.sectionMaxNum && !hasLearn) {
  411. uni.showToast({
  412. icon: "none",
  413. title: `每天最多学习${this.sectionMaxNum}节`,
  414. });
  415. this.clickLock = false;
  416. return;
  417. }
  418. }
  419. if (!this.menuItem.recordingUrl) {
  420. uni.showToast({
  421. title: "暂无播放地址数据",
  422. icon: "none",
  423. });
  424. this.clickLock = false;
  425. return;
  426. }
  427. // 回放
  428. if (this.menuItem.sectionType == 3) {
  429. let moduleId = this.menuItem.moduleId || 0;
  430. let chapterId = this.menuItem.chapterId || 0;
  431. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  432. let uuid = new Date().valueOf() + "";
  433. // buyCourse 是否购买课程:1是 0否,type=vod是回放
  434. let encode = encodeURIComponent(
  435. this.config.hostLive +
  436. "/pages/live/index?token=" +
  437. uni.getStorageSync("token") +
  438. "&userInfo=" +
  439. JSON.stringify(this.userInfo) +
  440. "&channelId=" +
  441. this.menuItem.liveUrl +
  442. "&gradeId=" +
  443. this.gradeId +
  444. "&courseId=" +
  445. this.courseId +
  446. "&goodsId=" +
  447. this.goodsId +
  448. "&orderGoodsId=" +
  449. this.orderGoodsId +
  450. "&sectionId=" +
  451. sectionId +
  452. "&chapterId=" +
  453. chapterId +
  454. "&moduleId=" +
  455. moduleId +
  456. "&buyCourse=1" +
  457. "&ident=" +
  458. uuid +
  459. "&sectionType=3" +
  460. "&vid=" +
  461. this.menuItem.recordingUrl
  462. );
  463. uni.navigateTo({
  464. url: `../../pages/webview/index?url=` + encode,
  465. });
  466. return;
  467. }
  468. // console.log('===设置播放的节IDthis.menuItem,', this.menuItem, this.playId);
  469. //设置播放的节ID
  470. this.$store.commit("updatePlayNextId", this.playId);
  471. uni.$emit("getSection", this.menuItem);
  472. uni.$emit("isRebuild", this.isRebuild);
  473. }
  474. if (this.menuItem.sectionType == 2) {
  475. let learnNum = await this.goodsTodayStudySectionNum();
  476. let hasLearn = await this.gradeCheckGoodsStudy();
  477. if (this.sectionMaxNum > 0 && !this.isLive) {
  478. if (learnNum >= this.sectionMaxNum && !hasLearn) {
  479. uni.showToast({
  480. icon: "none",
  481. title: `每天最多学习${this.sectionMaxNum}节`,
  482. });
  483. this.clickLock = false;
  484. return;
  485. }
  486. }
  487. if (!this.menuItem.liveUrl) {
  488. uni.showToast({
  489. title: "暂无直播地址数据",
  490. icon: "error",
  491. });
  492. return;
  493. }
  494. let data = await this.studyRecordGetChannelBasicInfo(
  495. this.menuItem.liveUrl
  496. );
  497. let nowTime = +this.$method.timest();
  498. if (this.menuItem.liveStartTime > nowTime) {
  499. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  500. this.clickLock = false;
  501. uni.showToast({
  502. title: "直播未开始",
  503. icon: "none",
  504. });
  505. return;
  506. }
  507. } else if (
  508. this.menuItem.liveStartTime < nowTime &&
  509. this.menuItem.liveEndTime > nowTime
  510. ) {
  511. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  512. this.clickLock = false;
  513. uni.showToast({
  514. title: "暂无直播",
  515. icon: "none",
  516. });
  517. return;
  518. }
  519. } else if (this.menuItem.liveEndTime < nowTime) {
  520. if (!data) {
  521. uni.showToast({
  522. title: "直播已结束",
  523. icon: "none",
  524. });
  525. return;
  526. }
  527. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  528. this.clickLock = false;
  529. uni.showToast({
  530. title: "直播已结束",
  531. icon: "none",
  532. });
  533. return;
  534. }
  535. }
  536. let moduleId = this.menuItem.moduleId || 0;
  537. let chapterId = this.menuItem.chapterId || 0;
  538. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  539. let uuid = new Date().valueOf() + "";
  540. // buyCourse 是否购买课程:1是 0否
  541. let encode = encodeURIComponent(
  542. this.config.hostLive +
  543. "/pages/live/index?token=" +
  544. uni.getStorageSync("token") +
  545. "&userInfo=" +
  546. JSON.stringify(this.userInfo) +
  547. "&channelId=" +
  548. this.menuItem.liveUrl +
  549. "&gradeId=" +
  550. this.gradeId +
  551. "&courseId=" +
  552. this.courseId +
  553. "&goodsId=" +
  554. this.goodsId +
  555. "&orderGoodsId=" +
  556. this.orderGoodsId +
  557. "&sectionId=" +
  558. sectionId +
  559. "&chapterId=" +
  560. chapterId +
  561. "&moduleId=" +
  562. moduleId +
  563. "&buyCourse=1" +
  564. "&ident=" +
  565. uuid +
  566. "&sectionType=2"
  567. );
  568. uni.navigateTo({
  569. url: `../../pages/webview/index?url=` + encode,
  570. });
  571. return;
  572. }
  573. },
  574. },
  575. computed: {
  576. ...mapGetters(["userInfo", "liveLast", "config"]),
  577. isActive() {
  578. if (!this.isBuy || !this.sectionItem) {
  579. return false;
  580. }
  581. let moduleId = this.menuItem.moduleId || 0;
  582. let chapterId = this.menuItem.chapterId || 0;
  583. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  584. let moduleId1 = this.sectionItem.moduleId || 0;
  585. let chapterId1 = this.sectionItem.chapterId || 0;
  586. let sectionId1 = this.sectionItem.sectionId || this.sectionItem.menuId;
  587. return (
  588. moduleId == moduleId1 &&
  589. chapterId == chapterId1 &&
  590. sectionId == sectionId1
  591. );
  592. },
  593. params() {
  594. return this.paramsFn([
  595. "orderGoodsId",
  596. "gradeId",
  597. "courseId",
  598. "sectionItem",
  599. "menuAllList",
  600. "orderNum",
  601. "goodsId",
  602. "sectionId",
  603. "listenConfigList",
  604. ]);
  605. },
  606. courseId() {
  607. return this.params.courseId;
  608. },
  609. gradeId() {
  610. return this.params.gradeId;
  611. },
  612. orderGoodsId() {
  613. return this.params.orderGoodsId;
  614. },
  615. sectionItem() {
  616. return this.params.sectionItem;
  617. },
  618. menuAllList() {
  619. return this.params.menuAllList;
  620. },
  621. goodsId() {
  622. return this.params.goodsId;
  623. },
  624. sectionId() {
  625. return this.params.sectionId;
  626. },
  627. isTryListen() {
  628. let { listenConfigList } = this.params;
  629. return (
  630. listenConfigList &&
  631. listenConfigList.find(
  632. (e) =>
  633. e.sectionId == this.menuItem.sectionId ||
  634. e.sectionId == this.menuItem.menuId
  635. )
  636. );
  637. },
  638. },
  639. };
  640. </script>
  641. <style scoped lang="scss">
  642. .tagGreen {
  643. width: 80rpx;
  644. height: 28rpx;
  645. background: #34c759;
  646. border-radius: 8rpx;
  647. font-size: 20rpx;
  648. color: #ffffff;
  649. text-align: center;
  650. }
  651. .tagWillPlay {
  652. width: 80rpx;
  653. height: 28rpx;
  654. background: #ebf4ff;
  655. border-radius: 8rpx;
  656. font-size: 20rpx;
  657. color: #007aff;
  658. text-align: center;
  659. }
  660. .tagPlaying {
  661. width: 80rpx;
  662. height: 28rpx;
  663. background: #fff7eb;
  664. border-radius: 8rpx;
  665. font-size: 20rpx;
  666. color: #ff9500;
  667. text-align: center;
  668. }
  669. .tagPlayed {
  670. width: 80rpx;
  671. height: 28rpx;
  672. background: #eeeeee;
  673. border-radius: 8rpx;
  674. font-size: 20rpx;
  675. color: #666666;
  676. text-align: center;
  677. }
  678. .tagRe {
  679. width: 80rpx;
  680. height: 28rpx;
  681. background: #ff3b30;
  682. border-radius: 8rpx;
  683. font-size: 20rpx;
  684. color: #ffffff;
  685. text-align: center;
  686. }
  687. .tryBox {
  688. width: 103rpx;
  689. height: 48rpx;
  690. background: #fff;
  691. border-radius: 24rpx;
  692. color: #3577e8;
  693. font-size: 24rpx;
  694. line-height: 48rpx;
  695. text-align: center;
  696. border: 1rpx solid #3577e8;
  697. }
  698. .icon_up {
  699. width: 24rpx;
  700. height: 24rpx;
  701. }
  702. .t_content3 {
  703. color: #007aff;
  704. }
  705. .t_content2 {
  706. color: #007aff;
  707. }
  708. .t_content1 {
  709. color: #007aff;
  710. }
  711. .t_content {
  712. font-size: 30rpx;
  713. margin-left: 10rpx;
  714. color: #666666;
  715. flex: 1;
  716. }
  717. .tagColor3 {
  718. border: 2rpx solid #ff9500;
  719. color: #ff9500;
  720. }
  721. .tagColor2 {
  722. border: 2rpx solid #ff3b30;
  723. color: #ff3b30;
  724. }
  725. .tagColor1 {
  726. border: 2rpx solid #007aff;
  727. color: #007aff;
  728. }
  729. .color3 {
  730. color: #ff9500;
  731. }
  732. .color2 {
  733. color: #ff3b30;
  734. }
  735. .color1 {
  736. color: #007aff;
  737. }
  738. .tag {
  739. border-radius: 8rpx;
  740. font-size: 20rpx;
  741. padding: 4rpx 10rpx;
  742. }
  743. .exercises {
  744. margin-left: 10rpx;
  745. font-size: 26rpx;
  746. color: #498afe;
  747. > text {
  748. margin-right: 6rpx;
  749. }
  750. }
  751. .learnings {
  752. margin-right: 8rpx;
  753. .learning_icon {
  754. width: 40rpx;
  755. height: 40rpx;
  756. margin-right: 4rpx;
  757. }
  758. }
  759. </style>