Preview.vue 28 KB

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