courseChapter.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  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. type: Array,
  138. default: () => []
  139. },
  140. // sectionItem: { // 用户最后一次看的录播的信息
  141. // type: Object,
  142. // default: () => {}
  143. // },
  144. },
  145. components: {
  146. courseSection,
  147. },
  148. data() {
  149. return {
  150. down: true,
  151. list: [],
  152. examList: {},
  153. canLearn: false, //是否全部视频看完才可以练习、测试
  154. sectionExam: [],
  155. };
  156. },
  157. onLoad() {},
  158. created() {
  159. },
  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. uni.$off('openEmit')
  167. uni.$once('openEmit', (data) => {
  168. console.log('------章-data:', data);
  169. if (data.chapterId && data.chapterId > 0) {
  170. this.openChapter(data)
  171. }
  172. })
  173. },
  174. onPageShow() {
  175. if (this.isBuy) {
  176. this.refreshList({ isRebuild: this.isRebuild });
  177. }
  178. },
  179. methods: {
  180. ...mapMutations(["updateChapterOpen"]),
  181. // 调用节的方法
  182. // togoBack(value) {
  183. // this.$refs.ChapterSection[0].ChapterExam()
  184. // },
  185. goodsTodayStudySectionNum() {
  186. return new Promise((resolve) => {
  187. this.$api
  188. .goodsTodayStudySectionNum({
  189. goodsId: this.goodsId,
  190. gradeId: this.gradeId,
  191. })
  192. .then((res) => {
  193. if (res.data.code == 200) {
  194. resolve(res.data.data);
  195. }
  196. });
  197. });
  198. },
  199. async refreshList(isRebuild) {
  200. // console.log('节的播放结束');
  201. let moduleId = this.menuItem.moduleId ? this.menuItem.moduleId : 0;
  202. if (this.isRebuild) {
  203. this.getReSectionList(
  204. this.menuItem.id,
  205. this.menuItem.courseId,
  206. moduleId
  207. );
  208. } else {
  209. // console.log('重新请求');
  210. this.getBuySectionList(
  211. this.menuItem.id,
  212. this.menuItem.courseId,
  213. moduleId
  214. );
  215. // this.getMenuExamList(item.id,item.courseId,moduleId)
  216. }
  217. this.$emit("playEnd", { isRebuild: isRebuild.isRebuild });
  218. // this.newMenuAllList = await this.studyRecordMenuAllList()
  219. // console.log('播放器节:', this.newMenuAllList);
  220. },
  221. findNextSection(index) {
  222. for (let i = index + 1; i < this.list.length; i++) {
  223. return this.list[i];
  224. }
  225. return {};
  226. },
  227. // /study/record/menuAllList - 查询课程所有子目录结构列表
  228. studyRecordMenuAllList() {
  229. return new Promise((resolve) => {
  230. this.$api
  231. .studyRecordMenuAllList({
  232. courseId: this.courseId,
  233. gradeId: this.gradeId,
  234. goodsId: this.goodsId,
  235. })
  236. .then((res) => {
  237. if (res.data.code == 200) {
  238. resolve(res.data.data);
  239. }
  240. });
  241. });
  242. },
  243. gradeCheckGoodsStudy(id) {
  244. let moduleId = this.menuItem.moduleId || 0;
  245. let chapterId = this.menuItem.chapterId || 0;
  246. let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
  247. return new Promise((resolve) => {
  248. this.$api
  249. .gradeCheckGoodsStudy({
  250. goodsId: this.goodsId,
  251. gradeId: this.gradeId,
  252. moduleId: this.menuItem.moduleId || 0,
  253. chapterId: this.menuItem.chapterId || 0,
  254. examId: id,
  255. })
  256. .then((res) => {
  257. resolve(res.data.data);
  258. });
  259. });
  260. },
  261. // 新增用户视频学习日志
  262. studyLog() {
  263. this.$http({
  264. url: '/user/study/log',
  265. method: 'post',
  266. data: {
  267. goodsId: this.goodsId,
  268. courseId: this.courseId,
  269. moduleId: this.menuItem.moduleId || 0,
  270. chapterId: this.menuItem.chapterId || 0,
  271. sectionId: this.menuItem.sectionId || this.menuItem.menuId,
  272. fromPlat: 1, //来源平台 1小程序 2PC网站
  273. goodsType: this.goodsType, // 商品类型 1视频2题库 3补考 4前培 5虚拟赠送题库 6直播
  274. orderGoodsId: this.orderGoodsId,
  275. }
  276. }).then((res) => {
  277. console.log('考试的用户学习日志:', res)
  278. })
  279. },
  280. /**
  281. * 去做题
  282. */
  283. async toDo(id, goodsId = 0, moduleId = 0, chapterId = 0, item, index) {
  284. // 查询用户商品今天学习节数- /goods/todayStudySectionNum
  285. let learnNum = await this.goodsTodayStudySectionNum();
  286. // 检查用户是否学习过节 - /grade/grade/checkGoodsStudy
  287. let hasLearn = await this.gradeCheckGoodsStudy(id);
  288. if (this.sectionMaxNum > 0) {
  289. if (learnNum >= this.sectionMaxNum && !hasLearn) {
  290. uni.showToast({
  291. icon: "none",
  292. title: `每天最多学习${this.sectionMaxNum}节`,
  293. });
  294. return;
  295. }
  296. }
  297. if (this.learningOrder == 1) {
  298. if (this.canLearn) {
  299. let num = await this.bankRecordDoNum(item.typeId);
  300. //有次数限制
  301. if (item.answerNum - num > 0 && item.answerNum > 0) {
  302. // this.$set(this.list[index],'doNum',(item.doNum+1))
  303. // console.log(this.list[index]);
  304. uni.navigateTo({
  305. url:
  306. "/pages2/class/questionBank?courseId=" +
  307. this.courseId +
  308. "&gradeId=" +
  309. this.gradeId +
  310. "&isFromVideo=1&id=" +
  311. id +
  312. "&goodsid=" +
  313. goodsId +
  314. "&moduleId=" +
  315. moduleId +
  316. "&chapterId=" +
  317. chapterId +
  318. "&orderGoodsId=" +
  319. this.orderGoodsId +
  320. "&type=1" + '&learning=' + item.learning
  321. ,
  322. });
  323. this.studyLog()
  324. //没有答题次数限制
  325. } else if (item.answerNum == 0) {
  326. uni.navigateTo({
  327. url:
  328. "/pages2/class/questionBank?courseId=" +
  329. this.courseId +
  330. "&gradeId=" +
  331. this.gradeId +
  332. "&isFromVideo=1&id=" +
  333. id +
  334. "&goodsid=" +
  335. goodsId +
  336. "&moduleId=" +
  337. moduleId +
  338. "&chapterId=" +
  339. chapterId +
  340. "&orderGoodsId=" +
  341. this.orderGoodsId +
  342. "&type=1" + '&learning=' + item.learning,
  343. });
  344. this.studyLog()
  345. } else {
  346. uni.showToast({
  347. icon: "none",
  348. title: "该试卷只能答题" + item.answerNum + "次",
  349. });
  350. return;
  351. }
  352. } else {
  353. uni.showToast({
  354. icon: "none",
  355. title: "请按顺序学完视频课程再进行练习和测试",
  356. });
  357. }
  358. } else if (this.learningOrder == 2 && !item.rebuild) {
  359. let canLearn = this.list[index - 1].learning == 1;
  360. let rows = this.menuAllList
  361. let isStop = false;
  362. let newRows = [];
  363. for (let i = 0; i < rows.length; i++) {
  364. let moduleTrue = rows[i].moduleId == moduleId;
  365. let chapterTrue = rows[i].chapterId == chapterId;
  366. if (moduleTrue && chapterTrue) {
  367. isStop = true;
  368. if (rows[i].sectionType != 2) {
  369. //忽略直播
  370. newRows.push(rows[i]);
  371. }
  372. } else {
  373. if (!isStop) {
  374. if (rows[i].sectionType != 2) {
  375. //忽略直播
  376. newRows.push(rows[i]);
  377. }
  378. } else {
  379. break;
  380. }
  381. }
  382. }
  383. let isAllLearn = newRows.every((item) => {
  384. return item.studyStatus == 1;
  385. });
  386. if (isAllLearn) {
  387. //之前的都学完了
  388. // if(canLearn) { //视频的上一节学完
  389. let num = await this.bankRecordDoNum(item.typeId);
  390. //有次数限制
  391. if (item.answerNum - num > 0 && item.answerNum > 0) {
  392. // this.$set(this.list[index],'doNum',(item.doNum+1))
  393. // console.log(this.list[index]);
  394. uni.navigateTo({
  395. url:
  396. "/pages2/class/questionBank?courseId=" +
  397. this.courseId +
  398. "&gradeId=" +
  399. this.gradeId +
  400. "&isFromVideo=1&id=" +
  401. id +
  402. "&goodsid=" +
  403. goodsId +
  404. "&moduleId=" +
  405. moduleId +
  406. "&chapterId=" +
  407. chapterId +
  408. "&orderGoodsId=" +
  409. this.orderGoodsId +
  410. "&type=1" + '&learning=' + item.learning,
  411. });
  412. this.studyLog()
  413. //没有答题次数限制
  414. } else if (item.answerNum == 0) {
  415. uni.navigateTo({
  416. url:
  417. "/pages2/class/questionBank?courseId=" +
  418. this.courseId +
  419. "&gradeId=" +
  420. this.gradeId +
  421. "&isFromVideo=1&id=" +
  422. id +
  423. "&goodsid=" +
  424. goodsId +
  425. "&moduleId=" +
  426. moduleId +
  427. "&chapterId=" +
  428. chapterId +
  429. "&orderGoodsId=" +
  430. this.orderGoodsId +
  431. "&type=1" + '&learning=' + item.learning,
  432. });
  433. this.studyLog()
  434. } else {
  435. uni.showToast({
  436. icon: "none",
  437. title: "该试卷只能答题" + item.answerNum + "次",
  438. });
  439. return;
  440. }
  441. } else {
  442. uni.showToast({
  443. icon: "none",
  444. title: "请学完视频课程再进行练习和测试",
  445. });
  446. }
  447. } else {
  448. let num = await this.bankRecordDoNum(item.typeId);
  449. //有次数限制
  450. if (item.answerNum - item.doNum > 0 && item.answerNum > 0) {
  451. // this.$set(this.list[index],'doNum',(item.doNum+1))
  452. // console.log(this.list[index]);
  453. uni.navigateTo({
  454. url:
  455. "/pages2/class/questionBank?courseId=" +
  456. this.courseId +
  457. "&gradeId=" +
  458. this.gradeId +
  459. "&isFromVideo=1&id=" +
  460. id +
  461. "&goodsid=" +
  462. goodsId +
  463. "&moduleId=" +
  464. moduleId +
  465. "&chapterId=" +
  466. chapterId +
  467. "&orderGoodsId=" +
  468. this.orderGoodsId +
  469. "&type=1" + '&learning=' + item.learning,
  470. });
  471. this.studyLog()
  472. //没有答题次数限制
  473. } else if (item.answerNum == 0) {
  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" + '&learning=' + item.learning,
  491. });
  492. this.studyLog()
  493. } else {
  494. uni.showToast({
  495. icon: "none",
  496. title: "该试卷只能答题" + item.answerNum + "次",
  497. });
  498. return;
  499. }
  500. }
  501. },
  502. bankRecordDoNum(examId) {
  503. return new Promise((resolve) => {
  504. this.$api
  505. .bankRecordDoNum({
  506. goodsId: this.goodsId,
  507. gradeId: this.gradeId,
  508. chapterId: this.menuItem.id,
  509. courseId: this.courseId,
  510. moduleId: 0,
  511. examId: examId,
  512. })
  513. .then((res) => {
  514. resolve(res.data.data);
  515. });
  516. });
  517. },
  518. async openChapter(item) {
  519. console.log('---zhang',this.menuItem, this.down, item.courseId, item.moduleId);
  520. this.down = !this.down;
  521. if (!this.down && this.list.length == 0) {
  522. // console.log(item.id, 69);
  523. //获取章下面所有节试卷列表-course/sectionExamList
  524. await this.$api.reSectionExamList({
  525. chapterId: item.chapterId || item.menuId,
  526. courseId: item.courseId,
  527. gradeId: item.gradeId
  528. }).then((res) => {
  529. if (res.data.code == 200) {
  530. this.sectionExam = res.data.data || []
  531. }
  532. })
  533. if (this.isBuy) {
  534. let moduleId = item.moduleId ? item.moduleId : 0;
  535. let chapterId = item.chapterId || item.id
  536. if (this.isRebuild) {
  537. this.getReSectionList(chapterId, item.courseId, moduleId);
  538. } else {
  539. this.getBuySectionList(chapterId, item.courseId, moduleId);
  540. // this.getMenuExamList(item.id,item.courseId,moduleId)
  541. }
  542. } else {
  543. this.getSectionList(chapterId);
  544. }
  545. }
  546. },
  547. getMenuExamList(chapterId, courseId, moduleId) {
  548. let self = this;
  549. this.$api
  550. .menuExamList({
  551. chapterId: chapterId,
  552. courseId: courseId,
  553. moduleId: moduleId,
  554. })
  555. .then((res) => {
  556. if (res.data.code == 200) {
  557. self.examList = res.data.rows;
  558. }
  559. });
  560. },
  561. getSectionList(chapterId) {
  562. let self = this;
  563. // url: '/app/common/course/sectionList/'+data,
  564. this.$api.sectionList(chapterId).then((res) => {
  565. if (res.data.code == 200) {
  566. for (let i = 0; i < res.data.data.length; i++) {
  567. let item = res.data.data[i];
  568. item.id = item.sectionId;
  569. item.menuType = 3;
  570. //判断是否试听
  571. item.tryListen = false;
  572. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  573. item.tryListen = true;
  574. }
  575. }
  576. let newArr = res.data.data.filter((item) => {
  577. return item.type != 2;
  578. });
  579. this.canLearn = newArr.every((item) => {
  580. if (item.learning == 1) {
  581. return true;
  582. } else {
  583. return false;
  584. }
  585. });
  586. self.list = res.data.data;
  587. }
  588. });
  589. },
  590. getReSectionList(chapterId, courseId, moduleId) {
  591. let self = this;
  592. this.$api
  593. .reSectionList({
  594. chapterId: chapterId,
  595. gradeId: this.gradeId,
  596. courseId: courseId,
  597. rebuild: 1,
  598. moduleId: moduleId,
  599. })
  600. .then((res) => {
  601. if (res.data.code == 200) {
  602. for (let i = 0; i < res.data.data.length; i++) {
  603. let item = res.data.data[i];
  604. item.id = item.sectionId;
  605. item.menuType = 3;
  606. //判断是否试听
  607. item.tryListen = false;
  608. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  609. item.tryListen = true;
  610. }
  611. }
  612. let newArr = res.data.data.filter((item) => {
  613. return item.type != 2;
  614. });
  615. this.canLearn = newArr.every((item) => {
  616. if (item.learning == 1) {
  617. return true;
  618. } else {
  619. return false;
  620. }
  621. });
  622. self.list = res.data.data;
  623. }
  624. });
  625. },
  626. getBuySectionList(chapterId, courseId, moduleId) {
  627. let self = this;
  628. // /course/sectionList
  629. this.$api
  630. .reSectionList({
  631. chapterId: chapterId,
  632. gradeId: this.gradeId,
  633. courseId: courseId,
  634. moduleId: moduleId,
  635. })
  636. .then((res) => {
  637. if (res.data.code == 200) {
  638. for (let i = 0; i < res.data.data.length; i++) {
  639. let item = res.data.data[i];
  640. item.id = item.sectionId;
  641. item.menuType = 3;
  642. //判断是否试听
  643. item.tryListen = false;
  644. if (self.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  645. item.tryListen = true;
  646. }
  647. }
  648. let newArr = res.data.data.filter((item) => {
  649. return item.type != 2;
  650. });
  651. this.canLearn = newArr.every((item) => {
  652. if (item.learning == 1) {
  653. return true;
  654. } else {
  655. return false;
  656. }
  657. });
  658. self.list = res.data.data;
  659. console.log('=======节列表==', this.list);
  660. }
  661. });
  662. },
  663. },
  664. computed: { ...mapGetters(["goodsAuditionConfigIdList", "chapterOpen"]) },
  665. };
  666. </script>
  667. <style lang="scss" scoped>
  668. .tagRe {
  669. width: 80rpx;
  670. height: 28rpx;
  671. background: #ff3b30;
  672. border-radius: 8rpx;
  673. font-size: 20rpx;
  674. color: #ffffff;
  675. text-align: center;
  676. }
  677. .tagGreen {
  678. width: 80rpx;
  679. height: 28rpx;
  680. background: #34c759;
  681. border-radius: 8rpx;
  682. font-size: 20rpx;
  683. color: #ffffff;
  684. text-align: center;
  685. }
  686. .eTag {
  687. width: 64rpx;
  688. height: 36rpx;
  689. text-align: center;
  690. line-height: 36rpx;
  691. font-size: 20rpx;
  692. background: #007aff;
  693. border-radius: 8rpx;
  694. color: #ffffff;
  695. }
  696. .examBox {
  697. display: flex;
  698. align-items: center;
  699. justify-content: space-between;
  700. }
  701. .exam {
  702. font-size: 30rpx;
  703. display: flex;
  704. align-items: center;
  705. margin: 20rpx 0;
  706. }
  707. .icon_up {
  708. width: 24rpx;
  709. height: 24rpx;
  710. }
  711. .title {
  712. // margin-bottom: 30rpx;
  713. height: 78rpx;
  714. display: flex;
  715. align-items: center;
  716. border-bottom: 1rpx solid #EEEEEE;
  717. .menu_name {
  718. font-size: 24rpx;
  719. font-family: PingFang SC;
  720. font-weight: bold;
  721. color: #333;
  722. white-space: nowrap;
  723. overflow: hidden;
  724. text-overflow: ellipsis;
  725. margin-left: 8rpx;
  726. }
  727. }
  728. </style>