courseView.vue 21 KB

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