AnswerModel.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <!-- -->
  2. <template>
  3. <div class="NNPE-ArticleView" v-if="curQue">
  4. <div
  5. class="aduioLine-box"
  6. v-if="
  7. curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url
  8. "
  9. >
  10. <AudioLine
  11. :mp3="curQue.mp3_list[0].url"
  12. :getCurTime="getCurTime"
  13. ref="audioLine"
  14. />
  15. </div>
  16. <template v-if="resArr.length > 0">
  17. <div class="NPC-sentences-list">
  18. <p class="notice" v-if="curQue.notice">{{ curQue.notice }}</p>
  19. <div
  20. :class="[
  21. 'NNPE-detail',
  22. item.isTitle ? 'NNPE-detail-title' : '',
  23. item.timeList.length > 0 &&
  24. curTime >= item.timeList[0].bg &&
  25. curTime <= item.timeList[item.timeList.length - 1].ed
  26. ? 'active'
  27. : '',
  28. ]"
  29. v-for="(item, index) in resArr"
  30. :key="'detail' + index"
  31. >
  32. <div :class="['article-content', isHasRemark ? 'hasRemark' : '']">
  33. <RoleChs :curRole="item.roleDetail" :type="1" />
  34. <div class="wordsList-box">
  35. <div
  36. class="roleDetail"
  37. v-if="item.roleDetail.detail.wordsList.length > 0"
  38. >
  39. <span class="pinyin">{{
  40. item.roleDetail.detail.wordsList | handlePinyin
  41. }}</span>
  42. <span class="chs">{{
  43. item.roleDetail.detail.wordsList | handleChs
  44. }}</span>
  45. </div>
  46. <div
  47. class="para-con"
  48. :style="{ background: item.roleDetail.color.bg }"
  49. >
  50. <div
  51. class="NNPE-words"
  52. v-for="(pItem, pIndex) in item.wordsList"
  53. :key="'wordsList' + pIndex"
  54. :class="[pItem.wordIndex == 0 ? 'textLeft' : 'textCenter']"
  55. >
  56. <template v-if="!pItem.width">
  57. <template v-if="pItem.isShow">
  58. <template
  59. v-if="
  60. item.wordsList[pIndex + 1] &&
  61. item.wordsList[pIndex + 1].chs &&
  62. chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
  63. "
  64. >
  65. <span class="NNPE-words-box">
  66. <span
  67. v-if="pyPosition == 'top'"
  68. class="NNPE-pinyin"
  69. :class="[pItem.className ? pItem.className : '']"
  70. >{{ pItem.pinyin }}</span
  71. >
  72. <span
  73. class="NNPE-chs"
  74. :class="[
  75. item.timeList.length > 0 &&
  76. curTime >=
  77. item.timeList[pItem.sentIndex].wordsResultList[
  78. pItem.wordIndex
  79. ].wordBg &&
  80. curTime <= item.timeList[pItem.sentIndex].ed
  81. ? 'wordActive'
  82. : '',
  83. ]"
  84. >{{ pItem.chs }}</span
  85. >
  86. <span
  87. v-if="pyPosition == 'bottom'"
  88. class="NNPE-pinyin"
  89. :class="[pItem.className ? pItem.className : '']"
  90. >{{ pItem.pinyin }}</span
  91. >
  92. </span>
  93. <span class="NNPE-words-box">
  94. <span
  95. v-if="pyPosition == 'top'"
  96. class="NNPE-pinyin"
  97. style="text-align: left"
  98. >{{ item.wordsList[pIndex + 1].pinyin }}</span
  99. >
  100. <span
  101. class="NNPE-chs"
  102. style="text-align: left"
  103. :class="[
  104. item.timeList.length > 0 &&
  105. curTime >=
  106. item.timeList[pItem.sentIndex].wordsResultList[
  107. pItem.wordIndex
  108. ].wordBg &&
  109. curTime <= item.timeList[pItem.sentIndex].ed
  110. ? 'wordActive'
  111. : '',
  112. ]"
  113. >{{ item.wordsList[pIndex + 1].chs }}</span
  114. >
  115. <span
  116. v-if="pyPosition == 'bottom'"
  117. class="NNPE-pinyin"
  118. style="text-align: left"
  119. >{{ item.wordsList[pIndex + 1].pinyin }}</span
  120. >
  121. </span>
  122. </template>
  123. <template v-else>
  124. <span
  125. v-if="pyPosition == 'top'"
  126. class="NNPE-pinyin"
  127. :class="[
  128. pItem.padding ? 'padding' : '',
  129. pItem.className ? pItem.className : '',
  130. ]"
  131. >{{ pItem.pinyin }}</span
  132. >
  133. <template v-if="!pItem.isHeng">
  134. <span
  135. v-if="pItem.chs != '#'"
  136. class="NNPE-chs"
  137. :class="[
  138. item.timeList.length > 0 &&
  139. curTime >=
  140. item.timeList[pItem.sentIndex].wordsResultList[
  141. pItem.wordIndex
  142. ].wordBg &&
  143. curTime <= item.timeList[pItem.sentIndex].ed
  144. ? 'wordActive'
  145. : '',
  146. pItem.padding ? 'padding' : '',
  147. ]"
  148. >{{ pItem.chs }}</span
  149. >
  150. </template>
  151. <template v-else>
  152. <input v-model="pItem.answer" class="answer-input" />
  153. </template>
  154. <span
  155. v-if="pyPosition == 'bottom'"
  156. class="NNPE-pinyin"
  157. :class="[
  158. pItem.padding ? 'padding' : '',
  159. pItem.className ? pItem.className : '',
  160. ]"
  161. >{{ pItem.pinyin }}</span
  162. >
  163. </template>
  164. </template>
  165. </template>
  166. <template v-else>
  167. <span
  168. :style="{
  169. height: pItem.height + 'px',
  170. width: pItem.width + 'px',
  171. }"
  172. ></span>
  173. </template>
  174. </div>
  175. <div v-if="item.enwords" class="enwords">
  176. {{ item.enwords }}
  177. </div>
  178. </div>
  179. <div class="clearFix"></div>
  180. <div class="input-record" v-if="item.isRecord">
  181. <Soundrecord
  182. @handleWav="handleWav"
  183. type="mini"
  184. class="mini-box"
  185. />
  186. </div>
  187. <div
  188. class="input-record"
  189. v-if="curQue.fn_list && curQue.fn_list[1].isFn"
  190. >
  191. <div v-if="item.timeList"></div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="remarkBox remark-top" v-if="item.remarkDetail">
  196. <RemarkChs :remarkDetail="item.remarkDetail" />
  197. </div>
  198. </div>
  199. <!-- <div class="dia-article-record">
  200. <Soundrecord @handleWav="handleWav" type="promax" class="luyin-box" />
  201. </div> -->
  202. </div>
  203. </template>
  204. <template v-if="paraArr.length > 0">
  205. <div class="NPC-sentences-list">
  206. <p class="notice" v-if="curQue.notice">{{ curQue.notice }}</p>
  207. <div
  208. :class="['NNPE-detail', item.isTitle ? 'NNPE-detail-title' : '']"
  209. v-for="(item, index) in paraArr"
  210. :key="'detail' + index"
  211. >
  212. <div :class="['article-content', isHasRemark ? 'hasRemark' : '']">
  213. <RoleChs :curRole="item.roleDetail" :type="1" />
  214. <div class="wordsList-box">
  215. <div
  216. class="roleDetail"
  217. v-if="item.roleDetail.detail.wordsList.length > 0"
  218. >
  219. <span class="pinyin">{{
  220. item.roleDetail.detail.wordsList | handlePinyin
  221. }}</span>
  222. <span class="chs">{{
  223. item.roleDetail.detail.wordsList | handleChs
  224. }}</span>
  225. </div>
  226. <div
  227. class="para-con"
  228. :style="{ background: item.roleDetail.color.bg }"
  229. >
  230. <div
  231. class="NNPE-words"
  232. v-for="(pItem, pIndex) in item.wordsList"
  233. :key="'wordsList' + pIndex"
  234. >
  235. <template v-if="!pItem.isHeng">
  236. <span class="NNPE-para-pinyin padding">{{
  237. pItem.con
  238. }}</span>
  239. </template>
  240. <template v-else>
  241. <input v-model="pItem.answer" class="answer-input" />
  242. </template>
  243. </div>
  244. <div v-if="item.enwords" class="enwords">
  245. {{ item.enwords }}
  246. </div>
  247. </div>
  248. <div class="clearFix"></div>
  249. <div class="input-record" v-if="item.isRecord">
  250. <Soundrecord
  251. @handleWav="handleWav"
  252. type="mini"
  253. class="mini-box"
  254. />
  255. </div>
  256. </div>
  257. </div>
  258. <div class="remarkBox remark-top" v-if="item.remarkDetail">
  259. <RemarkChs :remarkDetail="item.remarkDetail" />
  260. </div>
  261. </div>
  262. <!-- <div class="dia-article-record">
  263. <Soundrecord @handleWav="handleWav" type="promax" class="luyin-box" />
  264. </div> -->
  265. </div>
  266. </template>
  267. </div>
  268. </template>
  269. <script>
  270. import { timeStrToSen } from "@/utils/index";
  271. import AudioLine from "../AudioLine.vue";
  272. import RoleChs from "./RoleChs.vue";
  273. import RemarkChs from "./RemarkChs.vue";
  274. import Soundrecord from "../Soundrecord.vue";
  275. export default {
  276. name: "DialogueNormalModelChs",
  277. props: ["curQue", "pyPosition", "colorBox"],
  278. components: {
  279. AudioLine,
  280. RoleChs,
  281. RemarkChs,
  282. Soundrecord,
  283. },
  284. filters: {
  285. handlePinyin(wordsList) {
  286. let str = "";
  287. wordsList.forEach((item, index) => {
  288. if (index < wordsList.length - 1) {
  289. str += item.pinyin + " ";
  290. } else {
  291. str += item.pinyin;
  292. }
  293. });
  294. return str;
  295. },
  296. handleChs(wordsList) {
  297. let str = "";
  298. wordsList.forEach((item, index) => {
  299. if (index < wordsList.length - 1) {
  300. str += item.chs + " ";
  301. } else {
  302. str += item.chs;
  303. }
  304. });
  305. return str;
  306. },
  307. },
  308. data() {
  309. return {
  310. resArr: [],
  311. curTime: 0, //单位s
  312. chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
  313. enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
  314. newWords: ["鱼", "辩礼义"],
  315. oldHz: "",
  316. hz: "",
  317. top: 0,
  318. left: 0,
  319. articleImg: {}, // 文章图片
  320. isHasRemark: false,
  321. paraArr: [],
  322. answer: [],
  323. };
  324. },
  325. computed: {},
  326. watch: {},
  327. //方法集合
  328. methods: {
  329. handleWav() {},
  330. getCurTime(curTime) {
  331. this.curTime = curTime * 1000;
  332. },
  333. handleData() {
  334. let resArr = [];
  335. let reg = /_{2,}/g;
  336. let leg = this.curQue.detail.length;
  337. let curQue = JSON.parse(JSON.stringify(this.curQue));
  338. curQue.detail.forEach((dItem, dIndex) => {
  339. let isRecord = 0;
  340. let roleDetail = this.getRole(dItem);
  341. let remarkDetail = dItem.remark;
  342. if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
  343. this.isHasRemark = true;
  344. }
  345. let paraArr = [];
  346. if (dItem.wordsList && dItem.wordsList.length > 0) {
  347. dItem.wordsList.forEach((sItem, sIndex) => {
  348. sItem.forEach((wItem, wIndex) => {
  349. this.mergeWordSymbol(wItem);
  350. let obj = {
  351. paraIndex: dIndex, //段落索引
  352. sentIndex: sIndex, //在段落中句子索引
  353. wordIndex: wIndex, //单词的索引
  354. pinyin: wItem.pinyin,
  355. chs: wItem.chs,
  356. isHeng: reg.test(wItem.chs),
  357. padding: true, //wItem.padding,
  358. className: wItem.className,
  359. isShow: wItem.isShow,
  360. isNewWord: this.newWords.indexOf(wItem.chs) > -1 ? true : false,
  361. };
  362. if (obj.isHeng) {
  363. isRecord = isRecord + 1;
  364. obj.answer = "";
  365. }
  366. paraArr.push(obj);
  367. });
  368. });
  369. let curSentencesLeg = dItem.sentences.length;
  370. let startLeg = dIndex == 0 ? 0 : curQue.detail[dIndex - 1].endLeg;
  371. let endLeg = startLeg + curSentencesLeg;
  372. dItem.endLeg = endLeg;
  373. let timeList = [];
  374. if (curQue.wordTime && curQue.wordTime.length > 0) {
  375. timeList = curQue.wordTime.slice(startLeg, endLeg);
  376. }
  377. let enwords =
  378. dItem.sentencesEn && dItem.sentencesEn.length > 0
  379. ? dItem.sentencesEn.join(" ")
  380. : "";
  381. let paraObj = {
  382. wordsList: paraArr,
  383. enwords: enwords,
  384. timeList: timeList,
  385. roleDetail: roleDetail,
  386. remarkDetail: remarkDetail,
  387. isRecord: isRecord > 0 ? true : false,
  388. };
  389. resArr.push(paraObj);
  390. }
  391. });
  392. this.resArr = resArr;
  393. console.log("Normal");
  394. console.log(this.resArr);
  395. // 循环文章图片
  396. if (curQue.img_list) {
  397. curQue.img_list.forEach((item) => {
  398. this.articleImg[item.imgNumber] = item.url;
  399. });
  400. }
  401. },
  402. handlePYData() {
  403. let pararArr = [];
  404. let curQue = JSON.parse(JSON.stringify(this.curQue));
  405. curQue.detail.forEach((dItem, dIndex) => {
  406. let para = dItem.para;
  407. let paraObj = this.handlePara(para);
  408. let roleDetail = this.getRole(dItem);
  409. let remarkDetail = dItem.remark;
  410. if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
  411. this.isHasRemark = true;
  412. }
  413. let obj = {
  414. wordsList: paraObj.wordsList,
  415. roleDetail: roleDetail,
  416. remarkDetail: remarkDetail,
  417. isRecord: paraObj.isRecord,
  418. };
  419. pararArr.push(obj);
  420. });
  421. this.paraArr = pararArr;
  422. console.log("======paraArr======");
  423. console.log(this.paraArr);
  424. },
  425. //词和标点合一起
  426. mergeWordSymbol(wItem) {
  427. if (this.chsFhList.indexOf(wItem.chs) > -1) {
  428. wItem.isShow = false;
  429. } else {
  430. wItem.isShow = true;
  431. }
  432. },
  433. //获取角色
  434. getRole(dItem) {
  435. let roleIndex = dItem.roleIndex;
  436. let resObj = null;
  437. let roleList = JSON.parse(JSON.stringify(this.curQue.roleList));
  438. for (let i = 0; i < roleList.length; i++) {
  439. let item = roleList[i];
  440. if (item.id == roleIndex) {
  441. resObj = item;
  442. resObj.color = this.colorBox[i];
  443. break;
  444. }
  445. }
  446. return resObj;
  447. },
  448. //判断是否有padding
  449. judgePad(sItem, wItem, curIndex) {
  450. let leg = sItem.length;
  451. if (curIndex < leg - 1) {
  452. let nextIndex = curIndex + 1;
  453. let chs = sItem[nextIndex].chs;
  454. if (
  455. this.chsFhList.indexOf(chs) > -1 ||
  456. this.chsFhList.indexOf(wItem.chs) > -1
  457. ) {
  458. wItem.padding = false;
  459. } else {
  460. wItem.padding = true;
  461. }
  462. if (this.enFhList.indexOf(wItem.pinyin) > -1) {
  463. wItem.className = "textLeft";
  464. }
  465. }
  466. },
  467. //转化时间
  468. handleTimeList(list) {
  469. let listRes = [];
  470. list.forEach((item) => {
  471. let res = timeStrToSen(item);
  472. listRes.push(res);
  473. });
  474. return listRes;
  475. },
  476. //点击播放某个句子
  477. handleChangeTime(time) {
  478. this.curTime = time;
  479. this.$refs.audioLine.onTimeupdateTime(time / 1000);
  480. },
  481. //处理数组
  482. handlePara(para) {
  483. para = para.trim();
  484. para = para.replace(/\s+/g, " ");
  485. para = para.replace(/_{2,}/g, "^ ");
  486. let paraArr = para.split(/\s/g);
  487. let resArr = [];
  488. paraArr.forEach((item, index) => {
  489. let obj = {
  490. isHeng: false,
  491. con: item,
  492. };
  493. if (item == "^") {
  494. obj.isHeng = true;
  495. obj.answer = "";
  496. }
  497. resArr.push(obj);
  498. });
  499. let isRecord = /^/g.test(para);
  500. return { wordsList: resArr, isRecord: isRecord };
  501. },
  502. },
  503. //生命周期 - 创建完成(可以访问当前this实例)
  504. created() {},
  505. //生命周期 - 挂载完成(可以访问DOM元素)
  506. mounted() {
  507. if (this.curQue) {
  508. if (this.curQue.font == "cn" || !this.curQue.font) {
  509. this.handleData();
  510. } else {
  511. this.handlePYData();
  512. }
  513. }
  514. },
  515. beforeCreate() {}, //生命周期 - 创建之前
  516. beforeMount() {}, //生命周期 - 挂载之前
  517. beforeUpdate() {}, //生命周期 - 更新之前
  518. updated() {}, //生命周期 - 更新之后
  519. beforeDestroy() {}, //生命周期 - 销毁之前
  520. destroyed() {}, //生命周期 - 销毁完成
  521. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  522. };
  523. </script>
  524. <style lang='scss' scoped>
  525. //@import url(); 引入公共css类
  526. .NNPE-ArticleView {
  527. width: 100%;
  528. .clearFix {
  529. clear: both;
  530. overflow: hidden;
  531. }
  532. .NPC-sentences-list {
  533. .NPC-article-empty {
  534. display: flex;
  535. justify-content: flex-start;
  536. align-items: flex-start;
  537. > div {
  538. height: 24px;
  539. &.empty-left {
  540. width: 100%;
  541. box-sizing: border-box;
  542. &.hasRemark {
  543. width: 553px;
  544. box-sizing: border-box;
  545. border-right: 1px rgba(0, 0, 0, 0.1) solid;
  546. }
  547. }
  548. &.empty-right {
  549. flex: 1;
  550. }
  551. }
  552. &-bottom {
  553. > div {
  554. height: 40px;
  555. }
  556. }
  557. }
  558. .dia-article-record {
  559. width: 100%;
  560. border-top: 1px solid rgba(0, 0, 0, 0.1);
  561. .luyin-box {
  562. justify-content: start;
  563. padding: 8px 12px;
  564. height: 40px;
  565. width: 280px;
  566. justify-content: flex-start;
  567. }
  568. }
  569. }
  570. .NNPE-detail {
  571. clear: both;
  572. overflow: hidden;
  573. display: flex;
  574. justify-content: flex-start;
  575. align-items: flex-start;
  576. &.active {
  577. background: rgba(0, 0, 0, 0.06);
  578. }
  579. .article-content {
  580. width: 100%;
  581. box-sizing: border-box;
  582. padding: 8px 24px 8px 24px;
  583. display: flex;
  584. justify-content: flex-start;
  585. align-items: flex-start;
  586. &.hasRemark {
  587. width: 553px;
  588. border-right: 1px rgba(0, 0, 0, 0.1) solid;
  589. padding: 8px 0px 8px 23px;
  590. }
  591. &.paraLast {
  592. padding-bottom: 24px;
  593. }
  594. }
  595. .NNPE-words {
  596. float: left;
  597. &-box {
  598. float: left;
  599. > span {
  600. display: block;
  601. &.NNPE-pinyin {
  602. font-family: "GB-PINYINOK-B";
  603. font-weight: normal;
  604. font-size: 14px;
  605. line-height: 22px;
  606. color: #000000;
  607. height: 21px;
  608. &.textLeft {
  609. text-align: left;
  610. }
  611. }
  612. &.NNPE-chs {
  613. font-family: "FZJCGFKTK";
  614. font-size: 20px;
  615. line-height: 28px;
  616. color: #000000;
  617. &.active {
  618. background: rgba(60, 200, 99, 0.2);
  619. }
  620. &.wordActive {
  621. color: #de4444;
  622. }
  623. }
  624. &.padding {
  625. padding: 0 3px;
  626. }
  627. }
  628. }
  629. &.textLeft {
  630. text-align: left;
  631. }
  632. &.textCenter {
  633. text-align: center;
  634. }
  635. > span {
  636. display: block;
  637. &.NNPE-pinyin {
  638. font-family: "GB-PINYINOK-B";
  639. font-weight: normal;
  640. font-size: 14px;
  641. line-height: 22px;
  642. color: #000000;
  643. height: 21px;
  644. &.textLeft {
  645. text-align: left;
  646. }
  647. }
  648. &.NNPE-chs {
  649. font-family: "FZJCGFKTK";
  650. font-size: 20px;
  651. line-height: 28px;
  652. color: #000000;
  653. &.active {
  654. background: rgba(60, 200, 99, 0.2);
  655. }
  656. &.wordActive {
  657. color: #de4444;
  658. }
  659. }
  660. &.padding {
  661. padding: 0 3px;
  662. }
  663. }
  664. .answer-input {
  665. height: 28px;
  666. box-sizing: border-box;
  667. border: 0;
  668. border-bottom: 1px #000 solid;
  669. background: 0 0;
  670. width: 100px;
  671. outline: 0;
  672. text-align: center;
  673. font-family: "FZJCGFKTK";
  674. font-size: 20px;
  675. padding: 0 10px;
  676. box-sizing: border-box;
  677. color: #000000;
  678. }
  679. }
  680. .enwords {
  681. font-family: "robot";
  682. font-weight: normal;
  683. font-size: 14px;
  684. line-height: 22px;
  685. color: rgba(0, 0, 0, 0.85);
  686. }
  687. &.NNPE-detail-title {
  688. .wordsList-box {
  689. > div {
  690. display: flex;
  691. justify-content: center;
  692. }
  693. }
  694. }
  695. .index {
  696. width: 48px;
  697. box-sizing: border-box;
  698. padding: 8px;
  699. text-align: right;
  700. border-right: 1px solid rgba(0, 0, 0, 0.1);
  701. b {
  702. font-weight: 400;
  703. color: #000000;
  704. line-height: 1.5;
  705. }
  706. }
  707. .wordsList-box {
  708. width: 100%;
  709. padding: 0px 24px 0px 8px;
  710. clear: both;
  711. overflow: hidden;
  712. .roleDetail {
  713. height: 36px;
  714. display: flex;
  715. justify-content: flex-start;
  716. align-items: center;
  717. .pinyin {
  718. font-family: "GB-PINYINOK-B";
  719. font-size: 14px;
  720. line-height: 22px;
  721. color: rgba(0, 0, 0, 0.85);
  722. margin-right: 4px;
  723. }
  724. .chs {
  725. font-family: "FZJCGFKTK";
  726. font-size: 16px;
  727. line-height: 24px;
  728. color: rgba(0, 0, 0, 0.85);
  729. }
  730. }
  731. > .para-con {
  732. float: left;
  733. border: 1px solid rgba(0, 0, 0, 0.1);
  734. box-sizing: border-box;
  735. padding: 8px 12px 8px 12px;
  736. border-radius: 8px;
  737. }
  738. > img {
  739. width: 100%;
  740. display: block;
  741. }
  742. .input-record {
  743. margin-top: 8px;
  744. .mini-box {
  745. width: 64px;
  746. border: 1px solid rgba(0, 0, 0, 0.1);
  747. border-radius: 8px;
  748. padding: 0 12px;
  749. }
  750. }
  751. }
  752. }
  753. .remarkBox {
  754. flex: 1;
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. &.remark72 {
  759. padding-top: 72px;
  760. }
  761. &.remark-top {
  762. padding-top: 44px;
  763. }
  764. }
  765. .NNPE-para-pinyin {
  766. font-weight: normal;
  767. font-size: 20px;
  768. line-height: 28px;
  769. color: #000000;
  770. height: 28px;
  771. }
  772. }
  773. </style>