Preview.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <!-- -->
  2. <template>
  3. <div class="NNPE-Big-Book-preview adult-book-preview-sty preview-red" v-if="cur">
  4. <div class="NNPE-title" v-if="cur.detailList&&cur.detailList.length>0&&cur.detailList[0].sentence">
  5. <!-- 页眉 -->
  6. <div class="NNPE-title-left">
  7. <div class="NNPE-title-item" v-for="(item,index) in cur.detailList" :key="index">
  8. <template v-if="item.wordsList.length==0">
  9. <p :class="['content-con',/^[\u4e00-\u9fa5]/.test(item.sentence)?'hasCn':'']" v-if="item.sentence">{{item.sentence}}</p>
  10. </template>
  11. <template v-else>
  12. <div class="con-box">
  13. <div :class="['con-item',indexCon===0?'con-item-0':'']" v-for="(itemCon,indexCon) in item.resArr" :key="indexCon" v-show="itemCon.isShow">
  14. <template v-if="item.wordsList[indexCon + 1] && item.wordsList[indexCon + 1].chs && chsFhList.indexOf(item.wordsList[indexCon + 1].chs) > -1">
  15. <div class="synthesis-box">
  16. <div>
  17. <span class="pinyin">{{itemCon.pinyin}}</span>
  18. <span class="hanzi content-con">{{itemCon.chs}}</span>
  19. </div>
  20. <div style="text-align: left">
  21. <span class="pinyin">{{item.wordsList[indexCon + 1].pinyin}}</span>
  22. <span class="hanzi content-con">{{item.wordsList[indexCon + 1].chs}}</span>
  23. </div>
  24. </div>
  25. </template>
  26. <template v-else>
  27. <span class="pinyin">{{itemCon.pinyin}}</span>
  28. <span class="hanzi content-con">{{itemCon.chs}}</span>
  29. </template>
  30. </div>
  31. </div>
  32. </template>
  33. </div>
  34. </div>
  35. <div class="NNPE-operate">
  36. <a class="btn-prev" @click="handleNNPEprev" />
  37. <a class="btn-next" @click="handleNNPEnext" />
  38. </div>
  39. </div>
  40. <div class="classTopic-box" v-if="cur.classTopic&&cur.classTopic.length>0&&cur.classTopic[0].con">
  41. <span v-for="(item,index) in cur.classTopic" :key="index" :class="item.font">
  42. {{item.con}}
  43. </span>
  44. </div>
  45. <div v-if="cur" class="NNPE-Book-content-inner">
  46. <div v-for="(item, index) in cur.cur_fn_data" :key="index">
  47. <h2 v-if="item.z_title">{{ item.z_title }}</h2>
  48. <h3 v-if="item.f_title">{{ item.f_title }}</h3>
  49. <div
  50. :class="['NNPE-tableList', item.is_bg ? 'NNPE-tableList-hasBg' : '']"
  51. >
  52. <div
  53. v-for="(items, indexs) in item.table_list"
  54. :key="indexs"
  55. class="NNPE-tableList-tr"
  56. >
  57. <div
  58. v-for="(itemss, indexss) in items"
  59. :key="indexss"
  60. :class="[
  61. 'NNPE-tableList-item',
  62. items.length == 1
  63. ? 'NNPE-tableList-item-noMargin'
  64. : 'NNPE-tableList-item' + items.length,
  65. ]"
  66. >
  67. <template v-if="itemss.data">
  68. <template v-if="itemss.type == 'ligature_chs'">
  69. <Ligature :cur-que="itemss.data" />
  70. </template>
  71. <template v-if="itemss.data.type == 'image'">
  72. <Picture :cur-que="itemss.data" :child-type="itemss.type" />
  73. </template>
  74. <template v-if="itemss.type == 'record_chs'">
  75. <Record :cur-que="itemss.data" />
  76. </template>
  77. <template v-if="itemss.type == 'phrase_chs'">
  78. <WordPhrase :cur-que="itemss.data" />
  79. </template>
  80. <template v-if="itemss.type == 'NewWord_chs'">
  81. <WordPhrase :cur-que="itemss.data" />
  82. </template>
  83. <template v-if="itemss.type == 'annotation_chs'">
  84. <WordPhrase :cur-que="itemss.data" />
  85. </template>
  86. <template v-if="itemss.type == 'notes_chs'">
  87. <Notes :cur-que="itemss.data" />
  88. </template>
  89. <template v-if="itemss.type == 'article_chs'">
  90. <ArticleTemChs
  91. :cur-que="itemss.data"
  92. :n-n-p-e-new-word-list="NNPENewWordList"
  93. :n-n-p-e-new-phrase-list="NNPENewPhraseList"
  94. :n-n-p-e-annotation-list="NNPEAnnotationList"
  95. />
  96. </template>
  97. <template v-if="itemss.type == 'sentence_segword_chs'">
  98. <SentenceSegWordViewChs :cur-que="itemss.data" />
  99. </template>
  100. <template v-if="itemss.type == 'dialogue_article_chs'">
  101. <DialogueArticleViewChs
  102. :cur-que="itemss.data"
  103. :n-n-p-e-new-word-list="NNPENewWordList"
  104. :n-n-p-e-new-phrase-list="NNPENewPhraseList"
  105. :n-n-p-e-annotation-list="NNPEAnnotationList"
  106. :colorBox="colorBox"
  107. />
  108. </template>
  109. <template v-if="itemss.type == 'dialogue_answer_chs'">
  110. <DialogueAnswerViewChs
  111. :cur-que="itemss.data"
  112. :colorBox="colorBox"
  113. />
  114. </template>
  115. <template v-if="itemss.type == 'input_record_chs'">
  116. <InputHasRecord :cur-que="itemss.data" />
  117. </template>
  118. <template v-if="itemss.type == 'recordHZ_inputPY_chs'">
  119. <TextInputRecord :cur-que="itemss.data" />
  120. </template>
  121. <template
  122. v-if="
  123. itemss.type == 'inputItem_chs' ||
  124. itemss.type == 'sentence_input_chs' ||
  125. itemss.type == 'sentence_judge_chs' ||
  126. itemss.type == 'sentence_record_chs' ||
  127. itemss.type == 'sentence_input_record_chs'
  128. "
  129. >
  130. <SentenceInput :cur-que="itemss.data" />
  131. </template>
  132. <template v-if="itemss.type == 'NumberCombination_chs'">
  133. <NumberSelectHasRecord :cur-que="itemss.data" />
  134. </template>
  135. <template v-if="itemss.type === 'voice_matrix'">
  136. <voice-matrix :cur-que="itemss.data" />
  137. </template>
  138. <template v-if="itemss.type == 'toneSelect_chs'">
  139. <SelectTone :cur-que="itemss.data" />
  140. </template>
  141. <template v-if="itemss.type == 'sudoku_chs'">
  142. <Soduko :cur-que="itemss.data" />
  143. </template>
  144. <template v-if="itemss.type == 'single_chs'">
  145. <Single :cur-que="itemss.data" />
  146. </template>
  147. <template v-if="itemss.type == 'text_problem_chs'">
  148. <TextProblem :cur-que="itemss.data" />
  149. </template>
  150. <template v-if="itemss.type == 'newWord_preview_chs'">
  151. <NewWordShow :cur-que="itemss.data" />
  152. </template>
  153. <template
  154. v-if="itemss.type == 'listen_record_single_syllable_chs'"
  155. >
  156. <SelectYinjie :cur-que="itemss.data" />
  157. </template>
  158. <template v-if="itemss.type == 'sentence_listen_read_chs'">
  159. <SentenceListenRead :cur-que="itemss.data" />
  160. </template>
  161. <template v-if="itemss.type == 'sort_chs'">
  162. <SentenceSort :cur-que="itemss.data" />
  163. </template>
  164. <template v-if="itemss.type == 'checkbox_self_assessment_chs'">
  165. <Checkbox :cur-que="itemss.data" />
  166. </template>
  167. <template
  168. v-if="
  169. itemss.type == 'record_control_mini' ||
  170. itemss.type == 'record_control_normal' ||
  171. itemss.type == 'record_control_pro' ||
  172. itemss.type == 'record_control_promax'
  173. "
  174. >
  175. <RecordModule :cur-que="itemss.data" />
  176. </template>
  177. <template
  178. v-if="
  179. itemss.type == 'upload_control_chs' ||
  180. itemss.type == 'upload_control_preview_chs'
  181. "
  182. >
  183. <UploadControlView
  184. :cur-que="itemss.data"
  185. :type="itemss.type"
  186. />
  187. </template>
  188. <template v-if="itemss.type == 'CourseStart_chs'">
  189. <CourseStart :cur-que="itemss.data" :handleNNPEnext="handleNNPEnext" />
  190. </template>
  191. <template v-if="itemss.type == 'tinydemo_chs'">
  192. <Tinydemo :cur-que="itemss.data" />
  193. </template>
  194. </template>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. </template>
  202. <script>
  203. import Picture from "./preview/Picture.vue"; // 图片模板
  204. import Record from "./preview/Record.vue"; // 音频播放
  205. import Soundrecord from "./preview/Soundrecord.vue"; // 录音模板
  206. import ArticleTemChs from "./preview/ArticleViewChs/index.vue"; // 文章模板
  207. import DialogueArticleViewChs from "./preview/DialogueArticleViewChs/index.vue"; // 文章模板
  208. import SentenceSegWordViewChs from "./preview/SentenceSegWordViewChs.vue"; // 句子分词
  209. import WordPhrase from "./preview/WordPhrase.vue"; // 生词短语
  210. import Notes from "./preview/Notes.vue"; // 注释
  211. import Ligature from "./preview/Ligature.vue";
  212. import InputHasRecord from "./preview/InputHasRecord.vue"; // 输入加录音
  213. import TextInputRecord from "./preview/TextInputRecord.vue"; // 文本+输入+录音
  214. import SentenceInput from "./preview/SentenceInput.vue"; // 输入选项
  215. import NumberSelectHasRecord from "./preview/NumberSelectHasRecord.vue"; // 数字组合
  216. import SelectTone from "./preview/SelectTone.vue"; // 选择声调
  217. import Soduko from "./preview/Soduko.vue"; // 数独
  218. import Single from "./preview/Single.vue"; // 单选
  219. import TextProblem from "./preview/TextProblem.vue"; // 课文上方的问题
  220. import NewWordShow from "./preview/NewWordShow.vue"; // 生字展示
  221. import SelectYinjie from "./preview/SelectYinjie.vue"; // 选择音节
  222. import SentenceListenRead from "./preview/SentenceListenRead.vue"; // 听并朗读
  223. import SentenceSort from "./preview/SentenceSort.vue"; // 句子拖拽排序
  224. import Checkbox from "./preview/CheckBoxModule.vue"; // 问卷调查-多选题
  225. import VoiceMatrix from "./preview/VoiceMatrix.vue"; // 语音矩阵
  226. import RecordModule from "./preview/RecordModule.vue"; // 录音组件
  227. import UploadControlView from "./preview/UploadControlView.vue"; //预览控件
  228. import DialogueAnswerViewChs from "./preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue"; // 文章模板
  229. import CourseStart from "./preview/CourseStart.vue" // 封面
  230. import Tinydemo from "./preview/TinyModule.vue" // 富文本
  231. export default {
  232. name: "Preview",
  233. components: {
  234. Picture,
  235. Record,
  236. Soundrecord,
  237. ArticleTemChs,
  238. DialogueArticleViewChs,
  239. SentenceSegWordViewChs,
  240. WordPhrase,
  241. Notes,
  242. Ligature,
  243. InputHasRecord,
  244. TextInputRecord,
  245. SentenceInput,
  246. NumberSelectHasRecord,
  247. SelectTone,
  248. Soduko,
  249. Single,
  250. TextProblem,
  251. NewWordShow,
  252. SelectYinjie,
  253. SentenceListenRead,
  254. SentenceSort,
  255. Checkbox,
  256. VoiceMatrix,
  257. RecordModule,
  258. UploadControlView,
  259. DialogueAnswerViewChs,
  260. CourseStart,
  261. Tinydemo,
  262. },
  263. props: [
  264. "context",
  265. "fatherName",
  266. "currentTreeID",
  267. "FatherTreeData",
  268. "changeId",
  269. ],
  270. data() {
  271. return {
  272. contextData: null,
  273. queIndex: -1, // 题目的索引
  274. cur: null, // 当前的题目
  275. watchIndex: -1, // 监听的值
  276. queList: [],
  277. queTotal: 0, // 题目总数
  278. NNPENewWordList: [], // 存放文章的生词
  279. NNPENewPhraseList: [], // 存放文章的短语
  280. NNPEAnnotationList: [], // 存放文章注释
  281. height: "", // 总体的高度
  282. colorBox: [
  283. {
  284. touxiang: "#72B51D",
  285. bg: "#E9F0DF",
  286. },
  287. {
  288. touxiang: "#DE4444",
  289. bg: "rgba(222, 68, 68, 0.1)",
  290. },
  291. {
  292. touxiang: "#A7A7A7",
  293. bg: "#ffffff",
  294. },
  295. {
  296. touxiang: "#4D91F6",
  297. bg: "#F1F7FF",
  298. },
  299. {
  300. touxiang: "#FF8A00",
  301. bg: "rgba(255, 138, 0, 0.1)",
  302. },
  303. ],
  304. chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
  305. };
  306. },
  307. computed: {},
  308. watch: {
  309. context: {
  310. handler(val, oldVal) {
  311. const _this = this;
  312. if (val) {
  313. _this.initContextData();
  314. _this.handleTitleData();
  315. }
  316. },
  317. // 深度观察监听
  318. deep: true,
  319. },
  320. },
  321. // 生命周期 - 创建完成(可以访问当前this实例)
  322. created() {},
  323. // 生命周期 - 挂载完成(可以访问DOM元素)
  324. mounted() {
  325. const _this = this;
  326. if (_this.context) {
  327. _this.initContextData();
  328. _this.handleTitleData();
  329. }
  330. },
  331. beforeCreate() {}, // 生命周期 - 创建之前
  332. beforeMount() {}, // 生命周期 - 挂载之前
  333. beforeUpdate() {}, // 生命周期 - 更新之前
  334. updated() {}, // 生命周期 - 更新之后
  335. beforeDestroy() {}, // 生命周期 - 销毁之前
  336. destroyed() {}, // 生命周期 - 销毁完成
  337. activated() {},
  338. // 方法集合
  339. methods: {
  340. // 处理数据
  341. handleTitleData(){
  342. let _this = this
  343. let curQue = JSON.parse(JSON.stringify(this.cur));
  344. curQue.detailList.forEach((dItem, dIndex) => {
  345. let paraArr = []
  346. dItem.wordsList.forEach((sItem, sIndex) => {
  347. let obj = {
  348. pinyin: sItem.pinyin,
  349. chs: sItem.chs,
  350. isShow: true,
  351. };
  352. paraArr.push(obj);
  353. })
  354. this.$set(_this.cur.detailList[dIndex],'resArr',paraArr)
  355. })
  356. },
  357. initContextData() {
  358. const _this = this;
  359. _this.contextData = JSON.parse(JSON.stringify(_this.context));
  360. _this.queIndex = 0;
  361. _this.NNPENewWordList = [];
  362. _this.NNPENewPhraseList = [];
  363. _this.watchIndex = _this.queIndex + new Date().getTime();
  364. if (_this.contextData) {
  365. // const list = _this.contextData;
  366. // if (list && list.length > 0) {
  367. // _this.queList = list;
  368. // _this.cur = list[_this.queIndex];
  369. _this.queTotal = 1;
  370. // _this.cur.cur_fn_data.forEach((item) => {
  371. // item.table_list.forEach((items) => {
  372. // items.forEach((itemss) => {
  373. // if (itemss.data && itemss.data.type == "NewWord_chs") {
  374. // _this.NNPENewWordList = _this.NNPENewWordList.concat(
  375. // itemss.data.option
  376. // );
  377. // } else if (itemss.data && itemss.data.type == "notes_chs") {
  378. // _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
  379. // itemss.data.option
  380. // );
  381. // }
  382. // });
  383. // });
  384. // });
  385. // }
  386. _this.cur = _this.contextData;
  387. _this.cur.cur_fn_data.forEach((item) => {
  388. item.table_list.forEach((items) => {
  389. items.forEach((itemss) => {
  390. if (itemss.data && itemss.data.type == "NewWord_chs") {
  391. _this.NNPENewWordList = _this.NNPENewWordList.concat(
  392. itemss.data.option
  393. );
  394. } else if (itemss.data && itemss.data.type == "notes_chs") {
  395. _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
  396. itemss.data.option
  397. );
  398. }
  399. });
  400. });
  401. });
  402. }
  403. },
  404. // 上一页
  405. handleNNPEprev() {
  406. const _this = this;
  407. if (_this.queIndex == 0) {
  408. let data = {};
  409. let flg = false;
  410. let xiangdeng = false;
  411. _this.FatherTreeData.forEach((item, itemIndex) => {
  412. if (item.children) {
  413. item.children.forEach((it, childrenIndex) => {
  414. if (it.id == _this.currentTreeID) {
  415. if (itemIndex == 0 && childrenIndex == 0) {
  416. this.$message({
  417. message: "已经是最后一题",
  418. type: "success",
  419. });
  420. flg = true;
  421. } else if (childrenIndex == 0) {
  422. // 当前子节点的第一个
  423. if (_this.FatherTreeData[itemIndex - 1].children) {
  424. data.fatherName =
  425. _this.FatherTreeData[
  426. itemIndex - 1
  427. ].children[0].fatherName;
  428. data.id =
  429. _this.FatherTreeData[itemIndex - 1].children[0].id;
  430. data.name =
  431. _this.FatherTreeData[itemIndex - 1].children[0].name;
  432. } else {
  433. data.fatherName =
  434. _this.FatherTreeData[itemIndex - 1].fatherName;
  435. data.id = _this.FatherTreeData[itemIndex - 1].id;
  436. data.name = _this.FatherTreeData[itemIndex - 1].name;
  437. }
  438. } else {
  439. data.fatherName = item.children[childrenIndex - 1].fatherName;
  440. data.id = item.children[childrenIndex - 1].id;
  441. data.name = item.children[childrenIndex - 1].name;
  442. }
  443. xiangdeng = true;
  444. }
  445. });
  446. } else {
  447. if (!xiangdeng) {
  448. if (item.id == _this.currentTreeID) {
  449. if (itemIndex == 0) {
  450. this.$message({
  451. message: "已经是第一题",
  452. type: "success",
  453. });
  454. flg = true;
  455. } else {
  456. if (_this.FatherTreeData[itemIndex - 1].children) {
  457. data.fatherName =
  458. _this.FatherTreeData[itemIndex - 1].children[
  459. _this.FatherTreeData[itemIndex - 1].children.length - 1
  460. ].fatherName;
  461. data.id =
  462. _this.FatherTreeData[itemIndex - 1].children[
  463. _this.FatherTreeData[itemIndex - 1].children.length - 1
  464. ].id;
  465. data.name =
  466. _this.FatherTreeData[itemIndex - 1].children[
  467. _this.FatherTreeData[itemIndex - 1].children.length - 1
  468. ].name;
  469. } else {
  470. data.fatherName =
  471. _this.FatherTreeData[itemIndex - 1].fatherName;
  472. data.id = _this.FatherTreeData[itemIndex - 1].id;
  473. data.name = _this.FatherTreeData[itemIndex - 1].name;
  474. }
  475. }
  476. }
  477. }
  478. }
  479. });
  480. if (flg) {
  481. return;
  482. }
  483. _this.queIndex = 0;
  484. _this.changeId(data.id, data.name, data.fatherName, "Preview");
  485. } else {
  486. _this.queIndex -= 1;
  487. _this.watchIndex = _this.queIndex + new Date().getTime();
  488. _this.cur = _this.queList[_this.queIndex];
  489. }
  490. },
  491. // 下一页
  492. handleNNPEnext() {
  493. const _this = this;
  494. if (_this.queIndex == _this.queTotal - 1) {
  495. let data = {};
  496. let flg = false;
  497. let xiangdeng = false;
  498. _this.FatherTreeData.forEach((item, itemIndex) => {
  499. if (item.children) {
  500. item.children.forEach((it, childrenIndex) => {
  501. if (it.id == _this.currentTreeID) {
  502. if (
  503. itemIndex == _this.FatherTreeData.length - 1 &&
  504. childrenIndex == item.children.length - 1
  505. ) {
  506. this.$message({
  507. message: "已经是最后一题",
  508. type: "success",
  509. });
  510. flg = true;
  511. } else if (childrenIndex == item.children.length - 1) {
  512. // 当前子节点的最后一个
  513. if (_this.FatherTreeData[itemIndex + 1].children) {
  514. data.fatherName =
  515. _this.FatherTreeData[
  516. itemIndex + 1
  517. ].children[0].fatherName;
  518. data.id =
  519. _this.FatherTreeData[itemIndex + 1].children[0].id;
  520. data.name =
  521. _this.FatherTreeData[itemIndex + 1].children[0].name;
  522. } else {
  523. data.fatherName =
  524. _this.FatherTreeData[itemIndex + 1].fatherName;
  525. data.id = _this.FatherTreeData[itemIndex + 1].id;
  526. data.name = _this.FatherTreeData[itemIndex + 1].name;
  527. }
  528. } else {
  529. data.fatherName = item.children[childrenIndex + 1].fatherName;
  530. data.id = item.children[childrenIndex + 1].id;
  531. data.name = item.children[childrenIndex + 1].name;
  532. }
  533. xiangdeng = true;
  534. }
  535. });
  536. } else {
  537. if (!xiangdeng) {
  538. if (item.id == _this.currentTreeID) {
  539. if (itemIndex == _this.FatherTreeData.length - 1) {
  540. this.$message({
  541. message: "已经是最后一题",
  542. type: "success",
  543. });
  544. flg = true;
  545. } else {
  546. if (_this.FatherTreeData[itemIndex + 1].children) {
  547. data.fatherName =
  548. _this.FatherTreeData[
  549. itemIndex + 1
  550. ].children[0].fatherName;
  551. data.name =
  552. _this.FatherTreeData[itemIndex + 1].children[0].name;
  553. data.id =
  554. _this.FatherTreeData[itemIndex + 1].children[0].id;
  555. } else {
  556. data.fatherName =
  557. _this.FatherTreeData[itemIndex + 1].fatherName;
  558. data.id = _this.FatherTreeData[itemIndex + 1].id;
  559. data.name = _this.FatherTreeData[itemIndex + 1].name;
  560. }
  561. }
  562. }
  563. }
  564. }
  565. });
  566. if (flg) {
  567. return;
  568. }
  569. _this.changeId(data.id, data.name, data.fatherName, "Preview");
  570. xiangdeng = false;
  571. } else {
  572. _this.queIndex += 1;
  573. _this.watchIndex = _this.queIndex + new Date().getTime();
  574. _this.cur = _this.queList[_this.queIndex];
  575. }
  576. },
  577. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  578. };
  579. </script>
  580. <style lang='scss' scoped>
  581. //@import url(); 引入公共css类
  582. .NNPE-Big-Book-preview {
  583. width: 860px;
  584. margin: 0 auto;
  585. position: relative;
  586. .NNPE-title {
  587. background: #4f92f6;
  588. padding: 7px 24px;
  589. position: relative;
  590. height: 64px;
  591. display: flex;
  592. align-items: center;
  593. h1 {
  594. color: #ffffff;
  595. font-weight: bold;
  596. font-size: 16px;
  597. line-height: 150%;
  598. margin: 0;
  599. }
  600. .NNPE-title-left{
  601. display: flex;
  602. color: #FFFFFF;
  603. font-size: 20px;
  604. line-height: 28px;
  605. align-items: flex-end;
  606. .NNPE-title-item{
  607. margin-right: 2px;
  608. }
  609. .content-con{
  610. margin: 0;
  611. font-family: 'robot';
  612. &.hasCn,&.hanzi{
  613. font-family: 'FZJCGFKTK';
  614. }
  615. }
  616. .content-en{
  617. font-weight: normal;
  618. line-height: 28px;
  619. font-family: 'robot';
  620. }
  621. .con-box{
  622. display: flex;
  623. flex-flow: wrap;
  624. justify-content: center;
  625. .con-item{
  626. text-align: center;
  627. padding: 0 1px;
  628. }
  629. span{
  630. display: block;
  631. }
  632. .pinyin{
  633. font-family: 'GB-PINYINOK-B';
  634. font-size: 14px;
  635. line-height: 22px;
  636. height: 22px;
  637. }
  638. .synthesis-box{
  639. display: flex;
  640. }
  641. }
  642. }
  643. .NNPE-operate {
  644. position: absolute;
  645. top: 10px;
  646. right: 20px;
  647. a {
  648. background: #66a3ff url("../../assets/newImage/common/btn-pre.png")
  649. center no-repeat;
  650. border-radius: 4px;
  651. width: 44px;
  652. height: 44px;
  653. display: inline-block;
  654. margin: 0 4px;
  655. &.btn-next {
  656. background: #66a3ff url("../../assets/newImage/common/btn-next.png")
  657. center no-repeat;
  658. }
  659. &:hover {
  660. background-color: #3f75c4;
  661. }
  662. }
  663. }
  664. }
  665. .classTopic-box{
  666. background: #E35454;
  667. border-radius: 8px;
  668. width: 780px;
  669. margin: 24px auto 0 auto;
  670. text-align: center;
  671. padding: 8px 24px;
  672. span{
  673. font-size: 16px;
  674. line-height: 150%;
  675. color: #FFFFFF;
  676. padding: 0 1px;
  677. &.cn{
  678. font-family: 'FZJCGFKTK';
  679. }
  680. &.en{
  681. font-family: 'robot';
  682. }
  683. &.pinyin{
  684. font-family: 'GB-PINYINOK-B';
  685. }
  686. }
  687. }
  688. .NNPE-Book-content-inner {
  689. padding: 0 40px;
  690. > div {
  691. padding-top: 24px;
  692. > h2 {
  693. color: #000000;
  694. font-size: 16px;
  695. line-height: 150%;
  696. font-weight: bold;
  697. margin: 0;
  698. }
  699. > h3 {
  700. color: #000000;
  701. font-size: 16px;
  702. line-height: 150%;
  703. font-weight: normal;
  704. margin: 8px 0 16px 0;
  705. }
  706. }
  707. .NNPE-tableList {
  708. background: #fff;
  709. border-radius: 8px;
  710. // padding: 12px 8px;
  711. &.NNPE-tableList-hasBg {
  712. background: #f7f7f7;
  713. border: 1px solid rgba(0, 0, 0, 0.1);
  714. box-sizing: border-box;
  715. border-radius: 8px;
  716. }
  717. .NNPE-tableList-tr {
  718. display: flex;
  719. justify-content: space-between;
  720. // flex-flow: wrap;
  721. .NNPE-tableList-item {
  722. width: 100%;
  723. // margin: 12px 16px;
  724. // padding: 16px;
  725. // background: #FFFFFF;
  726. // border-radius: 4px;
  727. display: flex;
  728. flex-flow: wrap;
  729. justify-content: center;
  730. &.NNPE-tableList-item-noMargin {
  731. margin: 0;
  732. }
  733. &.NNPE-tableList-item2 {
  734. width: 378px;
  735. }
  736. &.NNPE-tableList-item3 {
  737. width: 244px;
  738. }
  739. }
  740. }
  741. }
  742. }
  743. }
  744. </style>