Preview.vue 26 KB

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