catalogue.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <!-- <div> -->
  3. <div class="container">
  4. <div class="con_header">
  5. <div v-for="(item, index) in subList" :key="index" class="con_item"
  6. :class="{nactive: subIndex == index}" @click="toChangeCou(item, index)">{{ item.subjectName }}</div>
  7. </div>
  8. <div class="course_info">
  9. <div
  10. class="video_box"
  11. :style="{ backgroundImage: `url(${$tools.splitImgHost(goodsDetail.coverUrl,false)})`,}"
  12. >
  13. <div v-show="vid" id="player"></div>
  14. <div v-show="vidzb" id="playerzb"></div>
  15. </div>
  16. <div class="right-box">
  17. <div class="right-box__header">
  18. <div class="tabs">
  19. <el-tabs v-model="courseTabIndex">
  20. <el-tab-pane
  21. :name="tab.name"
  22. v-for="(tab, index) in menuTab"
  23. :key="index"
  24. >
  25. <div slot="label">
  26. <span class="label">{{ tab.label }}</span>
  27. </div>
  28. <!-- 章节目录 -->
  29. <template v-if="tab.name == '1'">
  30. <!-- <catalogue :goodsId='goodsId'></catalogue> -->
  31. <div class="mulu_body">
  32. <div class="left-box">
  33. <div class="left-box__body">
  34. <div
  35. class="course-list-item"
  36. v-for="(course, index) in s_courseList"
  37. :key="index"
  38. >
  39. <div
  40. class="course-list-item_title"
  41. @click="openCourse(course)"
  42. >
  43. <i
  44. :class="{
  45. 'el-icon-caret-right': !course.showList,
  46. 'el-icon-caret-bottom': course.showList,
  47. }"
  48. ></i>
  49. {{ course.courseName }}
  50. </div>
  51. <template v-if="course.showList">
  52. <div
  53. class="item"
  54. v-for="(item, index) in course.list"
  55. :key="index"
  56. >
  57. <template v-if="item.type == 1">
  58. <div
  59. class="item__title"
  60. @click="openModule(item)"
  61. >
  62. <i
  63. :class="{
  64. 'el-icon-caret-right': !item.showList,
  65. 'el-icon-caret-bottom': item.showList,
  66. }"
  67. ></i>
  68. {{ item.name }}
  69. </div>
  70. <div class="item__content">
  71. <div
  72. class="bank-chapter"
  73. v-if="item.showList"
  74. >
  75. <div
  76. class="bank-chapter__item"
  77. v-for="(
  78. chapter, chapterIndex
  79. ) in item.list"
  80. :key="chapterIndex"
  81. >
  82. <div
  83. class="bank-chapter__item__text"
  84. @click="openChapter(chapter)"
  85. >
  86. <i
  87. :class="{
  88. 'el-icon-caret-right':
  89. !chapter.showList,
  90. 'el-icon-caret-bottom':
  91. chapter.showList,
  92. }"
  93. ></i
  94. >{{ chapter.name }}
  95. </div>
  96. <div
  97. class="bank-section"
  98. v-if="chapter.showList"
  99. >
  100. <div
  101. class="bank-section__item"
  102. v-for="(
  103. section, sectionIndex
  104. ) in chapter.list"
  105. :key="sectionIndex"
  106. >
  107. <div
  108. class="bank-section__item__text"
  109. >
  110. {{ section.name }}
  111. </div>
  112. <div
  113. v-if="section.tryListen"
  114. @click="
  115. toDo(section, item.courseId)
  116. "
  117. class="btn"
  118. >
  119. 试看
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </template>
  127. <template v-if="item.type == 2">
  128. <div class="item__content">
  129. <div class="bank-chapter">
  130. <div class="bank-chapter__item">
  131. <div
  132. class="bank-chapter__item__text"
  133. @click="openChapter(item)"
  134. >
  135. <i
  136. :class="{
  137. 'el-icon-caret-right':
  138. !item.showList,
  139. 'el-icon-caret-bottom':
  140. item.showList,
  141. }"
  142. ></i
  143. >{{ item.name }}
  144. </div>
  145. <div
  146. class="bank-section"
  147. v-if="item.showList"
  148. >
  149. <div
  150. class="bank-section__item"
  151. v-for="(
  152. section, sectionIndex
  153. ) in item.list"
  154. :key="sectionIndex"
  155. >
  156. <div
  157. class="bank-section__item__text"
  158. >
  159. {{ section.name }}
  160. </div>
  161. <div
  162. v-if="section.tryListen"
  163. @click="
  164. toDo(section, item.courseId)
  165. "
  166. class="btn"
  167. >
  168. 试看
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </template>
  176. <template v-if="item.type == 3">
  177. <div class="item__content">
  178. <div class="bank-section">
  179. <div class="bank-section__item">
  180. <div class="bank-section__item__text">
  181. {{ item.name }}
  182. </div>
  183. <div
  184. v-if="item.tryListen"
  185. @click="toDo(item, item.courseId)"
  186. class="btn"
  187. >
  188. 试看
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </template>
  194. </div>
  195. </template>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="down_bottons">
  201. <div class="ask_manage" @click="toAskManage()">咨询管理</div>
  202. <div class="ask_manage ask_buy" @click="togoBuy()">立即购买</div>
  203. <div v-if="showAsk" class="apply_ask">
  204. <div class="ask_titles">报名咨询</div>
  205. <div class="ask_time">周一至周日 9:00-18:00</div>
  206. <div class="phones">
  207. <img class="icon_phone" src="@/assets/topic/ask_phone.png" alt="" />
  208. <span>020-87085983</span>
  209. </div>
  210. <div class="phones">
  211. <img class="icon_phone" src="@/assets/topic/ask_phone.png" alt="" />
  212. <span>020-87085982</span>
  213. </div>
  214. <div class="phones">
  215. <img class="icon_phone" src="@/assets/topic/ask_phone.png" alt="" />
  216. <span>13631379636</span>
  217. </div>
  218. </div>
  219. </div>
  220. </template>
  221. </el-tab-pane>
  222. </el-tabs>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <!-- 弹窗 -->
  228. <buy-dialog :buyModal.sync="buyModal" :topicId="topicId" :subjectType="1" :type="1"></buy-dialog>
  229. </div>
  230. <!-- </div> -->
  231. </template>
  232. <script>
  233. import buyDialog from './buyDialog.vue'
  234. export default {
  235. name: 'boxs',
  236. components: { buyDialog },
  237. props: {
  238. goodsId: {
  239. type: [String, Number],
  240. default: ''
  241. },
  242. topicId: {
  243. type: [String, Number],
  244. default: ''
  245. }
  246. },
  247. data() {
  248. return {
  249. vid: "",
  250. vidzb: "",
  251. player: "",
  252. playerzb: "",
  253. activeId: "", //当前选中ID
  254. vodPlayerJs: "https://player.polyv.net/script/player.js",
  255. playerJs:
  256. "https://player.polyv.net/resp/live-h5-player/latest/liveplayer.min.js",
  257. uidzb: "egsxlptzdq",
  258. menuTab: [
  259. {
  260. name: "1",
  261. label: "章节目录",
  262. }
  263. ],
  264. courseTabIndex: "1",
  265. param: {
  266. pageNum: 1,
  267. pageSize: 100,
  268. total: 0,
  269. },
  270. needOpen: true, //是否需要一进来展开第一章节
  271. menuIndex: [], //需要展开的章节索引值
  272. courseList: [],
  273. s_courseList: [],
  274. goodsAuditionConfigIdList: [],
  275. listenConfigList: [],
  276. courserIndex: 0,
  277. goodsDetail: {},
  278. goodsExamConfig: [],
  279. subList: [],
  280. subIndex: 0,
  281. playCourseId: 0, // 播放课程id
  282. showAsk: false,
  283. buyModal: false,
  284. }
  285. },
  286. watch: {
  287. async goodsId(newV, oldV) {
  288. if (newV) {
  289. console.log('监听', this.topicId)
  290. await this.getGoodsDetail()
  291. this.goodsCourseList()
  292. }
  293. }
  294. },
  295. methods: {
  296. toAskManage() {
  297. this.showAsk = !this.showAsk
  298. },
  299. toChangeCou(item, index) {
  300. this.subIndex = index
  301. this.s_courseList = this.courseList.filter(e => e.subjectId == item.subjectId)
  302. },
  303. togoBuy() {
  304. this.buyModal = true
  305. },
  306. /**
  307. * 获取商品详情
  308. */
  309. getGoodsDetail() {
  310. this.$request.commonGoodsDetail(this.goodsId).then((res) => {
  311. if (res.data.pcDetailHtml) {
  312. res.data.pcDetailHtml =
  313. res.data.pcDetailHtml &&
  314. res.data.pcDetailHtml.replace(
  315. /<img/gi,
  316. '<img style="max-width:100%;height:100%;display:block;margin:0px auto;"'
  317. );
  318. }
  319. this.goodsDetail = res.data
  320. this.goodsExamConfig = JSON.parse(res.data.goodsExamConfig)
  321. if (this.goodsDetail.goodsAuditionConfig) {
  322. this.listenConfigList = JSON.parse(this.goodsDetail.goodsAuditionConfig);
  323. for (var itemChild of this.listenConfigList) {
  324. this.goodsAuditionConfigIdList.push(itemChild.sectionId); //存储试听节ID
  325. }
  326. console.log(
  327. this.goodsAuditionConfigIdList,
  328. "this.goodsAuditionConfigIdList"
  329. );
  330. }
  331. });
  332. },
  333. /**
  334. * 获取课程章节列表,/app/common/goods/course/list/' + data,
  335. */
  336. goodsCourseList() {
  337. this.$request.goodsCourseList(this.goodsId).then(async (res) => {
  338. if (res.code == 200) {
  339. res.rows.forEach((item) => {
  340. item.showList = false
  341. item.list = []
  342. })
  343. this.courseList = res.rows || []
  344. // 筛选科目名称
  345. let ids = []
  346. const newArr = []
  347. this.courseList.forEach(item => {
  348. if (ids.indexOf(item.subjectId) == -1) {
  349. ids.push(item.subjectId)
  350. newArr.push(item)
  351. }
  352. })
  353. this.subList = [...newArr]
  354. this.subList = this.subList.filter(item => item.subjectName)
  355. console.log('this.subList', this.subList)
  356. if (this.needOpen) {
  357. for (let i = 0; i < this.courseList.length; i++) {
  358. let menuIndexOrFalse = await this.getCourseMenus(
  359. this.courseList[i]
  360. )
  361. // console.log('111menuIndexOrFalse', menuIndexOrFalse)
  362. if (menuIndexOrFalse !== false) {
  363. this.menuIndex = [i, menuIndexOrFalse]
  364. this.openCourse(this.courseList[i])
  365. break
  366. }
  367. }
  368. this.s_courseList = this.courseList.filter(item => item.subjectId == this.subList[0].subjectId)
  369. }
  370. console.log('s_courseList', this.s_courseList);
  371. }
  372. })
  373. },
  374. // 获取课程目录,/app/common/course/menuList
  375. getCourseMenus(item) {
  376. return new Promise((resolve) => {
  377. this.$request.menuList({ courseId: item.courseId }).then((res) => {
  378. if (res.code == 200) {
  379. for (let i = 0; i < res.rows.length; i++) {
  380. // 1模块 2章 3节
  381. if (res.rows[i].type == 1 || res.rows[i].type == 2) {
  382. resolve(i);
  383. break;
  384. }
  385. }
  386. }
  387. });
  388. });
  389. },
  390. /**
  391. * 点击课程大目录
  392. */
  393. openCourse(course) {
  394. course.showList = !course.showList;
  395. if (!course.list.length) {
  396. this.getMenuList(course);
  397. }
  398. },
  399. /**
  400. * 获取模块列表
  401. */
  402. getMenuList(item) {
  403. this.$request.menuList({ courseId: item.courseId }).then((res) => {
  404. for (let i = 0; i < res.rows.length; i++) {
  405. let item = res.rows[i];
  406. item.showList = false;
  407. item.id = item.menuId;
  408. item.name = item.menuName;
  409. if (item.type == 3) {
  410. //判断是否试听
  411. item.tryListen = false;
  412. if (this.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  413. item.tryListen = true;
  414. }
  415. } else {
  416. item.list = [];
  417. }
  418. }
  419. item.list = res.rows;
  420. if (this.needOpen) {
  421. if (item.list[this.menuIndex[1]].type == 1) {
  422. this.openModule(item.list[this.menuIndex[1]]);
  423. } else if (item.list[this.menuIndex[1]].type == 2) {
  424. this.needOpen = false;
  425. this.openChapter(item.list[this.menuIndex[1]]);
  426. }
  427. }
  428. });
  429. },
  430. /**
  431. * 展开模块卷
  432. */
  433. openModule(Module) {
  434. console.log('点击模块卷')
  435. this.$set(Module, "showList", !Module.showList);
  436. if (!Module.list.length) {
  437. this.getChapterList(Module);
  438. }
  439. },
  440. getChapterList(Module) {
  441. this.$request.chapterList(Module.id).then((res) => {
  442. for (let i = 0; i < res.data.length; i++) {
  443. let item = res.data[i];
  444. item.id = item.chapterId;
  445. item.showList = false;
  446. item.list = [];
  447. item.menuType = 2;
  448. }
  449. Module.list = res.data;
  450. if (this.needOpen) {
  451. this.needOpen = false;
  452. this.openChapter(Module.list[0]);
  453. }
  454. });
  455. },
  456. /**
  457. * 展开章卷
  458. */
  459. openChapter(chapter) {
  460. console.log('点开章卷')
  461. this.$set(chapter, "showList", !chapter.showList);
  462. if (!chapter.list.length) {
  463. this.getSectionList(chapter);
  464. }
  465. },
  466. getSectionList(chapter) {
  467. this.$request.sectionList(chapter.id).then((res) => {
  468. for (let i = 0; i < res.data.length; i++) {
  469. let item = res.data[i];
  470. item.id = item.sectionId;
  471. item.menuType = 3;
  472. //判断是否试听
  473. item.tryListen = false;
  474. if (this.goodsAuditionConfigIdList.indexOf(item.id) !== -1) {
  475. item.tryListen = true;
  476. }
  477. }
  478. chapter.list = res.data;
  479. });
  480. },
  481. /**
  482. * 试看
  483. */
  484. toDo(section, courseId) {
  485. console.log('section, courseId', section, courseId)
  486. this.playCourseId = courseId
  487. console.log(this.playCourseId, "playCourseId")
  488. this.initVideo(section)
  489. },
  490. async initVideo(option) {
  491. await this.clears();
  492. console.log('option:',option);
  493. this.sectionItem = option;
  494. if (option.sectionType === 2) {
  495. this.vidzb = option.liveUrl;
  496. this.loadPlayerScriptzb(this.loadPlayerzb);
  497. } else {
  498. this.vid = option.recordingUrl;
  499. this.loadPlayerScript(this.loadPlayer);
  500. }
  501. },
  502. /**
  503. * @param {String} 关闭视频窗口-销毁实例
  504. */
  505. clears() {
  506. return new Promise((resolve, reject) => {
  507. this.vid = "";
  508. this.vidzb = "";
  509. if (this.player) {
  510. this.player.destroy();
  511. }
  512. if (this.playerzb) {
  513. this.playerzb.destroy();
  514. }
  515. resolve();
  516. });
  517. },
  518. loadPlayerzb() {
  519. const polyvLivePlayer = window.polyvLivePlayer;
  520. this.playerzb = polyvLivePlayer({
  521. wrap: "#playerzb",
  522. width: 700,
  523. height: 528,
  524. uid: this.uidzb,
  525. vid: this.vidzb,
  526. });
  527. },
  528. loadPlayer() {
  529. const polyvPlayer = window.polyvPlayer;
  530. let auditionMinute = this.listenConfigList.find((item) => {
  531. if (item.sectionId == (this.sectionItem.sectionId || this.sectionItem.menuId) && item.courseId == this.playCourseId) {
  532. return true;
  533. }
  534. }).auditionMinute;
  535. // this.$request.obtainpolyvvideosign(this.vid).then((res) => {
  536. this.player = polyvPlayer({
  537. wrap: "#player",
  538. width: 700,
  539. height: 528,
  540. vid: this.vid,
  541. start: 0,
  542. end: auditionMinute,
  543. teaser_show: 0,
  544. // ts: res.data.ts,
  545. // sign: res.data.sign,
  546. playsafe: function (vid, next) {
  547. next();
  548. },
  549. });
  550. this.player.on("s2j_onPlayOver", () => {
  551. this.$confirm("试看结束,购买课程可学习全部", "提示", {
  552. closeOnClickModal: false,
  553. showCancelButton: false,
  554. closeOnPressEscape: false,
  555. distinguishCancelAndClose: false,
  556. showClose: false,
  557. }).then((res) => {
  558. // this.videoModalShow = false;
  559. });
  560. });
  561. // });
  562. },
  563. /**
  564. * @param {String} 直播预览
  565. */
  566. loadPlayerScriptzb(callback) {
  567. if (!window.polyvLivePlayer) {
  568. const myScript = document.createElement("script");
  569. myScript.setAttribute("src", this.playerJs);
  570. myScript.onload = callback;
  571. document.body.appendChild(myScript);
  572. } else {
  573. callback();
  574. }
  575. },
  576. loadPlayerScript(callback) {
  577. if (!window.polyvPlayer) {
  578. const myScript = document.createElement("script");
  579. myScript.setAttribute("src", this.vodPlayerJs);
  580. myScript.onload = callback;
  581. document.body.appendChild(myScript);
  582. } else {
  583. callback();
  584. }
  585. },
  586. }
  587. }
  588. </script>
  589. <style lang="scss" scoped>
  590. .container {
  591. width: 100%;
  592. display: flex;
  593. flex-direction: column;
  594. align-items: center;
  595. justify-items: center;
  596. }
  597. .con_header {
  598. width: 1113px;
  599. height: 44px;
  600. background: #3F4449;
  601. display: flex;
  602. @media screen and (max-width: 1370px){
  603. width: 900px;
  604. }
  605. .con_item {
  606. padding: 12px 20px;
  607. font-size: 14px;
  608. font-weight: 500;
  609. color: #FFFFFF;
  610. cursor: pointer;
  611. &.nactive {
  612. background: #3F8DFD;
  613. }
  614. }
  615. }
  616. .course_info {
  617. display: flex;
  618. align-items: center;
  619. justify-items: center;
  620. }
  621. .video_box {
  622. width: 709px;
  623. height: 484px;
  624. background-size: 100% 100%;
  625. @media screen and (max-width: 1370px){
  626. width: 497px;
  627. }
  628. .video {
  629. width: 100%;
  630. height: 100%;
  631. }
  632. }
  633. .right-box {
  634. width: 404px;
  635. height: 484px;
  636. background: #3f4449;
  637. border-radius: 0px;
  638. &__header {
  639. .tabs {
  640. /deep/.el-tabs__nav-wrap::after {
  641. background-color: #999;
  642. }
  643. /deep/ .el-tabs__header {
  644. margin: 0;
  645. }
  646. .label {
  647. color: #fff;
  648. height: 40px;
  649. line-height: 40px;
  650. padding: 0 20px;
  651. }
  652. }
  653. }
  654. }
  655. .mulu_body {
  656. width: 404px;
  657. height: 401px;
  658. background: #3f4449;
  659. border-radius: 0px;
  660. .left-box {
  661. width: 100%;
  662. height: 100%;
  663. overflow-y: auto;
  664. .course-list-item {
  665. padding: 16px;
  666. border-radius: 10px;
  667. .item {
  668. overflow: hidden;
  669. margin-top: 12px;
  670. &__title {
  671. padding: 10px 0;
  672. cursor: pointer;
  673. font-size: 14px;
  674. font-family: Microsoft YaHei;
  675. font-weight: bold;
  676. color: #fff;
  677. }
  678. &__content {
  679. .bank-chapter {
  680. margin-left: 4px;
  681. &__item {
  682. padding-top: 10px;
  683. padding-bottom: 10px;
  684. // border-bottom: 1px solid #eeeeee;
  685. font-size: 14px;
  686. color: #fff;
  687. &__text {
  688. cursor: pointer;
  689. flex: 1;
  690. }
  691. }
  692. }
  693. .bank-section {
  694. margin-left: 40px;
  695. &__item {
  696. padding-top: 10px;
  697. padding-bottom: 10px;
  698. // border-bottom: 1px solid #eeeeee;
  699. font-size: 14px;
  700. display: flex;
  701. color: #3f8dfd;
  702. &__text {
  703. flex: 1;
  704. }
  705. .btn {
  706. margin-right: 20px;
  707. width: 40px;
  708. height: 24px;
  709. border: 1px solid #ff3b30;
  710. border-radius: 8px;
  711. line-height: 22px;
  712. color: #ff3b30;
  713. text-align: center;
  714. cursor: pointer;
  715. }
  716. }
  717. }
  718. }
  719. }
  720. }
  721. .course-list-item_title {
  722. font-size: 16px;
  723. color: #fff;
  724. font-weight: bold;
  725. cursor: pointer;
  726. }
  727. }
  728. }
  729. .down_bottons {
  730. width: 404px;
  731. height: 44px;
  732. display: flex;
  733. position: relative;
  734. top: 0px;
  735. left: 0px;
  736. .ask_manage {
  737. width: 202px;
  738. height: 44px;
  739. background: #1B2632;
  740. font-size: 16px;
  741. font-weight: 500;
  742. color: #FFFFFF;
  743. line-height: 44px;
  744. text-align: center;
  745. cursor: pointer;
  746. }
  747. .ask_buy {
  748. background: #3F8DFD;
  749. }
  750. .apply_ask {
  751. width: 173px;
  752. height: 196px;
  753. background: #FFFFFF;
  754. border: 1px solid #CCCCCC;
  755. border-radius: 2px;
  756. padding: 20px;
  757. position: absolute;
  758. top: -213px;
  759. left: 17px;
  760. .ask_titles {
  761. font-size: 14px;
  762. font-weight: bold;
  763. color: #222222;
  764. }
  765. .ask_time {
  766. font-size: 12px;
  767. color: #999999;
  768. margin: 3px 0px 21px 0px;
  769. }
  770. .phones {
  771. margin-bottom: 21px;
  772. display: flex;
  773. align-items: center;
  774. .icon_phone {
  775. width: 16px;
  776. height: 16px;
  777. margin-right: 12px;
  778. }
  779. >span {
  780. font-size: 14px;
  781. color: #222222;
  782. }
  783. }
  784. &::after {
  785. content: '';
  786. width: 0;
  787. height: 0;
  788. border-top: 14px solid #fff;
  789. border-right: 12px solid transparent;
  790. border-left: 12px solid transparent;
  791. position: absolute;
  792. bottom: -10px;
  793. left: 72px;
  794. }
  795. }
  796. }
  797. </style>