courseSection.vue 22 KB

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