courseSection.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  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. uni.$emit("getSection", this.menuItem);
  470. uni.$emit("isRebuild", this.isRebuild);
  471. }
  472. if (this.menuItem.sectionType == 2) {
  473. let learnNum = await this.goodsTodayStudySectionNum();
  474. let hasLearn = await this.gradeCheckGoodsStudy();
  475. if (this.sectionMaxNum > 0 && !this.isLive) {
  476. if (learnNum >= this.sectionMaxNum && !hasLearn) {
  477. uni.showToast({
  478. icon: "none",
  479. title: `每天最多学习${this.sectionMaxNum}节`,
  480. });
  481. this.clickLock = false;
  482. return;
  483. }
  484. }
  485. if (!this.menuItem.liveUrl) {
  486. uni.showToast({
  487. title: "暂无直播地址数据",
  488. icon: "error",
  489. });
  490. return;
  491. }
  492. let data = await this.studyRecordGetChannelBasicInfo(
  493. this.menuItem.liveUrl
  494. );
  495. let nowTime = +this.$method.timest();
  496. if (this.menuItem.liveStartTime > nowTime) {
  497. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  498. this.clickLock = false;
  499. uni.showToast({
  500. title: "直播未开始",
  501. icon: "none",
  502. });
  503. return;
  504. }
  505. } else if (
  506. this.menuItem.liveStartTime < nowTime &&
  507. this.menuItem.liveEndTime > nowTime
  508. ) {
  509. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  510. this.clickLock = false;
  511. uni.showToast({
  512. title: "暂无直播",
  513. icon: "none",
  514. });
  515. return;
  516. }
  517. } else if (this.menuItem.liveEndTime < nowTime) {
  518. if (!data) {
  519. uni.showToast({
  520. title: "直播已结束",
  521. icon: "none",
  522. });
  523. return;
  524. }
  525. if (data.watchStatus == "end" || data.watchStatus == "playback") {
  526. this.clickLock = false;
  527. uni.showToast({
  528. title: "直播已结束",
  529. icon: "none",
  530. });
  531. return;
  532. }
  533. }
  534. let moduleId = this.menuItem.moduleId || 0;
  535. let chapterId = this.menuItem.chapterId || 0;
  536. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  537. let uuid = new Date().valueOf() + "";
  538. // buyCourse 是否购买课程:1是 0否
  539. let encode = encodeURIComponent(
  540. this.config.hostLive +
  541. "/pages/live/index?token=" +
  542. uni.getStorageSync("token") +
  543. "&userInfo=" +
  544. JSON.stringify(this.userInfo) +
  545. "&channelId=" +
  546. this.menuItem.liveUrl +
  547. "&gradeId=" +
  548. this.gradeId +
  549. "&courseId=" +
  550. this.courseId +
  551. "&goodsId=" +
  552. this.goodsId +
  553. "&orderGoodsId=" +
  554. this.orderGoodsId +
  555. "&sectionId=" +
  556. sectionId +
  557. "&chapterId=" +
  558. chapterId +
  559. "&moduleId=" +
  560. moduleId +
  561. "&buyCourse=1" +
  562. "&ident=" +
  563. uuid +
  564. "&sectionType=2"
  565. );
  566. uni.navigateTo({
  567. url: `../../pages/webview/index?url=` + encode,
  568. });
  569. return;
  570. }
  571. },
  572. },
  573. computed: {
  574. ...mapGetters(["userInfo", "liveLast", "config"]),
  575. isActive() {
  576. if (!this.isBuy || !this.sectionItem) {
  577. return false;
  578. }
  579. let moduleId = this.menuItem.moduleId || 0;
  580. let chapterId = this.menuItem.chapterId || 0;
  581. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  582. let moduleId1 = this.sectionItem.moduleId || 0;
  583. let chapterId1 = this.sectionItem.chapterId || 0;
  584. let sectionId1 = this.sectionItem.sectionId || this.sectionItem.menuId;
  585. return (
  586. moduleId == moduleId1 &&
  587. chapterId == chapterId1 &&
  588. sectionId == sectionId1
  589. );
  590. },
  591. params() {
  592. return this.paramsFn([
  593. "orderGoodsId",
  594. "gradeId",
  595. "courseId",
  596. "sectionItem",
  597. "menuAllList",
  598. "orderNum",
  599. "goodsId",
  600. "sectionId",
  601. "listenConfigList",
  602. ]);
  603. },
  604. courseId() {
  605. return this.params.courseId;
  606. },
  607. gradeId() {
  608. return this.params.gradeId;
  609. },
  610. orderGoodsId() {
  611. return this.params.orderGoodsId;
  612. },
  613. sectionItem() {
  614. return this.params.sectionItem;
  615. },
  616. menuAllList() {
  617. return this.params.menuAllList;
  618. },
  619. goodsId() {
  620. return this.params.goodsId;
  621. },
  622. sectionId() {
  623. return this.params.sectionId;
  624. },
  625. isTryListen() {
  626. let { listenConfigList } = this.params;
  627. return (
  628. listenConfigList &&
  629. listenConfigList.find(
  630. (e) =>
  631. e.sectionId == this.menuItem.sectionId ||
  632. e.sectionId == this.menuItem.menuId
  633. )
  634. );
  635. },
  636. },
  637. };
  638. </script>
  639. <style scoped lang="scss">
  640. .tagGreen {
  641. width: 80rpx;
  642. height: 28rpx;
  643. background: #34c759;
  644. border-radius: 8rpx;
  645. font-size: 20rpx;
  646. color: #ffffff;
  647. text-align: center;
  648. }
  649. .tagWillPlay {
  650. width: 80rpx;
  651. height: 28rpx;
  652. background: #ebf4ff;
  653. border-radius: 8rpx;
  654. font-size: 20rpx;
  655. color: #007aff;
  656. text-align: center;
  657. }
  658. .tagPlaying {
  659. width: 80rpx;
  660. height: 28rpx;
  661. background: #fff7eb;
  662. border-radius: 8rpx;
  663. font-size: 20rpx;
  664. color: #ff9500;
  665. text-align: center;
  666. }
  667. .tagPlayed {
  668. width: 80rpx;
  669. height: 28rpx;
  670. background: #eeeeee;
  671. border-radius: 8rpx;
  672. font-size: 20rpx;
  673. color: #666666;
  674. text-align: center;
  675. }
  676. .tagRe {
  677. width: 80rpx;
  678. height: 28rpx;
  679. background: #ff3b30;
  680. border-radius: 8rpx;
  681. font-size: 20rpx;
  682. color: #ffffff;
  683. text-align: center;
  684. }
  685. .tryBox {
  686. width: 103rpx;
  687. height: 48rpx;
  688. background: #fff;
  689. border-radius: 24rpx;
  690. color: #3577e8;
  691. font-size: 24rpx;
  692. line-height: 48rpx;
  693. text-align: center;
  694. border: 1rpx solid #3577e8;
  695. }
  696. .icon_up {
  697. width: 24rpx;
  698. height: 24rpx;
  699. }
  700. .t_content3 {
  701. color: #007aff;
  702. }
  703. .t_content2 {
  704. color: #007aff;
  705. }
  706. .t_content1 {
  707. color: #007aff;
  708. }
  709. .t_content {
  710. font-size: 30rpx;
  711. margin-left: 10rpx;
  712. color: #666666;
  713. flex: 1;
  714. }
  715. .tagColor3 {
  716. border: 2rpx solid #ff9500;
  717. color: #ff9500;
  718. }
  719. .tagColor2 {
  720. border: 2rpx solid #ff3b30;
  721. color: #ff3b30;
  722. }
  723. .tagColor1 {
  724. border: 2rpx solid #007aff;
  725. color: #007aff;
  726. }
  727. .color3 {
  728. color: #ff9500;
  729. }
  730. .color2 {
  731. color: #ff3b30;
  732. }
  733. .color1 {
  734. color: #007aff;
  735. }
  736. .tag {
  737. border-radius: 8rpx;
  738. font-size: 20rpx;
  739. padding: 4rpx 10rpx;
  740. }
  741. .exercises {
  742. margin-left: 10rpx;
  743. font-size: 26rpx;
  744. color: #498afe;
  745. > text {
  746. margin-right: 6rpx;
  747. }
  748. }
  749. .learnings {
  750. margin-right: 8rpx;
  751. .learning_icon {
  752. width: 40rpx;
  753. height: 40rpx;
  754. margin-right: 4rpx;
  755. }
  756. }
  757. </style>