Practicechs.vue 26 KB

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