courseView.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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 if (_this.$route.query.fromPage === "OBOC") {
  353. _this.bookId = this.$route.query.bookId;
  354. const MethodName = "book-book_manager-GetBook";
  355. const data = {
  356. id: _this.$route.query.bookId,
  357. };
  358. getContent(MethodName, data).then((res) => {
  359. this.showContent = true;
  360. _this.name = res.name;
  361. });
  362. } else {
  363. _this.$message({
  364. message: "链接已失效",
  365. type: "warning",
  366. });
  367. }
  368. let userInfor = JSON.parse(getToken());
  369. if (
  370. userInfor &&
  371. (userInfor.user_type == "TEACHER" || userInfor.user_type == "INNER")
  372. ) {
  373. _this.isAnswerItemShow = true;
  374. } else {
  375. _this.isAnswerItemShow = false;
  376. }
  377. },
  378. mounted() {},
  379. methods: {
  380. toggleMenu() {
  381. this.showMenu = !this.showMenu;
  382. },
  383. back() {
  384. this.$router.go(-1);
  385. },
  386. changeTreeData(val) {
  387. const _this = this;
  388. if (_this.$route.query.nodeId) {
  389. _this.changeId(_this.$route.query.nodeId, "");
  390. } else {
  391. this.FatherTreeData = JSON.parse(JSON.stringify(val));
  392. let nodes = this.FatherTreeData;
  393. for (let i = 0; i < nodes.length; i++) {
  394. if (nodes[i].is_courseware == "true") {
  395. _this.changeId(nodes[i].id, "");
  396. return false;
  397. } else {
  398. if (nodes[i].children) {
  399. let nodesC = nodes[i].children;
  400. for (let j = 0; j < nodesC.length; j++) {
  401. if (nodesC[j].is_courseware == "true") {
  402. _this.changeId(nodesC[j].id, "");
  403. return false;
  404. } else {
  405. if (nodesC[j].children) {
  406. let nodesCs = nodesC[j].children;
  407. for (let l = 0; j < nodesCs.length; l++) {
  408. if (nodesCs[l].is_courseware == "true") {
  409. _this.changeId(nodesCs[l].id, "");
  410. return false;
  411. }
  412. }
  413. }
  414. }
  415. }
  416. }
  417. }
  418. }
  419. }
  420. },
  421. changeId(id, name) {
  422. const _this = this;
  423. _this.chapterId = id;
  424. _this.chapterName = name;
  425. _this.isAnswerShow = false;
  426. _this.onGetData();
  427. if (!_this.treeFlag) {
  428. _this.fullTree = false;
  429. document.getElementById("content-tree").style.display = "none";
  430. }
  431. if (document.getElementById("content-scroll")) {
  432. document.getElementById("content-scroll").scrollTop = 0;
  433. }
  434. if (_this.isPhone) {
  435. _this.showMenu = false;
  436. }
  437. },
  438. // 点击全屏展示 隐藏tree
  439. fullScreen() {
  440. this.treeFlag = false;
  441. this.fullscreen = true;
  442. document.getElementById("content-tree").style.display = "none";
  443. },
  444. treeShow() {
  445. this.treeFlag = true;
  446. this.fullTree = false;
  447. this.fullscreen = false;
  448. document.getElementById("content-tree").style.display = "block";
  449. },
  450. // 获取预览数据
  451. onGetData() {
  452. this.loading = true;
  453. const _this = this;
  454. const MethodName = "book-courseware_manager-GetCoursewareContent_View";
  455. const data = {
  456. id: _this.chapterId,
  457. };
  458. getContent(MethodName, data).then((res) => {
  459. this.category = res.category;
  460. this.themeColor = res.book_theme_color;
  461. this.bookFontSize = res.book_font_size;
  462. if (res.content) {
  463. const _this = this;
  464. if (!this.category || this.category == "OC") {
  465. _this.context = {
  466. id: _this.chapterId,
  467. ui_type: JSON.parse(res.content).question
  468. ? JSON.parse(res.content).question.ui_type
  469. : "",
  470. sort_number: 1,
  471. content: JSON.parse(res.content),
  472. };
  473. } else {
  474. _this.context = JSON.parse(res.content);
  475. }
  476. } else {
  477. const _this = this;
  478. _this.context = null;
  479. }
  480. this.loading = false;
  481. });
  482. },
  483. // 跳转编辑页面
  484. handleEdit() {
  485. const index = this.$refs.treeView.handleParentIndex().split("###");
  486. if (index.length > 1) {
  487. Cookies.set("bookIndex", index[0]);
  488. Cookies.set("bookLevel", index[1]);
  489. Cookies.set("bookNodename", index[2]);
  490. }
  491. this.$router.push("/input?bookId=" + this.bookId);
  492. },
  493. // 显示或隐藏答案
  494. handleAnswerShow() {
  495. this.isAnswerShow = !this.isAnswerShow;
  496. this.$refs.previewAnswer.bookAnswerShow(this.isAnswerShow);
  497. },
  498. // 得到用户答题答案
  499. handleBookUserAnswer(data) {
  500. console.log(data);
  501. },
  502. // 悬浮树隐藏显示
  503. chooseCourseware() {
  504. this.fullTree = !this.fullTree;
  505. if (this.fullTree) {
  506. document.getElementById("content-tree").style.display = "block";
  507. } else {
  508. document.getElementById("content-tree").style.display = "none";
  509. }
  510. },
  511. finishTaskMaterial(data, duration) {
  512. console.log("保存答案:");
  513. console.log(data);
  514. console.log(duration);
  515. },
  516. },
  517. };
  518. </script>
  519. <style lang="scss" scoped>
  520. .header-box {
  521. position: fixed;
  522. width: 100%;
  523. top: 0;
  524. left: 0;
  525. z-index: 999;
  526. }
  527. .container {
  528. width: 100%;
  529. height: auto;
  530. .bookname {
  531. width: 100%;
  532. height: 60px;
  533. display: flex;
  534. align-items: center;
  535. box-sizing: border-box;
  536. padding: 0 46px;
  537. background: #f3f7fa;
  538. position: relative;
  539. z-index: 999;
  540. }
  541. .content {
  542. width: 100%;
  543. display: flex;
  544. justify-content: flex-start;
  545. align-items: flex-start;
  546. height: 100vh;
  547. overflow: auto;
  548. padding-top: 124px;
  549. &-top {
  550. padding-top: 60px;
  551. .title-box {
  552. top: 66px !important;
  553. }
  554. .content-tree-full {
  555. top: 100px !important;
  556. }
  557. }
  558. &-phone {
  559. padding-top: 0;
  560. }
  561. &-tree {
  562. width: 340px;
  563. height: 85vh;
  564. overflow: auto;
  565. padding: 20px 0px;
  566. border-right: 1px solid #d9d9d9;
  567. background: #fff;
  568. position: fixed;
  569. left: 0;
  570. z-index: 2;
  571. &-phone {
  572. width: 50%;
  573. height: 100%;
  574. }
  575. &-unfold {
  576. width: 40px;
  577. height: 40px;
  578. border: none;
  579. overflow: hidden;
  580. background: none;
  581. > div {
  582. text-align: left !important;
  583. }
  584. }
  585. }
  586. .content-tree-full {
  587. position: fixed !important;
  588. top: 170px;
  589. left: 152px;
  590. max-height: 588px;
  591. overflow: auto;
  592. z-index: 1000;
  593. background: #fff;
  594. box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
  595. border-radius: 4px;
  596. }
  597. #content-tree {
  598. // position: relative;
  599. }
  600. .moveBtn-nnpe {
  601. position: absolute;
  602. height: 100%;
  603. width: 10px;
  604. right: 0;
  605. top: 0;
  606. cursor: col-resize;
  607. }
  608. .inner {
  609. // border-left: 1px solid #d9d9d9;
  610. width: 1000px;
  611. margin: 0 auto;
  612. flex: 1;
  613. margin-left: 340px;
  614. box-sizing: border-box;
  615. padding: 20px;
  616. position: relative;
  617. background: #fff;
  618. &.inner-full {
  619. margin-left: 0;
  620. }
  621. &-phone {
  622. margin-left: 0;
  623. padding: 0;
  624. }
  625. .title-box {
  626. display: flex;
  627. align-items: center;
  628. margin-bottom: 12px;
  629. padding-right: 160px;
  630. position: fixed;
  631. top: 130px;
  632. left: 64px;
  633. z-index: 1;
  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. &-tree {
  651. width: 340px;
  652. height: 100%;
  653. overflow: auto;
  654. padding: 20px 0px;
  655. border-right: 1px solid #d9d9d9;
  656. }
  657. .inner {
  658. // border-left: 1px solid #d9d9d9;
  659. width: 1000px;
  660. flex: 1;
  661. margin: 0 auto;
  662. box-sizing: border-box;
  663. padding: 20px;
  664. position: relative;
  665. background: #fff;
  666. .title-box {
  667. display: flex;
  668. align-items: center;
  669. margin-bottom: 12px;
  670. padding-right: 160px;
  671. position: relative;
  672. > img {
  673. width: 40px;
  674. margin-right: 16px;
  675. cursor: pointer;
  676. }
  677. }
  678. .title {
  679. font-size: 24px;
  680. margin-bottom: 20px;
  681. line-height: 40px;
  682. margin: 0;
  683. }
  684. .has-module {
  685. display: flex;
  686. justify-content: flex-start;
  687. align-items: flex-start;
  688. }
  689. .edit-btn {
  690. display: inline-block;
  691. font-size: 14px;
  692. background: #ff9900;
  693. float: right;
  694. line-height: 36px;
  695. color: #fff;
  696. width: 60px;
  697. text-align: center;
  698. border-radius: 4px;
  699. }
  700. }
  701. }
  702. }
  703. .nav-list {
  704. width: 200px;
  705. height: 40px;
  706. background: rgba(49, 212, 134, 0.2);
  707. border-radius: 240px;
  708. display: flex;
  709. justify-content: flex-start;
  710. align-items: center;
  711. padding: 0;
  712. margin: 0;
  713. margin-bottom: 10px;
  714. list-style: none;
  715. > li {
  716. height: 40px;
  717. width: 100px;
  718. text-align: center;
  719. font-style: normal;
  720. font-weight: bold;
  721. font-size: 14px;
  722. line-height: 40px;
  723. color: #19b068;
  724. cursor: pointer;
  725. &.active {
  726. background: #19b068;
  727. border-radius: 240px;
  728. color: #ffffff;
  729. }
  730. }
  731. }
  732. }
  733. .answerShow {
  734. position: absolute;
  735. right: 20px;
  736. top: 20px;
  737. width: 112px;
  738. height: 40px;
  739. background: #ffffff url("../assets/common/icon-eye-close.png") 16px center
  740. no-repeat;
  741. background-size: 16px;
  742. border: 1px solid rgba(44, 44, 44, 0.15);
  743. box-sizing: border-box;
  744. border-radius: 4px;
  745. font-size: 14px;
  746. line-height: 150%;
  747. color: #000000;
  748. padding: 9px 16px 9px 36px;
  749. cursor: pointer;
  750. z-index: 2;
  751. &.answerShowTrue {
  752. background: #f5f5f5 url("../assets/common/icon-eye-open.png") 16px center
  753. no-repeat;
  754. background-size: 16px;
  755. }
  756. }
  757. .close-phone {
  758. position: fixed;
  759. top: 10px;
  760. right: 0;
  761. z-index: 1;
  762. font-size: 20px;
  763. color: #fff;
  764. cursor: pointer;
  765. padding: 10px;
  766. }
  767. }
  768. .img_url {
  769. width: 1000px;
  770. height: 700px;
  771. }
  772. </style>
  773. <style lang="scss">
  774. .GCLS-BOOK-Container {
  775. .screen-full {
  776. position: fixed;
  777. right: 30px;
  778. bottom: 30px;
  779. width: 48px;
  780. height: 48px;
  781. background: rgba(0, 0, 0, 0.4) url("../assets/common/icon-screenFull.png")
  782. center no-repeat;
  783. background-size: 32px;
  784. }
  785. }
  786. .title-box {
  787. .el-switch {
  788. position: absolute;
  789. top: 0;
  790. right: 0px;
  791. border: 1px solid rgba(44, 44, 44, 0.15);
  792. border-radius: 40px;
  793. height: 40px;
  794. padding: 6px 6px 6px 16px;
  795. }
  796. .el-switch__label.is-active {
  797. color: #000000;
  798. font-size: 16px;
  799. }
  800. }
  801. </style>