Preview.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. <!-- -->
  2. <template>
  3. <div class="NNPE-Big-Book-preview adult-book-preview-sty preview-red">
  4. <div class="NNPE-title">
  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">
  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. }
  315. },
  316. // 深度观察监听
  317. deep: true,
  318. },
  319. },
  320. // 生命周期 - 创建完成(可以访问当前this实例)
  321. created() {},
  322. // 生命周期 - 挂载完成(可以访问DOM元素)
  323. mounted() {
  324. const _this = this;
  325. if (_this.context) {
  326. _this.initContextData();
  327. _this.handleTitleData();
  328. }
  329. },
  330. beforeCreate() {}, // 生命周期 - 创建之前
  331. beforeMount() {}, // 生命周期 - 挂载之前
  332. beforeUpdate() {}, // 生命周期 - 更新之前
  333. updated() {}, // 生命周期 - 更新之后
  334. beforeDestroy() {}, // 生命周期 - 销毁之前
  335. destroyed() {}, // 生命周期 - 销毁完成
  336. activated() {},
  337. // 方法集合
  338. methods: {
  339. // 处理数据
  340. handleTitleData(){
  341. let _this = this
  342. let curQue = JSON.parse(JSON.stringify(this.cur));
  343. curQue.detailList.forEach((dItem, dIndex) => {
  344. let paraArr = []
  345. dItem.wordsList.forEach((sItem, sIndex) => {
  346. let obj = {
  347. pinyin: sItem.pinyin,
  348. chs: sItem.chs,
  349. isShow: true,
  350. };
  351. paraArr.push(obj);
  352. })
  353. this.$set(_this.cur.detailList[dIndex],'resArr',paraArr)
  354. })
  355. },
  356. initContextData() {
  357. const _this = this;
  358. _this.contextData = JSON.parse(JSON.stringify(_this.context));
  359. _this.queIndex = 0;
  360. _this.NNPENewWordList = [];
  361. _this.NNPENewPhraseList = [];
  362. _this.watchIndex = _this.queIndex + new Date().getTime();
  363. if (_this.contextData) {
  364. // const list = _this.contextData;
  365. // if (list && list.length > 0) {
  366. // _this.queList = list;
  367. // _this.cur = list[_this.queIndex];
  368. _this.queTotal = 1;
  369. // _this.cur.cur_fn_data.forEach((item) => {
  370. // item.table_list.forEach((items) => {
  371. // items.forEach((itemss) => {
  372. // if (itemss.data && itemss.data.type == "NewWord_chs") {
  373. // _this.NNPENewWordList = _this.NNPENewWordList.concat(
  374. // itemss.data.option
  375. // );
  376. // } else if (itemss.data && itemss.data.type == "notes_chs") {
  377. // _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
  378. // itemss.data.option
  379. // );
  380. // }
  381. // });
  382. // });
  383. // });
  384. // }
  385. _this.cur = _this.contextData;
  386. _this.cur.cur_fn_data.forEach((item) => {
  387. item.table_list.forEach((items) => {
  388. items.forEach((itemss) => {
  389. if (itemss.data && itemss.data.type == "NewWord_chs") {
  390. _this.NNPENewWordList = _this.NNPENewWordList.concat(
  391. itemss.data.option
  392. );
  393. } else if (itemss.data && itemss.data.type == "notes_chs") {
  394. _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
  395. itemss.data.option
  396. );
  397. }
  398. });
  399. });
  400. });
  401. }
  402. },
  403. // 上一页
  404. handleNNPEprev() {
  405. const _this = this;
  406. if (_this.queIndex == 0) {
  407. let data = {};
  408. let flg = false;
  409. let xiangdeng = false;
  410. _this.FatherTreeData.forEach((item, itemIndex) => {
  411. if (item.children) {
  412. item.children.forEach((it, childrenIndex) => {
  413. if (it.id == _this.currentTreeID) {
  414. if (itemIndex == 0 && childrenIndex == 0) {
  415. this.$message({
  416. message: "已经是最后一题",
  417. type: "success",
  418. });
  419. flg = true;
  420. } else if (childrenIndex == 0) {
  421. // 当前子节点的第一个
  422. if (_this.FatherTreeData[itemIndex - 1].children) {
  423. data.fatherName =
  424. _this.FatherTreeData[
  425. itemIndex - 1
  426. ].children[0].fatherName;
  427. data.id =
  428. _this.FatherTreeData[itemIndex - 1].children[0].id;
  429. data.name =
  430. _this.FatherTreeData[itemIndex - 1].children[0].name;
  431. } else {
  432. data.fatherName =
  433. _this.FatherTreeData[itemIndex - 1].fatherName;
  434. data.id = _this.FatherTreeData[itemIndex - 1].id;
  435. data.name = _this.FatherTreeData[itemIndex - 1].name;
  436. }
  437. } else {
  438. data.fatherName = item.children[childrenIndex - 1].fatherName;
  439. data.id = item.children[childrenIndex - 1].id;
  440. data.name = item.children[childrenIndex - 1].name;
  441. }
  442. xiangdeng = true;
  443. }
  444. });
  445. } else {
  446. if (!xiangdeng) {
  447. if (item.id == _this.currentTreeID) {
  448. if (itemIndex == 0) {
  449. this.$message({
  450. message: "已经是第一题",
  451. type: "success",
  452. });
  453. flg = true;
  454. } else {
  455. if (_this.FatherTreeData[itemIndex - 1].children) {
  456. data.fatherName =
  457. _this.FatherTreeData[itemIndex - 1].children[
  458. _this.FatherTreeData[itemIndex - 1].children.length - 1
  459. ].fatherName;
  460. data.id =
  461. _this.FatherTreeData[itemIndex - 1].children[
  462. _this.FatherTreeData[itemIndex - 1].children.length - 1
  463. ].id;
  464. data.name =
  465. _this.FatherTreeData[itemIndex - 1].children[
  466. _this.FatherTreeData[itemIndex - 1].children.length - 1
  467. ].name;
  468. } else {
  469. data.fatherName =
  470. _this.FatherTreeData[itemIndex - 1].fatherName;
  471. data.id = _this.FatherTreeData[itemIndex - 1].id;
  472. data.name = _this.FatherTreeData[itemIndex - 1].name;
  473. }
  474. }
  475. }
  476. }
  477. }
  478. });
  479. if (flg) {
  480. return;
  481. }
  482. _this.queIndex = 0;
  483. _this.changeId(data.id, data.name, data.fatherName, "Preview");
  484. } else {
  485. _this.queIndex -= 1;
  486. _this.watchIndex = _this.queIndex + new Date().getTime();
  487. _this.cur = _this.queList[_this.queIndex];
  488. }
  489. },
  490. // 下一页
  491. handleNNPEnext() {
  492. const _this = this;
  493. if (_this.queIndex == _this.queTotal - 1) {
  494. let data = {};
  495. let flg = false;
  496. let xiangdeng = false;
  497. _this.FatherTreeData.forEach((item, itemIndex) => {
  498. if (item.children) {
  499. item.children.forEach((it, childrenIndex) => {
  500. if (it.id == _this.currentTreeID) {
  501. if (
  502. itemIndex == _this.FatherTreeData.length - 1 &&
  503. childrenIndex == item.children.length - 1
  504. ) {
  505. this.$message({
  506. message: "已经是最后一题",
  507. type: "success",
  508. });
  509. flg = true;
  510. } else if (childrenIndex == item.children.length - 1) {
  511. // 当前子节点的最后一个
  512. if (_this.FatherTreeData[itemIndex + 1].children) {
  513. data.fatherName =
  514. _this.FatherTreeData[
  515. itemIndex + 1
  516. ].children[0].fatherName;
  517. data.id =
  518. _this.FatherTreeData[itemIndex + 1].children[0].id;
  519. data.name =
  520. _this.FatherTreeData[itemIndex + 1].children[0].name;
  521. } else {
  522. data.fatherName =
  523. _this.FatherTreeData[itemIndex + 1].fatherName;
  524. data.id = _this.FatherTreeData[itemIndex + 1].id;
  525. data.name = _this.FatherTreeData[itemIndex + 1].name;
  526. }
  527. } else {
  528. data.fatherName = item.children[childrenIndex + 1].fatherName;
  529. data.id = item.children[childrenIndex + 1].id;
  530. data.name = item.children[childrenIndex + 1].name;
  531. }
  532. xiangdeng = true;
  533. }
  534. });
  535. } else {
  536. if (!xiangdeng) {
  537. if (item.id == _this.currentTreeID) {
  538. if (itemIndex == _this.FatherTreeData.length - 1) {
  539. this.$message({
  540. message: "已经是最后一题",
  541. type: "success",
  542. });
  543. flg = true;
  544. } else {
  545. if (_this.FatherTreeData[itemIndex + 1].children) {
  546. data.fatherName =
  547. _this.FatherTreeData[
  548. itemIndex + 1
  549. ].children[0].fatherName;
  550. data.name =
  551. _this.FatherTreeData[itemIndex + 1].children[0].name;
  552. data.id =
  553. _this.FatherTreeData[itemIndex + 1].children[0].id;
  554. } else {
  555. data.fatherName =
  556. _this.FatherTreeData[itemIndex + 1].fatherName;
  557. data.id = _this.FatherTreeData[itemIndex + 1].id;
  558. data.name = _this.FatherTreeData[itemIndex + 1].name;
  559. }
  560. }
  561. }
  562. }
  563. }
  564. });
  565. if (flg) {
  566. return;
  567. }
  568. _this.changeId(data.id, data.name, data.fatherName, "Preview");
  569. xiangdeng = false;
  570. } else {
  571. _this.queIndex += 1;
  572. _this.watchIndex = _this.queIndex + new Date().getTime();
  573. _this.cur = _this.queList[_this.queIndex];
  574. }
  575. },
  576. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  577. };
  578. </script>
  579. <style lang='scss' scoped>
  580. //@import url(); 引入公共css类
  581. .NNPE-Big-Book-preview {
  582. width: 860px;
  583. margin: 0 auto;
  584. position: relative;
  585. .NNPE-title {
  586. background: #4f92f6;
  587. padding: 7px 24px;
  588. position: relative;
  589. height: 64px;
  590. display: flex;
  591. align-items: center;
  592. h1 {
  593. color: #ffffff;
  594. font-weight: bold;
  595. font-size: 16px;
  596. line-height: 150%;
  597. margin: 0;
  598. }
  599. .NNPE-title-left{
  600. display: flex;
  601. color: #FFFFFF;
  602. font-size: 20px;
  603. align-items: flex-end;
  604. .NNPE-title-item{
  605. margin-right: 2px;
  606. }
  607. .content-con{
  608. margin: 0;
  609. font-family: 'robot';
  610. &.hasCn,&.hanzi{
  611. font-family: 'FZJCGFKTK';
  612. }
  613. }
  614. .content-en{
  615. font-weight: normal;
  616. line-height: 28px;
  617. font-family: 'robot';
  618. }
  619. .con-box{
  620. display: flex;
  621. flex-flow: wrap;
  622. justify-content: center;
  623. .con-item{
  624. text-align: center;
  625. padding: 0 1px;
  626. }
  627. span{
  628. display: block;
  629. }
  630. .pinyin{
  631. font-family: 'GB-PINYINOK-B';
  632. font-size: 14px;
  633. line-height: 22px;
  634. height: 22px;
  635. }
  636. .synthesis-box{
  637. display: flex;
  638. }
  639. }
  640. }
  641. .NNPE-operate {
  642. position: absolute;
  643. top: 10px;
  644. right: 20px;
  645. a {
  646. background: #66a3ff url("../../assets/newImage/common/btn-pre.png")
  647. center no-repeat;
  648. border-radius: 4px;
  649. width: 44px;
  650. height: 44px;
  651. display: inline-block;
  652. margin: 0 4px;
  653. &.btn-next {
  654. background: #66a3ff url("../../assets/newImage/common/btn-next.png")
  655. center no-repeat;
  656. }
  657. &:hover {
  658. background-color: #3f75c4;
  659. }
  660. }
  661. }
  662. }
  663. .classTopic-box{
  664. background: #E35454;
  665. border-radius: 8px;
  666. width: 780px;
  667. margin: 24px auto 0 auto;
  668. text-align: center;
  669. padding: 8px 24px;
  670. span{
  671. font-size: 16px;
  672. line-height: 150%;
  673. color: #FFFFFF;
  674. padding: 0 1px;
  675. &.cn{
  676. font-family: 'FZJCGFKTK';
  677. }
  678. &.en{
  679. font-family: 'robot';
  680. }
  681. &.pinyin{
  682. font-family: 'GB-PINYINOK-B';
  683. }
  684. }
  685. }
  686. .NNPE-Book-content-inner {
  687. padding: 0 40px;
  688. > div {
  689. padding-top: 24px;
  690. > h2 {
  691. color: #000000;
  692. font-size: 16px;
  693. line-height: 150%;
  694. font-weight: bold;
  695. margin: 0;
  696. }
  697. > h3 {
  698. color: #000000;
  699. font-size: 16px;
  700. line-height: 150%;
  701. font-weight: normal;
  702. margin: 8px 0 16px 0;
  703. }
  704. }
  705. .NNPE-tableList {
  706. background: #fff;
  707. border-radius: 8px;
  708. // padding: 12px 8px;
  709. &.NNPE-tableList-hasBg {
  710. background: #f7f7f7;
  711. border: 1px solid rgba(0, 0, 0, 0.1);
  712. box-sizing: border-box;
  713. border-radius: 8px;
  714. }
  715. .NNPE-tableList-tr {
  716. display: flex;
  717. justify-content: space-between;
  718. // flex-flow: wrap;
  719. .NNPE-tableList-item {
  720. width: 100%;
  721. // margin: 12px 16px;
  722. // padding: 16px;
  723. // background: #FFFFFF;
  724. // border-radius: 4px;
  725. display: flex;
  726. flex-flow: wrap;
  727. justify-content: center;
  728. &.NNPE-tableList-item-noMargin {
  729. margin: 0;
  730. }
  731. &.NNPE-tableList-item2 {
  732. width: 378px;
  733. }
  734. &.NNPE-tableList-item3 {
  735. width: 244px;
  736. }
  737. }
  738. }
  739. }
  740. }
  741. }
  742. </style>