courseChapter.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  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 && !item.rebuild) {
  362. let canLearn = this.list[index - 1].learning == 1;
  363. let rows = this.menuAllList;
  364. let isStop = false;
  365. let newRows = [];
  366. for (let i = 0; i < rows.length; i++) {
  367. let moduleTrue = rows[i].moduleId == moduleId;
  368. let chapterTrue = rows[i].chapterId == chapterId;
  369. if (moduleTrue && chapterTrue) {
  370. isStop = true;
  371. if (rows[i].sectionType != 2) {
  372. //忽略直播
  373. newRows.push(rows[i]);
  374. }
  375. } else {
  376. if (!isStop) {
  377. if (rows[i].sectionType != 2) {
  378. //忽略直播
  379. newRows.push(rows[i]);
  380. }
  381. } else {
  382. break;
  383. }
  384. }
  385. }
  386. let isAllLearn = newRows.every((item) => {
  387. return item.studyStatus == 1;
  388. });
  389. if (isAllLearn) {
  390. //之前的都学完了
  391. // if(canLearn) { //视频的上一节学完
  392. let num = await this.bankRecordDoNum(item.typeId);
  393. //有次数限制
  394. if (item.answerNum - num > 0 && item.answerNum > 0) {
  395. // this.$set(this.list[index],'doNum',(item.doNum+1))
  396. // console.log(this.list[index]);
  397. uni.navigateTo({
  398. url:
  399. "/pages2/class/questionBank?courseId=" +
  400. this.courseId +
  401. "&gradeId=" +
  402. this.gradeId +
  403. "&isFromVideo=1&id=" +
  404. id +
  405. "&goodsid=" +
  406. goodsId +
  407. "&moduleId=" +
  408. moduleId +
  409. "&chapterId=" +
  410. chapterId +
  411. "&orderGoodsId=" +
  412. this.orderGoodsId +
  413. "&type=1" +
  414. "&learning=" +
  415. item.learning +
  416. "&isBackVideo=" +
  417. 1,
  418. });
  419. this.studyLog();
  420. //没有答题次数限制
  421. } else if (item.answerNum == 0) {
  422. uni.navigateTo({
  423. url:
  424. "/pages2/class/questionBank?courseId=" +
  425. this.courseId +
  426. "&gradeId=" +
  427. this.gradeId +
  428. "&isFromVideo=1&id=" +
  429. id +
  430. "&goodsid=" +
  431. goodsId +
  432. "&moduleId=" +
  433. moduleId +
  434. "&chapterId=" +
  435. chapterId +
  436. "&orderGoodsId=" +
  437. this.orderGoodsId +
  438. "&type=1" +
  439. "&learning=" +
  440. item.learning +
  441. "&isBackVideo=" +
  442. 1,
  443. });
  444. this.studyLog();
  445. } else {
  446. uni.showToast({
  447. icon: "none",
  448. title: "该试卷只能答题" + item.answerNum + "次",
  449. });
  450. return;
  451. }
  452. } else {
  453. uni.showToast({
  454. icon: "none",
  455. title: "请学完视频课程再进行练习和测试",
  456. });
  457. }
  458. } else {
  459. let num = await this.bankRecordDoNum(item.typeId);
  460. //有次数限制
  461. if (item.answerNum - item.doNum > 0 && item.answerNum > 0) {
  462. // this.$set(this.list[index],'doNum',(item.doNum+1))
  463. // console.log(this.list[index]);
  464. uni.navigateTo({
  465. url:
  466. "/pages2/class/questionBank?courseId=" +
  467. this.courseId +
  468. "&gradeId=" +
  469. this.gradeId +
  470. "&isFromVideo=1&id=" +
  471. id +
  472. "&goodsid=" +
  473. goodsId +
  474. "&moduleId=" +
  475. moduleId +
  476. "&chapterId=" +
  477. chapterId +
  478. "&orderGoodsId=" +
  479. this.orderGoodsId +
  480. "&type=1" +
  481. "&learning=" +
  482. item.learning +
  483. "&isBackVideo=" +
  484. 1,
  485. });
  486. this.studyLog();
  487. //没有答题次数限制
  488. } else if (item.answerNum == 0) {
  489. uni.navigateTo({
  490. url:
  491. "/pages2/class/questionBank?courseId=" +
  492. this.courseId +
  493. "&gradeId=" +
  494. this.gradeId +
  495. "&isFromVideo=1&id=" +
  496. id +
  497. "&goodsid=" +
  498. goodsId +
  499. "&moduleId=" +
  500. moduleId +
  501. "&chapterId=" +
  502. chapterId +
  503. "&orderGoodsId=" +
  504. this.orderGoodsId +
  505. "&type=1" +
  506. "&learning=" +
  507. item.learning +
  508. "&isBackVideo=" +
  509. 1,
  510. });
  511. this.studyLog();
  512. } else {
  513. uni.showToast({
  514. icon: "none",
  515. title: "该试卷只能答题" + item.answerNum + "次",
  516. });
  517. return;
  518. }
  519. }
  520. },
  521. bankRecordDoNum(examId) {
  522. return new Promise((resolve) => {
  523. this.$api
  524. .bankRecordDoNum({
  525. goodsId: this.goodsId,
  526. gradeId: this.gradeId,
  527. chapterId: this.menuItem.id,
  528. courseId: this.courseId,
  529. moduleId: 0,
  530. examId: examId,
  531. })
  532. .then((res) => {
  533. resolve(res.data.data);
  534. });
  535. });
  536. },
  537. async openChapter(item) {
  538. // console.log('---zhang',this.menuItem, this.down, item.courseId, item.moduleId);
  539. this.down = !this.down;
  540. if (!this.down && this.list.length == 0) {
  541. // console.log(item.id, 69);
  542. //获取章下面所有节试卷列表-course/sectionExamList
  543. this.$method.isLogin() &&
  544. (await this.$api
  545. .reSectionExamList({
  546. chapterId: item.chapterId || item.menuId,
  547. courseId: item.courseId,
  548. gradeId: item.gradeId,
  549. })
  550. .then((res) => {
  551. if (res.data.code == 200) {
  552. this.sectionExam = res.data.data || [];
  553. }
  554. }));
  555. if (this.isBuy) {
  556. let moduleId = item.moduleId ? item.moduleId : 0;
  557. let chapterId = item.chapterId || item.id;
  558. if (this.isRebuild) {
  559. this.getReSectionList(chapterId, item.courseId, moduleId);
  560. } else {
  561. this.getBuySectionList(chapterId, item.courseId, moduleId);
  562. // this.getMenuExamList(item.id,item.courseId,moduleId)
  563. }
  564. } else {
  565. this.getSectionList(item.chapterId);
  566. }
  567. }
  568. },
  569. getMenuExamList(chapterId, courseId, moduleId) {
  570. let self = this;
  571. this.$api
  572. .menuExamList({
  573. chapterId: chapterId,
  574. courseId: courseId,
  575. moduleId: moduleId,
  576. })
  577. .then((res) => {
  578. if (res.data.code == 200) {
  579. self.examList = res.data.rows;
  580. }
  581. });
  582. },
  583. getSectionList(chapterId) {
  584. let self = this;
  585. // url: '/app/common/course/sectionList/'+data,
  586. this.$api.sectionList(chapterId).then((res) => {
  587. if (res.data.code == 200) {
  588. for (let i = 0; i < res.data.data.length; i++) {
  589. let item = res.data.data[i];
  590. item.id = item.sectionId;
  591. item.menuType = 3;
  592. //判断是否试听
  593. item.tryListen = false;
  594. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  595. item.tryListen = true;
  596. }
  597. }
  598. let newArr = res.data.data.filter((item) => {
  599. return item.type != 2;
  600. });
  601. this.canLearn = newArr.every((item) => {
  602. if (item.learning == 1) {
  603. return true;
  604. } else {
  605. return false;
  606. }
  607. });
  608. self.list = res.data.data;
  609. }
  610. });
  611. },
  612. getReSectionList(chapterId, courseId, moduleId) {
  613. let self = this;
  614. this.$api
  615. .reSectionList({
  616. chapterId: chapterId,
  617. gradeId: this.gradeId,
  618. courseId: courseId,
  619. rebuild: 1,
  620. moduleId: moduleId,
  621. })
  622. .then((res) => {
  623. if (res.data.code == 200) {
  624. for (let i = 0; i < res.data.data.length; i++) {
  625. let item = res.data.data[i];
  626. item.id = item.sectionId;
  627. item.menuType = 3;
  628. //判断是否试听
  629. item.tryListen = false;
  630. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  631. item.tryListen = true;
  632. }
  633. }
  634. let newArr = res.data.data.filter((item) => {
  635. return item.type != 2;
  636. });
  637. this.canLearn = newArr.every((item) => {
  638. if (item.learning == 1) {
  639. return true;
  640. } else {
  641. return false;
  642. }
  643. });
  644. self.list = res.data.data;
  645. }
  646. });
  647. },
  648. getBuySectionList(chapterId, courseId, moduleId) {
  649. let self = this;
  650. // /course/sectionList
  651. this.$api
  652. .reSectionList({
  653. chapterId: chapterId,
  654. gradeId: this.gradeId,
  655. courseId: courseId,
  656. moduleId: moduleId,
  657. })
  658. .then((res) => {
  659. if (res.data.code == 200) {
  660. for (let i = 0; i < res.data.data.length; i++) {
  661. let item = res.data.data[i];
  662. item.id = item.sectionId;
  663. item.menuType = 3;
  664. //判断是否试听
  665. item.tryListen = false;
  666. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  667. item.tryListen = true;
  668. }
  669. }
  670. let newArr = res.data.data.filter((item) => {
  671. return item.type != 2;
  672. });
  673. this.canLearn = newArr.every((item) => {
  674. if (item.learning == 1) {
  675. return true;
  676. } else {
  677. return false;
  678. }
  679. });
  680. self.list = res.data.data;
  681. // console.log('=======节列表==', this.list);
  682. }
  683. });
  684. },
  685. },
  686. computed: { ...mapGetters(["goodsAuditionConfigIdList", "chapterOpen"]) },
  687. };
  688. </script>
  689. <style lang="scss" scoped>
  690. .tagRe {
  691. // width: 80rpx;
  692. line-height: 28rpx;
  693. padding: 0 8rpx;
  694. height: 28rpx;
  695. background: #ff3b30;
  696. border-radius: 8rpx;
  697. font-size: 20rpx;
  698. color: #ffffff;
  699. text-align: center;
  700. }
  701. .tagGreen {
  702. width: 80rpx;
  703. height: 28rpx;
  704. background: #34c759;
  705. border-radius: 8rpx;
  706. font-size: 20rpx;
  707. color: #ffffff;
  708. text-align: center;
  709. }
  710. .eTag {
  711. width: 64rpx;
  712. height: 36rpx;
  713. text-align: center;
  714. line-height: 36rpx;
  715. font-size: 20rpx;
  716. background: #007aff;
  717. border-radius: 8rpx;
  718. color: #ffffff;
  719. }
  720. .examBox {
  721. display: flex;
  722. align-items: center;
  723. justify-content: space-between;
  724. }
  725. .exam {
  726. font-size: 30rpx;
  727. display: flex;
  728. align-items: center;
  729. margin: 20rpx 0;
  730. }
  731. .icon_up {
  732. width: 24rpx;
  733. height: 24rpx;
  734. }
  735. .title {
  736. // margin-bottom: 30rpx;
  737. height: 78rpx;
  738. display: flex;
  739. align-items: center;
  740. border-bottom: 1rpx solid #eeeeee;
  741. .menu_name {
  742. font-size: 24rpx;
  743. font-family: PingFang SC;
  744. font-weight: bold;
  745. color: #333;
  746. white-space: nowrap;
  747. overflow: hidden;
  748. text-overflow: ellipsis;
  749. margin-left: 8rpx;
  750. }
  751. }
  752. </style>