courseView.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. <template>
  2. <div class="container GCLS-BOOK-Container" v-if="showContent">
  3. <template v-if="!isPhone">
  4. <div v-if="!type" class="header-box">
  5. <Header />
  6. <Nav nav-value="书籍预览" />
  7. </div>
  8. <div v-else class="header-box">
  9. <div class="bookname">
  10. <i
  11. style="cursor: pointer; margin-right: 5px"
  12. class="el-icon-arrow-left"
  13. @click="back"
  14. ></i>
  15. {{ name }}
  16. </div>
  17. </div>
  18. </template>
  19. <div
  20. class="content"
  21. id="content-scroll"
  22. :class="[type ? 'content-top' : '', isPhone ? 'content-phone' : '']"
  23. >
  24. <div
  25. id="content-tree"
  26. :class="[
  27. fullTree ? 'content-tree-full' : 'content-tree',
  28. isPhone ? 'content-tree-phone' : '',
  29. showMenu ? '' : 'content-tree-unfold',
  30. ]"
  31. >
  32. <template v-if="isPhone">
  33. <div style="text-align: center; color: black; padding: 10px 0">
  34. <i
  35. @click="toggleMenu"
  36. :class="[showMenu ? 'el-icon-s-fold' : 'el-icon-s-unfold']"
  37. ></i>
  38. </div>
  39. </template>
  40. <TreeView
  41. ref="treeView"
  42. :book-id="bookId"
  43. :change-id="changeId"
  44. :changeTreeData="changeTreeData"
  45. :currentTreeID="chapterId"
  46. />
  47. <div class="moveBtn-nnpe" v-move></div>
  48. </div>
  49. <div
  50. id="data-screen"
  51. :class="[
  52. 'inner',
  53. fullscreen ? 'inner-full' : '',
  54. isPhone ? 'inner-phone' : '',
  55. ]"
  56. v-loading="loading"
  57. >
  58. <el-image
  59. :src="pictureUrl"
  60. fit="scale-down"
  61. class="img_url"
  62. v-if="!chapterId && pictureUrl"
  63. >
  64. <div slot="placeholder" class="image-slot">
  65. <img src="../assets/common/icon-imgloading.png" />
  66. </div>
  67. </el-image>
  68. <!-- 显示答案按钮 -->
  69. <!-- <a v-if="chapterId" :class="['answerShow',isAnswerShow?'answerShowTrue':'']" @click="handleAnswerShow">显示答案</a> -->
  70. <!-- <a class="edit-btn" @click="handleEdit">编辑</a> -->
  71. <div v-if="chapterId" class="title-box">
  72. <img
  73. v-if="!treeFlag"
  74. src="../assets/common/icon-view-back.png"
  75. @click="treeShow"
  76. />
  77. <img
  78. v-if="!treeFlag"
  79. src="../assets/common/icon-treelist.png"
  80. @click="chooseCourseware"
  81. />
  82. <!-- <h2 class="title">{{ chapterName }}</h2> -->
  83. <!-- <el-switch
  84. v-if="!treeFlag"
  85. v-model="switchvalue"
  86. active-color="#FF9900"
  87. active-text
  88. inactive-text="生词模式"
  89. /> -->
  90. </div>
  91. <template v-if="category == 'OC' || !category">
  92. <Preview
  93. v-if="chapterId && context"
  94. ref="previewAnswer"
  95. :context="context"
  96. :bookAnswerContent="bookAnswerContent"
  97. bookclientwidth="900"
  98. :TaskModel="TaskModel"
  99. @handleBookUserAnswer="handleBookUserAnswer"
  100. />
  101. </template>
  102. <template v-if="category == 'NPC'">
  103. <Booknpc
  104. v-if="chapterId && context"
  105. ref="previewAnswerNPC"
  106. :context="context"
  107. :currentTreeID="chapterId"
  108. :FatherTreeData="FatherTreeData"
  109. :change-id="changeId"
  110. :themeColor="themeColor"
  111. :isShowTitle="true"
  112. :TaskModel="TaskModel"
  113. :isShowSave="false"
  114. @finishTaskMaterial="finishTaskMaterial"
  115. :bookAnswerContent="bookAnswerContent"
  116. :isAnswerItemShow="isAnswerItemShow"
  117. />
  118. </template>
  119. <template v-if="category == 'NNPE'">
  120. <Booknnpe
  121. v-if="chapterId && context"
  122. ref="previewAnswerNNPE"
  123. :context="context"
  124. :currentTreeID="chapterId"
  125. :FatherTreeData="FatherTreeData"
  126. :change-id="changeId"
  127. :themeColor="themeColor"
  128. :isShowTitle="true"
  129. :isAnswerItemShow="true"
  130. :TaskModel="TaskModel"
  131. :isShowSave="true"
  132. @finishTaskMaterial="finishTaskMaterial"
  133. :bookAnswerContent="bookAnswerContent"
  134. />
  135. </template>
  136. <template v-if="category == 'RLC'">
  137. <Bookrlc
  138. v-if="chapterId && context"
  139. ref="previewAnswerRLC"
  140. :context="context"
  141. :currentTreeID="chapterId"
  142. :FatherTreeData="FatherTreeData"
  143. :change-id="changeId"
  144. :themeColor="themeColor"
  145. :isShowTitle="true"
  146. :bookFontSize="bookFontSize"
  147. :isAnswerItemShow="isAnswerItemShow"
  148. :TaskModel="TaskModel"
  149. :isShowSave="false"
  150. @finishTaskMaterial="finishTaskMaterial"
  151. :bookAnswerContent="bookAnswerContent"
  152. />
  153. </template>
  154. </div>
  155. </div>
  156. <!-- <Preview :context="context" :queIndex="queIndex" /> -->
  157. <a
  158. v-if="chapterId && treeFlag && !isPhone"
  159. class="screen-full"
  160. @click="fullScreen()"
  161. />
  162. </div>
  163. </template>
  164. <script>
  165. import Header from "@/components/inputModules/common/Header";
  166. import Nav from "@/components/inputModules/common/Nav";
  167. import TreeView from "@/components/inputModules/common/TreeView";
  168. import { getContent, getLogin } from "@/api/ajax";
  169. import Cookies from "js-cookie";
  170. // import Preview from '@/componentsAnswer/PreviewAnswer.vue'
  171. import Preview from "@/components/Preview";
  172. import { getToken } from "../utils/auth";
  173. export default {
  174. name: "CourseView",
  175. directives: {
  176. move(el, bindings) {
  177. el.onmousedown = function (e) {
  178. var init = e.clientX;
  179. var parent = document.getElementById("content-tree");
  180. var initWidth = parent.offsetWidth;
  181. document.onmousemove = function (e) {
  182. var end = e.clientX;
  183. var newWidth = end - init + initWidth;
  184. if (newWidth >= 340 && newWidth <= 680)
  185. parent.style.width = newWidth + "px";
  186. };
  187. document.onmouseup = function () {
  188. document.onmousemove = document.onmouseup = null;
  189. };
  190. };
  191. },
  192. },
  193. components: {
  194. Header,
  195. Nav,
  196. TreeView,
  197. Preview,
  198. },
  199. data() {
  200. return {
  201. bookId: "",
  202. chapterId: "",
  203. chapterName: "",
  204. fullscreen: false, // 控制全屏
  205. fullTree: false, // 全屏模式下树是否显示
  206. context: null,
  207. question: null, // 选择的模板题型
  208. queIndex: "",
  209. treeFlag: true, // tree是否显示
  210. switchvalue: true, // 生词模式
  211. isAnswerShow: false, // 是否显示答案
  212. bookAnswerContent: "",
  213. TaskModel: "",
  214. category: "",
  215. FatherTreeData: null,
  216. themeColor: "",
  217. type: "",
  218. name: "",
  219. loading: false,
  220. bookFontSize: "",
  221. showContent: false,
  222. bookName: [
  223. {
  224. name: "新实用汉语课本1",
  225. id: "002-20211006-10-NHVOMDLDRY",
  226. },
  227. {
  228. name: "发展汉语初级综合(Ⅰ)",
  229. id: "002-20211007-06-4DGL2ZRIB5",
  230. },
  231. {
  232. name: "HSK标准教程1",
  233. id: "002-20211007-14-UNYIWU8EKW",
  234. },
  235. {
  236. name: "新实用汉语",
  237. id: "003-20210908-10-1ZWNGSASZL",
  238. },
  239. {
  240. name: "新航标职业英语 综合英语(基础级)学生用书1(修订版)",
  241. id: "002-20211029-14-9VGMXLV2NU",
  242. },
  243. {
  244. name: "新航标职业英语 综合英语(提高级)学生用书1 (第3版)",
  245. id: "002-20211011-10-GOLXUZST4G",
  246. },
  247. {
  248. name: "新航标英语 汽车英语",
  249. id: "002-20211222-15-O7WVMR4XHK",
  250. },
  251. {
  252. name: "新航标职业英语 英语视听说教程(入门级)1",
  253. id: "001-20211222-15-LXK64LQZST",
  254. },
  255. {
  256. name: "新航标职业英语 综合英语(提高级)学生用书2(第3版)",
  257. id: "001-20220118-14-EZVO52PYXF",
  258. },
  259. {
  260. name: "新航标职业英语 综合英语(基础级)学生用书2(修订版)",
  261. id: "002-20220208-09-FDKUJJSLI8",
  262. },
  263. {
  264. name: "轻松学中文. 课本 .第1册",
  265. id: "002-20220312-11-HK93JKDAGR",
  266. },
  267. {
  268. name: "轻松学中文. 课本. 第2册",
  269. id: "001-20220312-11-WU8XCRQMDB",
  270. },
  271. {
  272. name: "轻松学中文 . 练习册 . 第1册",
  273. id: "001-20220429-18-ZDIKBFQ9DP",
  274. },
  275. {
  276. name: "轻松学中文 . 练习册 . 第 2 册",
  277. id: "002-20220429-18-KIOM0VEXLY",
  278. },
  279. ],
  280. isAnswerItemShow: false,
  281. pictureUrl: "",
  282. isPhone: false, // 是否是移动端打开
  283. showMenu: true, //是否展开菜单
  284. };
  285. },
  286. created() {
  287. console.log("2024-04-23");
  288. const regExp = /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i;
  289. this.isPhone = regExp.test(navigator.userAgent);
  290. const _this = this;
  291. if (
  292. _this.$route.query.encryption &&
  293. _this.$route.query.encryption != "undefined" &&
  294. _this.$route.query.type
  295. ) {
  296. if (
  297. _this.$route.query.encryption.substring(
  298. _this.$route.query.encryption.length - 8
  299. ) *
  300. 1 <
  301. 20240712
  302. ) {
  303. _this.$message({
  304. message: "链接已停用",
  305. type: "warning",
  306. });
  307. return false;
  308. }
  309. getLogin("login_control-CheckValidDateEncryptionString", {
  310. encryption_string: _this.$route.query.encryption,
  311. })
  312. .then((res) => {
  313. if (res.is_check_pass == "true") {
  314. _this.bookId = this.$route.query.bookId;
  315. _this.type = this.$route.query.type;
  316. const MethodName = "book-book_manager-GetBook";
  317. const data = {
  318. id: _this.bookId,
  319. };
  320. getContent(MethodName, data).then((res) => {
  321. this.showContent = true;
  322. _this.name = res.name;
  323. });
  324. } else {
  325. _this.$message({
  326. message: "链接已失效",
  327. type: "warning",
  328. });
  329. }
  330. })
  331. .catch(() => {
  332. _this.$message({
  333. message: "链接已失效",
  334. type: "warning",
  335. });
  336. });
  337. } else if (_this.$route.query.showCourse) {
  338. _this.bookId = this.$route.query.bookId;
  339. this.showContent = true;
  340. } else {
  341. _this.$message({
  342. message: "链接已失效",
  343. type: "warning",
  344. });
  345. }
  346. let userInfor = JSON.parse(getToken());
  347. if (
  348. userInfor &&
  349. (userInfor.user_type == "TEACHER" || userInfor.user_type == "INNER")
  350. ) {
  351. _this.isAnswerItemShow = true;
  352. } else {
  353. _this.isAnswerItemShow = false;
  354. }
  355. },
  356. mounted() {},
  357. methods: {
  358. toggleMenu() {
  359. this.showMenu = !this.showMenu;
  360. },
  361. back() {
  362. this.$router.go(-1);
  363. },
  364. changeTreeData(val) {
  365. const _this = this;
  366. this.FatherTreeData = JSON.parse(JSON.stringify(val));
  367. let nodes = this.FatherTreeData;
  368. for (let i = 0; i < nodes.length; i++) {
  369. if (nodes[i].is_courseware == "true") {
  370. _this.changeId(nodes[i].id, "");
  371. return false;
  372. } else {
  373. if (nodes[i].children) {
  374. let nodesC = nodes[i].children;
  375. for (let j = 0; j < nodesC.length; j++) {
  376. if (nodesC[j].is_courseware == "true") {
  377. _this.changeId(nodesC[j].id, "");
  378. return false;
  379. } else {
  380. if (nodesC[j].children) {
  381. let nodesCs = nodesC[j].children;
  382. for (let l = 0; j < nodesCs.length; l++) {
  383. if (nodesCs[l].is_courseware == "true") {
  384. _this.changeId(nodesCs[l].id, "");
  385. return false;
  386. }
  387. }
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. },
  395. changeId(id, name) {
  396. const _this = this;
  397. _this.chapterId = id;
  398. _this.chapterName = name;
  399. _this.isAnswerShow = false;
  400. _this.onGetData();
  401. if (!_this.treeFlag) {
  402. _this.fullTree = false;
  403. document.getElementById("content-tree").style.display = "none";
  404. }
  405. if (document.getElementById("content-scroll")) {
  406. document.getElementById("content-scroll").scrollTop = 0;
  407. }
  408. },
  409. // 点击全屏展示 隐藏tree
  410. fullScreen() {
  411. this.treeFlag = false;
  412. this.fullscreen = true;
  413. document.getElementById("content-tree").style.display = "none";
  414. },
  415. treeShow() {
  416. this.treeFlag = true;
  417. this.fullTree = false;
  418. this.fullscreen = false;
  419. document.getElementById("content-tree").style.display = "block";
  420. },
  421. // 获取预览数据
  422. onGetData() {
  423. this.loading = true;
  424. const _this = this;
  425. const MethodName = "book-courseware_manager-GetCoursewareContent_View";
  426. const data = {
  427. id: _this.chapterId,
  428. };
  429. getContent(MethodName, data).then((res) => {
  430. this.category = res.category;
  431. this.themeColor = res.book_theme_color;
  432. this.bookFontSize = res.book_font_size;
  433. if (res.content) {
  434. const _this = this;
  435. if (!this.category || this.category == "OC") {
  436. _this.context = {
  437. id: _this.chapterId,
  438. ui_type: JSON.parse(res.content).question
  439. ? JSON.parse(res.content).question.ui_type
  440. : "",
  441. sort_number: 1,
  442. content: JSON.parse(res.content),
  443. };
  444. } else {
  445. _this.context = JSON.parse(res.content);
  446. }
  447. } else {
  448. const _this = this;
  449. _this.context = null;
  450. }
  451. this.loading = false;
  452. });
  453. },
  454. // 跳转编辑页面
  455. handleEdit() {
  456. const index = this.$refs.treeView.handleParentIndex().split("###");
  457. if (index.length > 1) {
  458. Cookies.set("bookIndex", index[0]);
  459. Cookies.set("bookLevel", index[1]);
  460. Cookies.set("bookNodename", index[2]);
  461. }
  462. this.$router.push("/input?bookId=" + this.bookId);
  463. },
  464. // 显示或隐藏答案
  465. handleAnswerShow() {
  466. this.isAnswerShow = !this.isAnswerShow;
  467. this.$refs.previewAnswer.bookAnswerShow(this.isAnswerShow);
  468. },
  469. // 得到用户答题答案
  470. handleBookUserAnswer(data) {
  471. console.log(data);
  472. },
  473. // 悬浮树隐藏显示
  474. chooseCourseware() {
  475. this.fullTree = !this.fullTree;
  476. if (this.fullTree) {
  477. document.getElementById("content-tree").style.display = "block";
  478. } else {
  479. document.getElementById("content-tree").style.display = "none";
  480. }
  481. },
  482. finishTaskMaterial(data, duration) {
  483. console.log("保存答案:");
  484. console.log(data);
  485. console.log(duration);
  486. },
  487. },
  488. };
  489. </script>
  490. <style lang="scss" scoped>
  491. .header-box {
  492. position: fixed;
  493. width: 100%;
  494. top: 0;
  495. left: 0;
  496. z-index: 999;
  497. }
  498. .container {
  499. width: 100%;
  500. height: auto;
  501. .bookname {
  502. width: 100%;
  503. height: 60px;
  504. display: flex;
  505. align-items: center;
  506. box-sizing: border-box;
  507. padding: 0 46px;
  508. background: #f3f7fa;
  509. position: relative;
  510. z-index: 999;
  511. }
  512. .content {
  513. width: 100%;
  514. display: flex;
  515. justify-content: flex-start;
  516. align-items: flex-start;
  517. height: 100vh;
  518. overflow: auto;
  519. padding-top: 124px;
  520. &-top {
  521. padding-top: 60px;
  522. .title-box {
  523. top: 66px !important;
  524. }
  525. .content-tree-full {
  526. top: 100px !important;
  527. }
  528. }
  529. &-phone {
  530. padding-top: 0;
  531. }
  532. &-tree {
  533. width: 340px;
  534. height: 85vh;
  535. overflow: auto;
  536. padding: 20px 0px;
  537. border-right: 1px solid #d9d9d9;
  538. background: #fff;
  539. position: fixed;
  540. left: 0;
  541. z-index: 2;
  542. &-unfold {
  543. width: 20px;
  544. height: 50px;
  545. border: none;
  546. overflow: hidden;
  547. }
  548. }
  549. .content-tree-full {
  550. position: fixed !important;
  551. top: 170px;
  552. left: 152px;
  553. max-height: 588px;
  554. overflow: auto;
  555. z-index: 1000;
  556. background: #fff;
  557. box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
  558. border-radius: 4px;
  559. }
  560. #content-tree {
  561. // position: relative;
  562. }
  563. .moveBtn-nnpe {
  564. position: absolute;
  565. height: 100%;
  566. width: 10px;
  567. right: 0;
  568. top: 0;
  569. cursor: col-resize;
  570. }
  571. .inner {
  572. // border-left: 1px solid #d9d9d9;
  573. width: 1000px;
  574. margin: 0 auto;
  575. flex: 1;
  576. margin-left: 340px;
  577. box-sizing: border-box;
  578. padding: 20px;
  579. position: relative;
  580. background: #fff;
  581. &.inner-full {
  582. margin-left: 0;
  583. }
  584. &-phone {
  585. margin-left: 0;
  586. }
  587. .title-box {
  588. display: flex;
  589. align-items: center;
  590. margin-bottom: 12px;
  591. padding-right: 160px;
  592. position: fixed;
  593. top: 130px;
  594. left: 64px;
  595. z-index: 1;
  596. > img {
  597. width: 40px;
  598. margin-right: 16px;
  599. cursor: pointer;
  600. }
  601. }
  602. .title {
  603. font-size: 24px;
  604. margin-bottom: 20px;
  605. line-height: 40px;
  606. margin: 0;
  607. }
  608. .has-module {
  609. display: flex;
  610. justify-content: flex-start;
  611. align-items: flex-start;
  612. &-tree {
  613. width: 340px;
  614. height: 100%;
  615. overflow: auto;
  616. padding: 20px 0px;
  617. border-right: 1px solid #d9d9d9;
  618. }
  619. .inner {
  620. // border-left: 1px solid #d9d9d9;
  621. width: 1000px;
  622. flex: 1;
  623. margin: 0 auto;
  624. box-sizing: border-box;
  625. padding: 20px;
  626. position: relative;
  627. background: #fff;
  628. .title-box {
  629. display: flex;
  630. align-items: center;
  631. margin-bottom: 12px;
  632. padding-right: 160px;
  633. position: relative;
  634. > img {
  635. width: 40px;
  636. margin-right: 16px;
  637. cursor: pointer;
  638. }
  639. }
  640. .title {
  641. font-size: 24px;
  642. margin-bottom: 20px;
  643. line-height: 40px;
  644. margin: 0;
  645. }
  646. .has-module {
  647. display: flex;
  648. justify-content: flex-start;
  649. align-items: flex-start;
  650. }
  651. .edit-btn {
  652. display: inline-block;
  653. font-size: 14px;
  654. background: #ff9900;
  655. float: right;
  656. line-height: 36px;
  657. color: #fff;
  658. width: 60px;
  659. text-align: center;
  660. border-radius: 4px;
  661. }
  662. }
  663. }
  664. }
  665. .nav-list {
  666. width: 200px;
  667. height: 40px;
  668. background: rgba(49, 212, 134, 0.2);
  669. border-radius: 240px;
  670. display: flex;
  671. justify-content: flex-start;
  672. align-items: center;
  673. padding: 0;
  674. margin: 0;
  675. margin-bottom: 10px;
  676. list-style: none;
  677. > li {
  678. height: 40px;
  679. width: 100px;
  680. text-align: center;
  681. font-style: normal;
  682. font-weight: bold;
  683. font-size: 14px;
  684. line-height: 40px;
  685. color: #19b068;
  686. cursor: pointer;
  687. &.active {
  688. background: #19b068;
  689. border-radius: 240px;
  690. color: #ffffff;
  691. }
  692. }
  693. }
  694. }
  695. .answerShow {
  696. position: absolute;
  697. right: 20px;
  698. top: 20px;
  699. width: 112px;
  700. height: 40px;
  701. background: #ffffff url("../assets/common/icon-eye-close.png") 16px center
  702. no-repeat;
  703. background-size: 16px;
  704. border: 1px solid rgba(44, 44, 44, 0.15);
  705. box-sizing: border-box;
  706. border-radius: 4px;
  707. font-size: 14px;
  708. line-height: 150%;
  709. color: #000000;
  710. padding: 9px 16px 9px 36px;
  711. cursor: pointer;
  712. z-index: 2;
  713. &.answerShowTrue {
  714. background: #f5f5f5 url("../assets/common/icon-eye-open.png") 16px center
  715. no-repeat;
  716. background-size: 16px;
  717. }
  718. }
  719. }
  720. .img_url {
  721. width: 1000px;
  722. height: 700px;
  723. }
  724. </style>
  725. <style lang="scss">
  726. .GCLS-BOOK-Container {
  727. .screen-full {
  728. position: fixed;
  729. right: 30px;
  730. bottom: 30px;
  731. width: 48px;
  732. height: 48px;
  733. background: rgba(0, 0, 0, 0.4) url("../assets/common/icon-screenFull.png")
  734. center no-repeat;
  735. background-size: 32px;
  736. }
  737. }
  738. .title-box {
  739. .el-switch {
  740. position: absolute;
  741. top: 0;
  742. right: 0px;
  743. border: 1px solid rgba(44, 44, 44, 0.15);
  744. border-radius: 40px;
  745. height: 40px;
  746. padding: 6px 6px 6px 16px;
  747. }
  748. .el-switch__label.is-active {
  749. color: #000000;
  750. font-size: 16px;
  751. }
  752. }
  753. </style>