index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  1. <template>
  2. <div id="">
  3. <table-list
  4. :tableSets="tableSet"
  5. :tableData="tableData"
  6. :navText="navText"
  7. :loading="loading"
  8. >
  9. <template slot="btn" slot-scope="props">
  10. <el-button type="text" @click="msgInfo(props.scope.row)"
  11. >课程内容详情</el-button
  12. ><el-button
  13. type="text"
  14. @click="exportBtn(props.scope.row)"
  15. style="margin-left: 0px"
  16. >导出课程结构</el-button
  17. >
  18. </template>
  19. </table-list>
  20. <pagination
  21. :total="total"
  22. :pageSize="formData.pageSize"
  23. :currentPage="formData.pageNum"
  24. @handleSizeChange="handleSizeChange"
  25. @handleCurrentChange="handleCurrentChange"
  26. />
  27. <el-dialog
  28. :visible.sync="dialogVisible"
  29. width="1300px"
  30. :show-close="false"
  31. :close-on-click-modal="false"
  32. >
  33. <div slot="title" class="hearders">
  34. <div class="leftTitle">{{ goodsBoxName }}</div>
  35. <div class="rightBoxs">
  36. <img src="@/assets/images/Close@2x.png" alt="" @click="close" />
  37. </div>
  38. </div>
  39. <div class="dis_flexs">
  40. <div class="leftBoxs">
  41. <span v-if="!activeId" style="font-size: 30px"
  42. >请打开目录详情,点击播放您需要观看的视频内容。</span
  43. >
  44. <div v-show="vid" id="player"></div>
  45. <div v-show="vidzb" id="playerzb"></div>
  46. </div>
  47. <div class="rightBoxslist">
  48. <div v-for="(item, index) in courseList" :key="index" class="bg_ls">
  49. <div
  50. class="jus_sty"
  51. :style="
  52. item.checked
  53. ? 'border-bottom: 1px dotted #666;margin-bottom:6px;'
  54. : ''
  55. "
  56. >
  57. <div style="font-size: 12px">{{ item.courseName }}</div>
  58. <div class="line_h" @click="getCourseInfos(item, index)">
  59. {{ item.checked ? "—" : "+" }}
  60. </div>
  61. </div>
  62. <template v-if="item.checked">
  63. <div v-for="(items, indexs) in item.children" :key="indexs">
  64. <div
  65. class="firstSty"
  66. @click="getSecouredInfos(items, index, indexs)"
  67. >
  68. <div class="typeIcon" v-if="items.type === 3">
  69. {{ getTypeName(items.sectionType) }}
  70. </div>
  71. <i
  72. v-if="items.type !== 3"
  73. :class="
  74. items.checked
  75. ? 'el-icon-caret-bottom'
  76. : 'el-icon-caret-right'
  77. "
  78. ></i>
  79. <span :style="activeId === items.onlyId ? 'color:red;' : ''">
  80. {{ items.menuName }}
  81. </span>
  82. <span v-if="items.type === 3" class="itemsty">{{
  83. $methodsTools.secondToDate(items.durationTime, false)
  84. }}</span>
  85. </div>
  86. <template v-if="items.checked">
  87. <div
  88. v-for="(its, ids) in items.children"
  89. :key="ids"
  90. style="padding-left: 14px"
  91. >
  92. <div
  93. class="firstSty"
  94. @click="getTemsInfo(its, index, indexs, ids)"
  95. >
  96. <div class="typeIcon" v-if="its.type === 3">
  97. {{ getTypeName(its.sectionType) }}
  98. </div>
  99. <i
  100. v-if="its.type !== 3"
  101. :class="
  102. its.checked
  103. ? 'el-icon-caret-bottom'
  104. : 'el-icon-caret-right'
  105. "
  106. ></i>
  107. <span
  108. :style="activeId === its.onlyId ? 'color:red;' : ''"
  109. >
  110. {{ its.menuName }}
  111. </span>
  112. <span v-if="its.type === 3" class="itemsty">{{
  113. $methodsTools.secondToDate(its.durationTime, false)
  114. }}</span>
  115. </div>
  116. <template v-if="its.checked">
  117. <div
  118. v-for="(itschild, ids) in its.children"
  119. :key="ids"
  120. style="padding-left: 14px"
  121. @click="getTemsInfo(itschild)"
  122. >
  123. <div class="firstSty">
  124. <div class="typeIcon">
  125. {{ getTypeName(itschild.sectionType) }}
  126. </div>
  127. <span
  128. :style="
  129. activeId === itschild.onlyId ? 'color:red;' : ''
  130. "
  131. >
  132. {{ itschild.menuName }}
  133. </span>
  134. <span class="itemsty">{{
  135. $methodsTools.secondToDate(
  136. itschild.durationTime,
  137. false
  138. )
  139. }}</span>
  140. </div>
  141. </div>
  142. </template>
  143. </div>
  144. </template>
  145. </div>
  146. </template>
  147. </div>
  148. </div>
  149. </div>
  150. <span slot="footer" class="dialog-footer">
  151. <el-button @click="close">取 消</el-button>
  152. </span>
  153. </el-dialog>
  154. </div>
  155. </template>
  156. <script>
  157. import tableList from "@/components/tableList";
  158. import pagination from "@/components/pagination";
  159. export default {
  160. name: "",
  161. components: { tableList, pagination },
  162. data() {
  163. return {
  164. loading: false, //当前表单加载是否加载动画
  165. navText: {
  166. title: "二建-课程查询列表",
  167. index: 0,
  168. ch: "条",
  169. num: false,
  170. changeWidth: "150px",
  171. border: true,
  172. choice: true,
  173. addHide: true,
  174. backFatherBtn: {
  175. status: false,
  176. title: "未定义",
  177. },
  178. },
  179. formData: {
  180. status: 1,
  181. pageSize: 10,
  182. pageNum: 1,
  183. commitPeriodStatus: 1,
  184. },
  185. // 表单
  186. tableSet: [
  187. {
  188. label: "教育类型",
  189. prop: "educationName",
  190. hidden: true,
  191. },
  192. {
  193. label: "业务层次",
  194. prop1: "projectName",
  195. prop2: "businessName",
  196. hidden: true,
  197. scope: "InfoMore",
  198. },
  199. {
  200. label: "商品编码",
  201. prop: "code",
  202. hidden: false,
  203. },
  204. {
  205. label: "商品名称",
  206. prop: "goodsName",
  207. hidden: true,
  208. },
  209. {
  210. label: "商品状态",
  211. prop: "status",
  212. hidden: false,
  213. scope: "hasTime",
  214. },
  215. {
  216. label: "学时",
  217. prop: "classHours",
  218. hidden: true,
  219. },
  220. {
  221. label: "官方审核备注说明",
  222. prop: "commitPeriodRemark",
  223. hidden: true,
  224. },
  225. {
  226. label: "学习服务期",
  227. prop1: "serviceTimeType",
  228. prop2: "serviceTimeNum",
  229. prop3: "studyStartTime",
  230. prop4: "studyEndTime",
  231. scope: "studentServicePeriod",
  232. hidden: false,
  233. },
  234. ],
  235. tableData: [], //表单数据
  236. total: 0, //一共多少条
  237. dialogVisible: false,
  238. courseList: [], //详情列表
  239. activeId: "", //当前选中ID
  240. vodPlayerJs: "https://player.polyv.net/script/player.js",
  241. vid: "",
  242. playerJs:
  243. "https://player.polyv.net/resp/live-h5-player/latest/liveplayer.min.js",
  244. uidzb: "egsxlptzdq",
  245. vidzb: "",
  246. goodsId: "",
  247. goodsBoxName: "",
  248. };
  249. },
  250. mounted() {
  251. this.$api
  252. .coursebusinessqueryFullId({
  253. educationName: "继续教育",
  254. projectName: "建造师",
  255. businessName: "二级",
  256. })
  257. .then((res) => {
  258. this.formData.educationId = res.data.educationId;
  259. this.formData.projectId = res.data.projectId;
  260. this.formData.businessId = res.data.businessId;
  261. this.search();
  262. });
  263. },
  264. methods: {
  265. getTypeName(type) {
  266. let ast = "";
  267. switch (type) {
  268. case 1:
  269. ast = "录播";
  270. break;
  271. case 2:
  272. ast = "直播";
  273. break;
  274. case 3:
  275. ast = "回放";
  276. break;
  277. default:
  278. break;
  279. }
  280. return ast;
  281. },
  282. /**
  283. * 导出商品的课程结构
  284. */
  285. exportBtn(item) {
  286. this.$api
  287. .inquireGradegradeexportGoodsMenuExcel({ goodsId: item.goodsId })
  288. .then((res) => {
  289. this.$methodsTools.exportData(res.msg);
  290. });
  291. },
  292. /**
  293. * 关闭详情触发事件
  294. */
  295. close() {
  296. this.dialogVisible = false;
  297. this.clears();
  298. },
  299. search(int) {
  300. this.loading = true;
  301. if (int === 1) {
  302. this.formData.pageNum = 1;
  303. }
  304. var data = JSON.parse(JSON.stringify(this.formData));
  305. this.$api
  306. .inquireGoods(data)
  307. .then((res) => {
  308. this.tableData = res.rows;
  309. this.total = res.total;
  310. this.navText.index = res.total;
  311. })
  312. .finally(() => {
  313. this.loading = false;
  314. });
  315. },
  316. /**
  317. * 点击详情
  318. */
  319. msgInfo(option) {
  320. this.goodsBoxName = option.goodsName;
  321. this.$api.obtainCourseSgoodsId(option.goodsId).then(async (res) => {
  322. // if (res.rows.length) {
  323. if (!res.rows.length) {
  324. this.dialogVisible = true;
  325. } else {
  326. res.rows.forEach((item, index) => {
  327. item.checked = false;
  328. });
  329. this.courseList = res.rows;
  330. await this.autoGetCourseInfos(res.rows[0], 0);
  331. this.dialogVisible = true;
  332. }
  333. // } else {
  334. // this.$message.warning("该商品暂无课程");
  335. // return;
  336. // }
  337. });
  338. },
  339. /**
  340. * 自动播放第一个视频
  341. */
  342. autoGetCourseInfos(option, int) {
  343. return new Promise((resolve, reject) => {
  344. this.$api
  345. .inquireCoursemenuListS({ courseId: option.courseId })
  346. .then((res) => {
  347. res.rows.forEach((item) => {
  348. if (item.type !== 3) {
  349. item.checked = false;
  350. }
  351. if (item.type === 3) {
  352. item.onlyId = `${option.courseId}-0-0-${item.menuId}`;
  353. }
  354. });
  355. this.$set(this.courseList[int], "children", res.rows);
  356. this.$set(this.courseList[int], "checked", true);
  357. if (this.courseList[0].children.length) {
  358. switch (this.courseList[0].children[0].type) {
  359. case 1:
  360. this.$api
  361. .inquireCourseListmodulechapter(
  362. this.courseList[0].children[0].menuId
  363. )
  364. .then((resz) => {
  365. resz.data.forEach((item) => {
  366. if (item.type !== 3) {
  367. item.checked = false;
  368. item.type = 2;
  369. item.courseId =
  370. this.courseList[0].children[0].courseId;
  371. item.menuName = item.name;
  372. }
  373. });
  374. this.$set(
  375. this.courseList[int].children[0],
  376. "children",
  377. resz.data
  378. );
  379. this.$set(
  380. this.courseList[int].children[0],
  381. "checked",
  382. true
  383. );
  384. if (this.courseList[int].children[0].children.length) {
  385. this.$api
  386. .inquireCoursechaptersectionlist(
  387. this.courseList[0].children[0].children[0].chapterId
  388. )
  389. .then((result) => {
  390. result.data.forEach((item) => {
  391. item.type = 3;
  392. item.menuName = item.name;
  393. item.onlyId = `${this.courseList[0].children[0].children[0].courseId}-${this.courseList[0].children[0].children[0].moduleId}-${this.courseList[0].children[0].children[0].chapterId}-${item.sectionId}`;
  394. });
  395. this.$set(
  396. this.courseList[int].children[0].children[0],
  397. "children",
  398. result.data
  399. );
  400. this.$set(
  401. this.courseList[int].children[0].children[0],
  402. "checked",
  403. true
  404. );
  405. if (
  406. this.courseList[int].children[0].children[0]
  407. .children.length
  408. ) {
  409. this.activeId =
  410. this.courseList[0].children[0].children[0].children[0].onlyId;
  411. this.initVideo(
  412. this.courseList[0].children[0].children[0]
  413. .children[0]
  414. );
  415. }
  416. });
  417. }
  418. });
  419. break;
  420. case 2:
  421. this.$api
  422. .inquireCoursechaptersectionlist(
  423. this.courseList[0].children[0].menuId
  424. )
  425. .then((result) => {
  426. result.data.forEach((item) => {
  427. item.type = 3;
  428. item.menuName = item.name;
  429. item.onlyId = `${this.courseList[0].children[0].courseId}-0-${this.courseList[0].children[0].menuId}-${item.sectionId}`;
  430. });
  431. this.$set(
  432. this.courseList[int].children[0],
  433. "children",
  434. result.data
  435. );
  436. this.$set(
  437. this.courseList[int].children[0],
  438. "checked",
  439. true
  440. );
  441. if (this.courseList[0].children[0].children.length) {
  442. this.activeId =
  443. this.courseList[0].children[0].children[0].onlyId;
  444. this.initVideo(
  445. this.courseList[0].children[0].children[0]
  446. );
  447. }
  448. });
  449. break;
  450. case 3:
  451. this.activeId = this.courseList[0].children[0].onlyId;
  452. this.initVideo(this.courseList[0].children[0]);
  453. break;
  454. default:
  455. break;
  456. }
  457. }
  458. resolve();
  459. });
  460. });
  461. },
  462. /**
  463. * 点击课程
  464. */
  465. getCourseInfos(option, int) {
  466. if (option.checked) {
  467. this.$set(this.courseList[int], "checked", false);
  468. } else {
  469. if (option.children) {
  470. this.$set(this.courseList[int], "checked", true);
  471. return;
  472. }
  473. this.$api
  474. .inquireCoursemenuListS({ courseId: option.courseId })
  475. .then((res) => {
  476. res.rows.forEach((item) => {
  477. if (item.type !== 3) {
  478. item.checked = false;
  479. }
  480. if (item.type === 3) {
  481. item.onlyId = `${option.courseId}-0-0-${item.menuId}`;
  482. }
  483. });
  484. this.$set(this.courseList[int], "children", res.rows);
  485. this.$set(this.courseList[int], "checked", true);
  486. });
  487. }
  488. },
  489. getSecouredInfos(option, int, ints) {
  490. if (option.type === 3) {
  491. //触发节函数
  492. this.activeId = option.onlyId;
  493. this.initVideo(option);
  494. } else {
  495. if (option.checked) {
  496. this.$set(this.courseList[int].children[ints], "checked", false);
  497. } else {
  498. if (option.children) {
  499. this.$set(this.courseList[int].children[ints], "checked", true);
  500. return;
  501. }
  502. if (option.type === 1) {
  503. this.$api
  504. .inquireCourseListmodulechapter(option.menuId)
  505. .then((res) => {
  506. res.data.forEach((item) => {
  507. if (item.type !== 3) {
  508. item.checked = false;
  509. item.type = 2;
  510. item.courseId = option.courseId;
  511. item.menuName = item.name;
  512. }
  513. });
  514. this.$set(
  515. this.courseList[int].children[ints],
  516. "children",
  517. res.data
  518. );
  519. this.$set(this.courseList[int].children[ints], "checked", true);
  520. });
  521. }
  522. if (option.type === 2) {
  523. this.$api
  524. .inquireCoursechaptersectionlist(option.menuId)
  525. .then((res) => {
  526. res.data.forEach((item) => {
  527. item.type = 3;
  528. item.menuName = item.name;
  529. item.onlyId = `${option.courseId}-0-${option.menuId}-${item.sectionId}`;
  530. });
  531. this.$set(
  532. this.courseList[int].children[ints],
  533. "children",
  534. res.data
  535. );
  536. this.$set(this.courseList[int].children[ints], "checked", true);
  537. });
  538. }
  539. }
  540. }
  541. },
  542. getTemsInfo(option, int, ints, ids) {
  543. if (option.type === 3) {
  544. //触发节函数
  545. this.initVideo(option);
  546. } else {
  547. if (option.checked) {
  548. this.$set(
  549. this.courseList[int].children[ints].children[ids],
  550. "checked",
  551. false
  552. );
  553. } else {
  554. if (option.children) {
  555. this.$set(
  556. this.courseList[int].children[ints].children[ids],
  557. "checked",
  558. true
  559. );
  560. return;
  561. }
  562. if (option.type === 2) {
  563. this.$api
  564. .inquireCoursechaptersectionlist(option.chapterId)
  565. .then((res) => {
  566. res.data.forEach((item) => {
  567. item.type = 3;
  568. item.menuName = item.name;
  569. item.onlyId = `${option.courseId}-${option.moduleId}-${option.chapterId}-${item.sectionId}`;
  570. });
  571. this.$set(
  572. this.courseList[int].children[ints].children[ids],
  573. "children",
  574. res.data
  575. );
  576. this.$set(
  577. this.courseList[int].children[ints].children[ids],
  578. "checked",
  579. true
  580. );
  581. });
  582. }
  583. }
  584. }
  585. },
  586. handleSizeChange(v) {
  587. this.formData.pageSize = v;
  588. this.formData.pageNum = 1;
  589. this.search();
  590. },
  591. handleCurrentChange(v) {
  592. this.formData.pageNum = v;
  593. this.search();
  594. },
  595. async initVideo(option) {
  596. await this.clears();
  597. this.activeId = option.onlyId;
  598. if (option.sectionType === 2) {
  599. this.vidzb = option.liveUrl;
  600. this.loadPlayerScriptzb(this.loadPlayerzb);
  601. } else {
  602. this.vid = option.recordingUrl;
  603. this.loadPlayerScript(this.loadPlayer);
  604. }
  605. },
  606. loadPlayerScript(callback) {
  607. if (!window.polyvPlayer) {
  608. const myScript = document.createElement("script");
  609. myScript.setAttribute("src", this.vodPlayerJs);
  610. myScript.onload = callback;
  611. document.body.appendChild(myScript);
  612. } else {
  613. callback();
  614. }
  615. },
  616. loadPlayer() {
  617. var self = this;
  618. const polyvPlayer = window.polyvPlayer;
  619. self.player = polyvPlayer({
  620. wrap: "#player",
  621. width: 932,
  622. height: 627,
  623. vid: self.vid,
  624. teaser_show: 0,
  625. playsafe: function (vid, next) {
  626. self.$api.obtainpolyvvideosign(vid).then((res) => {
  627. next(res.data);
  628. });
  629. },
  630. });
  631. },
  632. /**
  633. * @param {String} 关闭视频窗口-销毁实例
  634. */
  635. clears() {
  636. return new Promise((resolve, reject) => {
  637. this.activeId = "";
  638. this.vid = "";
  639. this.vidzb = "";
  640. if (this.player) {
  641. this.player.destroy();
  642. }
  643. if (this.playerzb) {
  644. this.playerzb.destroy();
  645. }
  646. resolve();
  647. });
  648. },
  649. /**
  650. * @param {String} 直播预览
  651. */
  652. loadPlayerScriptzb(callback) {
  653. if (!window.polyvLivePlayer) {
  654. const myScript = document.createElement("script");
  655. myScript.setAttribute("src", this.playerJs);
  656. myScript.onload = callback;
  657. document.body.appendChild(myScript);
  658. } else {
  659. callback();
  660. }
  661. },
  662. loadPlayerzb() {
  663. const polyvLivePlayer = window.polyvLivePlayer;
  664. this.playerzb = polyvLivePlayer({
  665. wrap: "#playerzb",
  666. width: 932,
  667. height: 627,
  668. uid: this.uidzb,
  669. vid: this.vidzb,
  670. });
  671. },
  672. },
  673. };
  674. </script>
  675. <style lang="less" scoped>
  676. /deep/.el-button {
  677. border-radius: 8px;
  678. }
  679. /deep/.el-dialog {
  680. border-radius: 8px;
  681. .el-dialog__header {
  682. padding: 0;
  683. .hearders {
  684. height: 40px;
  685. display: flex;
  686. align-items: center;
  687. justify-content: space-between;
  688. padding: 0px 18px 0px 20px;
  689. border-bottom: 1px solid #e2e2e2;
  690. .leftTitle {
  691. font-size: 14px;
  692. font-weight: bold;
  693. color: #2f4378;
  694. }
  695. .rightBoxs {
  696. display: flex;
  697. align-items: center;
  698. img {
  699. width: 14px;
  700. height: 14px;
  701. margin-left: 13px;
  702. cursor: pointer;
  703. }
  704. }
  705. }
  706. }
  707. .el-dialog__footer {
  708. padding: 0;
  709. .dialog-footer {
  710. padding: 0px 40px;
  711. height: 70px;
  712. border-top: 1px solid #e2e2e2;
  713. display: flex;
  714. align-items: center;
  715. justify-content: flex-end;
  716. }
  717. }
  718. }
  719. .imgBox {
  720. width: 100%;
  721. // height: 210px;
  722. border: 1px solid #e2e2e2;
  723. border-radius: 8px;
  724. padding: 8px 8px 3px;
  725. display: flex;
  726. flex-direction: column;
  727. align-items: center;
  728. .imgLabel {
  729. flex: 1;
  730. width: 100%;
  731. border: 1px dotted #e2e2e2;
  732. color: #999;
  733. font-size: 14px;
  734. cursor: pointer;
  735. border-radius: 8px;
  736. .msPhoto {
  737. display: flex;
  738. justify-content: center;
  739. align-items: center;
  740. max-width: 100%;
  741. max-height: 270px;
  742. img {
  743. max-width: 100%;
  744. max-height: 270px;
  745. }
  746. }
  747. .imgbbx {
  748. display: flex;
  749. flex-direction: column;
  750. align-items: center;
  751. justify-content: center;
  752. width: 100%;
  753. height: 100%;
  754. i {
  755. font-weight: bold;
  756. margin: 14px 0;
  757. font-size: 24px;
  758. }
  759. }
  760. }
  761. p {
  762. margin: 5px 0px;
  763. }
  764. }
  765. .dis_flexs {
  766. display: flex;
  767. }
  768. .leftBoxs {
  769. width: 932px;
  770. height: 627px;
  771. border: 1px solid #eee;
  772. display: flex;
  773. align-items: center;
  774. justify-content: center;
  775. }
  776. .rightBoxslist {
  777. flex: 1;
  778. max-height: 627px;
  779. overflow-y: auto;
  780. margin-left: 10px;
  781. }
  782. .bg_ls {
  783. background-color: #eee;
  784. padding: 8px;
  785. margin-bottom: 10px;
  786. }
  787. .jus_sty {
  788. display: flex;
  789. justify-content: space-between;
  790. padding: 6px 0px;
  791. }
  792. .line_h {
  793. font-size: 14px;
  794. height: 18px;
  795. width: 18px;
  796. font-weight: bold;
  797. color: #000;
  798. background-color: rgb(153, 153, 153);
  799. line-height: 18px;
  800. text-align: center;
  801. cursor: pointer;
  802. }
  803. .firstSty {
  804. font-size: 13px;
  805. margin-bottom: 6px;
  806. cursor: pointer;
  807. &:hover {
  808. color: red;
  809. }
  810. }
  811. .typeIcon {
  812. display: inline-block;
  813. border-radius: 8px;
  814. border: 1px solid #000;
  815. padding: 0px 4px;
  816. color: #000 !important;
  817. font-size: 12px;
  818. }
  819. .itemsty {
  820. font-size: 13px;
  821. color: purple;
  822. margin-left: 14px;
  823. }
  824. </style>