courseChapter.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <template>
  2. <view>
  3. <view class="title" @click="openChapter(menuItem)">
  4. <u-icon name="arrow-down" color="#999" size="24" v-if="!down"></u-icon>
  5. <u-icon name="arrow-right" color="#999" size="24" v-if="down"></u-icon>
  6. <text class="menu_name">{{ menuItem.name }}</text>
  7. </view>
  8. <view v-show="!down">
  9. <view v-for="(itemM, indexM) in list" :key="indexM">
  10. <view v-if="itemM.type != 2">
  11. <courseSection
  12. ref="ChapterSection"
  13. :isLive="isLive"
  14. :orderGoodsId="orderGoodsId"
  15. :sectionMaxNum="sectionMaxNum"
  16. :preItem="list[indexM - 1] || preItem"
  17. :learningOrder="learningOrder"
  18. :courseId="courseId"
  19. @playEnd="refreshList($event)"
  20. :goodsId="goodsId"
  21. :isBuy="isBuy"
  22. :nextMenuItem="findNextSection(indexM)"
  23. :isRebuild="isRebuild"
  24. :gradeId="gradeId"
  25. :menuItem="itemM"
  26. :levelId="levelId + '-' + itemM.sectionId"
  27. :testType="2"
  28. :ChapterSectionExam="sectionExam"
  29. :menuAllList="menuAllList"
  30. ></courseSection>
  31. <!-- @togoBack='togoBack()' -->
  32. <u-line v-if="indexM < list.length - 1"></u-line>
  33. </view>
  34. <!-- 章卷 -->
  35. <view v-if="itemM.type == 2">
  36. <u-line></u-line>
  37. <view
  38. class="examBox"
  39. @click="
  40. toDo(
  41. itemM.typeId,
  42. goodsId,
  43. itemM.moduleId,
  44. itemM.chapterId,
  45. itemM,
  46. indexM
  47. )
  48. "
  49. >
  50. <view class="exam">
  51. <view class="eTag">
  52. {{ itemM.doType == 1 ? "练习" : "考试" }}
  53. </view>
  54. <view style="margin-left: 15rpx; flex: 1">{{ itemM.name }}</view>
  55. </view>
  56. <view v-if="isRebuild || itemM.rebuild > 0" class="tagRe"
  57. >待重修</view
  58. >
  59. <view v-else>
  60. <view
  61. :class="{
  62. tagGreen: itemM.learning == 1,
  63. tagRe: itemM.learning == 0 || itemM.rebuild > 0,
  64. }"
  65. >
  66. <text v-if="itemM.rebuild > 0">待重测</text>
  67. <text v-else-if="itemM.learning == 1">合格</text>
  68. <text v-else-if="itemM.learning == 0">不及格(需重考)</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. import { mapGetters, mapMutations } from "vuex";
  79. import courseSection from "@/components/course/courseSection.vue";
  80. export default {
  81. name: "courseChapter",
  82. props: {
  83. isLive: false,
  84. orderGoodsId: {
  85. default: 0,
  86. },
  87. preItem: {
  88. default: undefined,
  89. },
  90. learningOrder: {
  91. //是否设置学习顺序 1 章节顺序 0不设置 2从头学到尾顺序
  92. type: Number,
  93. default: 0,
  94. },
  95. needOpen: {
  96. //是否默认展开
  97. type: Boolean,
  98. default: false,
  99. },
  100. menuItem: {
  101. type: Object,
  102. default: {},
  103. },
  104. isBuy: {
  105. type: Boolean,
  106. default: false,
  107. },
  108. levelId: {
  109. type: String,
  110. default: "",
  111. },
  112. goodsId: {
  113. type: Number,
  114. default: 0,
  115. },
  116. courseId: {
  117. type: Number,
  118. default: 0,
  119. },
  120. isRebuild: {
  121. type: Boolean,
  122. default: false,
  123. },
  124. gradeId: {
  125. type: Number,
  126. default: 0,
  127. },
  128. sectionMaxNum: {
  129. default: undefined,
  130. },
  131. // 商品类型 1视频2题库 3补考 4前培 5虚拟赠送题库 6直播
  132. goodsType: {
  133. type: [Number, String],
  134. default: 0,
  135. },
  136. menuAllList: {
  137. // 课程所有子目录结构列表
  138. type: Array,
  139. default: () => [],
  140. },
  141. // sectionItem: { // 用户最后一次看的录播的信息
  142. // type: Object,
  143. // default: () => {}
  144. // },
  145. },
  146. components: {
  147. courseSection,
  148. },
  149. data() {
  150. return {
  151. down: true,
  152. list: [],
  153. examList: {},
  154. canLearn: false, //是否全部视频看完才可以练习、测试
  155. sectionExam: [],
  156. };
  157. },
  158. onLoad() {},
  159. created() {},
  160. mounted() {
  161. // console.log('needOpen:', this.needOpen, this.chapterOpen);
  162. if (this.needOpen && this.chapterOpen) {
  163. this.updateChapterOpen(false);
  164. this.openChapter(this.menuItem);
  165. }
  166. },
  167. onPageShow() {
  168. if (this.isBuy) {
  169. this.refreshList({ isRebuild: this.isRebuild });
  170. }
  171. },
  172. methods: {
  173. ...mapMutations(["updateChapterOpen"]),
  174. // 调用节的方法
  175. // togoBack(value) {
  176. // this.$refs.ChapterSection[0].ChapterExam()
  177. // },
  178. goodsTodayStudySectionNum() {
  179. return new Promise((resolve) => {
  180. this.$api
  181. .goodsTodayStudySectionNum({
  182. goodsId: this.goodsId,
  183. gradeId: this.gradeId,
  184. })
  185. .then((res) => {
  186. if (res.data.code == 200) {
  187. resolve(res.data.data);
  188. }
  189. });
  190. });
  191. },
  192. async refreshList(isRebuild) {
  193. // console.log('节的播放结束');
  194. let moduleId = this.menuItem.moduleId ? this.menuItem.moduleId : 0;
  195. if (this.isRebuild) {
  196. this.getReSectionList(
  197. this.menuItem.id,
  198. this.menuItem.courseId,
  199. moduleId
  200. );
  201. } else {
  202. // console.log('重新请求');
  203. this.getBuySectionList(
  204. this.menuItem.id,
  205. this.menuItem.courseId,
  206. moduleId
  207. );
  208. // this.getMenuExamList(item.id,item.courseId,moduleId)
  209. }
  210. this.$emit("playEnd", { isRebuild: isRebuild.isRebuild });
  211. // this.newMenuAllList = await this.studyRecordMenuAllList()
  212. // console.log('播放器节:', this.newMenuAllList);
  213. },
  214. findNextSection(index) {
  215. for (let i = index + 1; i < this.list.length; i++) {
  216. return this.list[i];
  217. }
  218. return {};
  219. },
  220. // /study/record/menuAllList - 查询课程所有子目录结构列表
  221. studyRecordMenuAllList() {
  222. return new Promise((resolve) => {
  223. this.$api
  224. .studyRecordMenuAllList({
  225. courseId: this.courseId,
  226. gradeId: this.gradeId,
  227. goodsId: this.goodsId,
  228. })
  229. .then((res) => {
  230. if (res.data.code == 200) {
  231. resolve(res.data.data);
  232. }
  233. });
  234. });
  235. },
  236. gradeCheckGoodsStudy(id) {
  237. let moduleId = this.menuItem.moduleId || 0;
  238. let chapterId = this.menuItem.chapterId || 0;
  239. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  240. return new Promise((resolve) => {
  241. this.$api
  242. .gradeCheckGoodsStudy({
  243. goodsId: this.goodsId,
  244. gradeId: this.gradeId,
  245. moduleId: this.menuItem.moduleId || 0,
  246. chapterId: this.menuItem.chapterId || 0,
  247. examId: id,
  248. })
  249. .then((res) => {
  250. resolve(res.data.data);
  251. });
  252. });
  253. },
  254. // 新增用户视频学习日志
  255. studyLog() {
  256. this.$http({
  257. url: "/user/study/log",
  258. method: "post",
  259. data: {
  260. goodsId: this.goodsId,
  261. courseId: this.courseId,
  262. moduleId: this.menuItem.moduleId || 0,
  263. chapterId: this.menuItem.chapterId || 0,
  264. sectionId: this.menuItem.sectionId || this.menuItem.menuId,
  265. fromPlat: 1, //来源平台 1小程序 2PC网站
  266. goodsType: this.goodsType, // 商品类型 1视频2题库 3补考 4前培 5虚拟赠送题库 6直播
  267. orderGoodsId: this.orderGoodsId,
  268. },
  269. }).then((res) => {
  270. console.log("考试的用户学习日志:", res);
  271. });
  272. },
  273. /**
  274. * 去做题
  275. */
  276. async toDo(id, goodsId = 0, moduleId = 0, chapterId = 0, item, index) {
  277. if (item.doType === 2 && item.learning == 1) {
  278. return;
  279. }
  280. // 查询用户商品今天学习节数- /goods/todayStudySectionNum
  281. let learnNum = await this.goodsTodayStudySectionNum();
  282. // 检查用户是否学习过节 - /grade/grade/checkGoodsStudy
  283. let hasLearn = await this.gradeCheckGoodsStudy(id);
  284. if (this.sectionMaxNum > 0) {
  285. if (learnNum >= this.sectionMaxNum && !hasLearn) {
  286. uni.showToast({
  287. icon: "none",
  288. title: `每天最多学习${this.sectionMaxNum}节`,
  289. });
  290. return;
  291. }
  292. }
  293. if (this.learningOrder == 1) {
  294. if (this.canLearn) {
  295. let num = await this.bankRecordDoNum(item.typeId);
  296. //有次数限制
  297. if (item.answerNum - num > 0 && item.answerNum > 0) {
  298. // this.$set(this.list[index],'doNum',(item.doNum+1))
  299. // console.log(this.list[index]);
  300. uni.navigateTo({
  301. url:
  302. "/pages2/class/questionBank?courseId=" +
  303. this.courseId +
  304. "&gradeId=" +
  305. this.gradeId +
  306. "&isFromVideo=1&id=" +
  307. id +
  308. "&goodsid=" +
  309. goodsId +
  310. "&moduleId=" +
  311. moduleId +
  312. "&chapterId=" +
  313. chapterId +
  314. "&orderGoodsId=" +
  315. this.orderGoodsId +
  316. "&type=1" +
  317. "&learning=" +
  318. item.learning +
  319. "&isBackVideo=" +
  320. 1,
  321. });
  322. this.studyLog();
  323. //没有答题次数限制
  324. } else if (item.answerNum == 0) {
  325. uni.navigateTo({
  326. url:
  327. "/pages2/class/questionBank?courseId=" +
  328. this.courseId +
  329. "&gradeId=" +
  330. this.gradeId +
  331. "&isFromVideo=1&id=" +
  332. id +
  333. "&goodsid=" +
  334. goodsId +
  335. "&moduleId=" +
  336. moduleId +
  337. "&chapterId=" +
  338. chapterId +
  339. "&orderGoodsId=" +
  340. this.orderGoodsId +
  341. "&type=1" +
  342. "&learning=" +
  343. item.learning +
  344. "&isBackVideo=" +
  345. 1,
  346. });
  347. this.studyLog();
  348. } else {
  349. uni.showToast({
  350. icon: "none",
  351. title: "该试卷只能答题" + item.answerNum + "次",
  352. });
  353. return;
  354. }
  355. } else {
  356. uni.showToast({
  357. icon: "none",
  358. title: "请按顺序学完视频课程再进行练习和测试",
  359. });
  360. }
  361. } else if (this.learningOrder == 2) {
  362. // !item.rebuild
  363. let rows = this.menuAllList;
  364. const index = this.menuAllList.findIndex((e) => {
  365. let i_sectionId = e.sectionId || 0;
  366. let i_chapterId = e.chapterId || 0;
  367. let i_moduleId = e.moduleId || 0;
  368. return (
  369. i_sectionId == item.sectionId &&
  370. i_chapterId == item.chapterId &&
  371. i_moduleId == item.moduleId
  372. );
  373. });
  374. let isStop = false;
  375. let newRows = [];
  376. for (let i = 0; i < index; i++) {
  377. let moduleTrue = rows[i].moduleId == moduleId;
  378. let chapterTrue = rows[i].chapterId == chapterId;
  379. if (moduleTrue && chapterTrue) {
  380. isStop = true;
  381. if (rows[i].sectionType != 2) {
  382. //忽略直播
  383. newRows.push(rows[i]);
  384. }
  385. } else {
  386. if (!isStop) {
  387. if (rows[i].sectionType != 2) {
  388. //忽略直播
  389. newRows.push(rows[i]);
  390. }
  391. } else {
  392. break;
  393. }
  394. }
  395. }
  396. let isAllLearn = newRows.every((item) => {
  397. return item.studyStatus == 1;
  398. });
  399. if (isAllLearn) {
  400. //之前的都学完了
  401. // if(canLearn) { //视频的上一节学完
  402. let num = await this.bankRecordDoNum(item.typeId);
  403. //有次数限制
  404. if (item.answerNum - num > 0 && item.answerNum > 0) {
  405. // this.$set(this.list[index],'doNum',(item.doNum+1))
  406. // console.log(this.list[index]);
  407. uni.navigateTo({
  408. url:
  409. "/pages2/class/questionBank?courseId=" +
  410. this.courseId +
  411. "&gradeId=" +
  412. this.gradeId +
  413. "&isFromVideo=1&id=" +
  414. id +
  415. "&goodsid=" +
  416. goodsId +
  417. "&moduleId=" +
  418. moduleId +
  419. "&chapterId=" +
  420. chapterId +
  421. "&orderGoodsId=" +
  422. this.orderGoodsId +
  423. "&type=1" +
  424. "&learning=" +
  425. item.learning +
  426. "&isBackVideo=" +
  427. 1,
  428. });
  429. this.studyLog();
  430. //没有答题次数限制
  431. } else if (item.answerNum == 0) {
  432. uni.navigateTo({
  433. url:
  434. "/pages2/class/questionBank?courseId=" +
  435. this.courseId +
  436. "&gradeId=" +
  437. this.gradeId +
  438. "&isFromVideo=1&id=" +
  439. id +
  440. "&goodsid=" +
  441. goodsId +
  442. "&moduleId=" +
  443. moduleId +
  444. "&chapterId=" +
  445. chapterId +
  446. "&orderGoodsId=" +
  447. this.orderGoodsId +
  448. "&type=1" +
  449. "&learning=" +
  450. item.learning +
  451. "&isBackVideo=" +
  452. 1,
  453. });
  454. this.studyLog();
  455. } else {
  456. uni.showToast({
  457. icon: "none",
  458. title: "该试卷只能答题" + item.answerNum + "次",
  459. });
  460. return;
  461. }
  462. } else {
  463. uni.showToast({
  464. icon: "none",
  465. title: "请学完视频课程再进行练习和测试",
  466. });
  467. }
  468. } else {
  469. let num = await this.bankRecordDoNum(item.typeId);
  470. //有次数限制
  471. if (item.answerNum - item.doNum > 0 && item.answerNum > 0) {
  472. // this.$set(this.list[index],'doNum',(item.doNum+1))
  473. // console.log(this.list[index]);
  474. uni.navigateTo({
  475. url:
  476. "/pages2/class/questionBank?courseId=" +
  477. this.courseId +
  478. "&gradeId=" +
  479. this.gradeId +
  480. "&isFromVideo=1&id=" +
  481. id +
  482. "&goodsid=" +
  483. goodsId +
  484. "&moduleId=" +
  485. moduleId +
  486. "&chapterId=" +
  487. chapterId +
  488. "&orderGoodsId=" +
  489. this.orderGoodsId +
  490. "&type=1" +
  491. "&learning=" +
  492. item.learning +
  493. "&isBackVideo=" +
  494. 1,
  495. });
  496. this.studyLog();
  497. //没有答题次数限制
  498. } else if (item.answerNum == 0) {
  499. uni.navigateTo({
  500. url:
  501. "/pages2/class/questionBank?courseId=" +
  502. this.courseId +
  503. "&gradeId=" +
  504. this.gradeId +
  505. "&isFromVideo=1&id=" +
  506. id +
  507. "&goodsid=" +
  508. goodsId +
  509. "&moduleId=" +
  510. moduleId +
  511. "&chapterId=" +
  512. chapterId +
  513. "&orderGoodsId=" +
  514. this.orderGoodsId +
  515. "&type=1" +
  516. "&learning=" +
  517. item.learning +
  518. "&isBackVideo=" +
  519. 1,
  520. });
  521. this.studyLog();
  522. } else {
  523. uni.showToast({
  524. icon: "none",
  525. title: "该试卷只能答题" + item.answerNum + "次",
  526. });
  527. return;
  528. }
  529. }
  530. },
  531. bankRecordDoNum(examId) {
  532. return new Promise((resolve) => {
  533. this.$api
  534. .bankRecordDoNum({
  535. goodsId: this.goodsId,
  536. gradeId: this.gradeId,
  537. chapterId: this.menuItem.id,
  538. courseId: this.courseId,
  539. moduleId: 0,
  540. examId: examId,
  541. })
  542. .then((res) => {
  543. resolve(res.data.data);
  544. });
  545. });
  546. },
  547. async openChapter(item) {
  548. // console.log('---zhang',this.menuItem, this.down, item.courseId, item.moduleId);
  549. this.down = !this.down;
  550. if (!this.down && this.list.length == 0) {
  551. // console.log(item.id, 69);
  552. //获取章下面所有节试卷列表-course/sectionExamList
  553. this.$method.isLogin() &&
  554. (await this.$api
  555. .reSectionExamList({
  556. chapterId: item.chapterId || item.menuId,
  557. courseId: item.courseId,
  558. gradeId: item.gradeId,
  559. })
  560. .then((res) => {
  561. if (res.data.code == 200) {
  562. this.sectionExam = res.data.data || [];
  563. }
  564. }));
  565. if (this.isBuy) {
  566. let moduleId = item.moduleId ? item.moduleId : 0;
  567. let chapterId = item.chapterId || item.id;
  568. if (this.isRebuild) {
  569. this.getReSectionList(chapterId, item.courseId, moduleId);
  570. } else {
  571. this.getBuySectionList(chapterId, item.courseId, moduleId);
  572. // this.getMenuExamList(item.id,item.courseId,moduleId)
  573. }
  574. } else {
  575. this.getSectionList(item.chapterId);
  576. }
  577. }
  578. },
  579. getMenuExamList(chapterId, courseId, moduleId) {
  580. let self = this;
  581. this.$api
  582. .menuExamList({
  583. chapterId: chapterId,
  584. courseId: courseId,
  585. moduleId: moduleId,
  586. })
  587. .then((res) => {
  588. if (res.data.code == 200) {
  589. self.examList = res.data.rows;
  590. }
  591. });
  592. },
  593. getSectionList(chapterId) {
  594. let self = this;
  595. // url: '/app/common/course/sectionList/'+data,
  596. this.$api.sectionList(chapterId).then((res) => {
  597. if (res.data.code == 200) {
  598. for (let i = 0; i < res.data.data.length; i++) {
  599. let item = res.data.data[i];
  600. item.id = item.sectionId;
  601. item.menuType = 3;
  602. //判断是否试听
  603. item.tryListen = false;
  604. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  605. item.tryListen = true;
  606. }
  607. }
  608. let newArr = res.data.data.filter((item) => {
  609. return item.type != 2;
  610. });
  611. this.canLearn = newArr.every((item) => {
  612. if (item.learning == 1) {
  613. return true;
  614. } else {
  615. return false;
  616. }
  617. });
  618. self.list = res.data.data;
  619. }
  620. });
  621. },
  622. getReSectionList(chapterId, courseId, moduleId) {
  623. let self = this;
  624. this.$api
  625. .reSectionList({
  626. chapterId: chapterId,
  627. gradeId: this.gradeId,
  628. courseId: courseId,
  629. rebuild: 1,
  630. moduleId: moduleId,
  631. })
  632. .then((res) => {
  633. if (res.data.code == 200) {
  634. for (let i = 0; i < res.data.data.length; i++) {
  635. let item = res.data.data[i];
  636. item.id = item.sectionId;
  637. item.menuType = 3;
  638. //判断是否试听
  639. item.tryListen = false;
  640. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  641. item.tryListen = true;
  642. }
  643. }
  644. let newArr = res.data.data.filter((item) => {
  645. return item.type != 2;
  646. });
  647. this.canLearn = newArr.every((item) => {
  648. if (item.learning == 1) {
  649. return true;
  650. } else {
  651. return false;
  652. }
  653. });
  654. self.list = res.data.data;
  655. }
  656. });
  657. },
  658. getBuySectionList(chapterId, courseId, moduleId) {
  659. let self = this;
  660. // /course/sectionList
  661. this.$api
  662. .reSectionList({
  663. chapterId: chapterId,
  664. gradeId: this.gradeId,
  665. courseId: courseId,
  666. moduleId: moduleId,
  667. })
  668. .then((res) => {
  669. if (res.data.code == 200) {
  670. for (let i = 0; i < res.data.data.length; i++) {
  671. let item = res.data.data[i];
  672. item.id = item.sectionId;
  673. item.menuType = 3;
  674. //判断是否试听
  675. item.tryListen = false;
  676. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  677. item.tryListen = true;
  678. }
  679. }
  680. let newArr = res.data.data.filter((item) => {
  681. return item.type != 2;
  682. });
  683. this.canLearn = newArr.every((item) => {
  684. if (item.learning == 1) {
  685. return true;
  686. } else {
  687. return false;
  688. }
  689. });
  690. self.list = res.data.data;
  691. // console.log('=======节列表==', this.list);
  692. }
  693. });
  694. },
  695. },
  696. computed: { ...mapGetters(["goodsAuditionConfigIdList", "chapterOpen"]) },
  697. };
  698. </script>
  699. <style lang="scss" scoped>
  700. .tagRe {
  701. // width: 80rpx;
  702. line-height: 28rpx;
  703. padding: 0 8rpx;
  704. height: 28rpx;
  705. background: #ff3b30;
  706. border-radius: 8rpx;
  707. font-size: 20rpx;
  708. color: #ffffff;
  709. text-align: center;
  710. }
  711. .tagGreen {
  712. width: 80rpx;
  713. height: 28rpx;
  714. background: #34c759;
  715. border-radius: 8rpx;
  716. font-size: 20rpx;
  717. color: #ffffff;
  718. text-align: center;
  719. }
  720. .eTag {
  721. width: 64rpx;
  722. height: 36rpx;
  723. text-align: center;
  724. line-height: 36rpx;
  725. font-size: 20rpx;
  726. background: #007aff;
  727. border-radius: 8rpx;
  728. color: #ffffff;
  729. }
  730. .examBox {
  731. display: flex;
  732. align-items: center;
  733. justify-content: space-between;
  734. }
  735. .exam {
  736. font-size: 30rpx;
  737. display: flex;
  738. align-items: center;
  739. margin: 20rpx 0;
  740. }
  741. .icon_up {
  742. width: 24rpx;
  743. height: 24rpx;
  744. }
  745. .title {
  746. // margin-bottom: 30rpx;
  747. height: 78rpx;
  748. display: flex;
  749. align-items: center;
  750. border-bottom: 1rpx solid #eeeeee;
  751. .menu_name {
  752. font-size: 24rpx;
  753. font-family: PingFang SC;
  754. font-weight: bold;
  755. color: #333;
  756. white-space: nowrap;
  757. overflow: hidden;
  758. text-overflow: ellipsis;
  759. margin-left: 8rpx;
  760. }
  761. }
  762. </style>