Practicechs.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. <!-- -->
  2. <template>
  3. <div v-if="curQue" class="NNPE-ArticleView">
  4. <!-- <a class="ArticleView-full" @click="fullScreen">全屏模式</a> -->
  5. <div
  6. v-if="
  7. ((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
  8. config.isHasPY ||
  9. config.isHasEN) &&
  10. curQue.property.mp3_position === 'top'
  11. "
  12. class="aduioLine-box aduioLine-practice-npc"
  13. >
  14. <div class="aduioLine-content">
  15. <template v-if="curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url">
  16. <AudioLine
  17. ref="audioLine"
  18. audio-id="artPraAudio"
  19. :mp3="curQue.mp3_list[0].url"
  20. :get-cur-time="getCurTime"
  21. :stop-audio="stopAudio"
  22. :width="colLength == 2 ? 175 : 700"
  23. :mp3-source="curQue.mp3_list[0].source"
  24. :ed="ed"
  25. type="audioLine"
  26. :attrib="attrib"
  27. @handleChangeStopAudio="handleChangeStopAudio"
  28. @emptyEd="emptyEd"
  29. />
  30. </template>
  31. </div>
  32. <div class="aduioLine-right">
  33. <SvgIcon
  34. v-if="config.isHasPY"
  35. icon-class="repeat-1"
  36. size="16"
  37. :class="['Repeat-16', isRepeat ? '' : 'disabled']"
  38. :style="{ color: isRepeat ? (attrib ? attrib.topic_color : '') : '#DCDFE6', cursor: 'pointer' }"
  39. @click="changeRepeat"
  40. />
  41. <!-- <span
  42. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  43. @click="changePinyin"
  44. v-if="config.isHasPY"
  45. ></span>
  46. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  47. <SvgIcon
  48. v-if="config.isHasPY"
  49. icon-class="pin-btn"
  50. size="16"
  51. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  52. :style="{ color: config.isShowPY ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  53. @click="changePinyin"
  54. />
  55. <!-- <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  56. <SvgIcon
  57. v-if="config.isHasEN"
  58. icon-class="en-btn"
  59. size="16"
  60. :class="['EN-16', config.isShowEN ? '' : 'disabled']"
  61. :style="{ color: config.isShowEN ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  62. @click="changeEN"
  63. />
  64. </div>
  65. </div>
  66. <template v-if="resObj">
  67. <!-- -->
  68. <div class="NPC-sentences-list">
  69. <div
  70. v-for="(item, index) in resObj.sentList"
  71. :key="'detail' + index"
  72. :class="['NNPE-detail-box', sentIndex == index ? 'active' : '']"
  73. :style="{
  74. backgroundColor: sentIndex == index && attrib ? attrib.assist_color : '',
  75. }"
  76. >
  77. <div
  78. :class="['NNPE-detail']"
  79. @click="
  80. handleChangeTime(
  81. curQue.wordTime && curQue.wordTime[index] && curQue.wordTime[index].bg,
  82. index,
  83. curQue.wordTime && curQue.wordTime[index] && curQue.wordTime[index].ed,
  84. )
  85. "
  86. >
  87. <div
  88. v-if="item.enwords && config.isShowEN && curQue.enPosition && curQue.enPosition == 'top'"
  89. :class="['enwords', sentIndex == index ? 'wordBlank' : '']"
  90. >
  91. {{ item.enwords }}
  92. </div>
  93. <div style="overflow: hidden; clear: both"></div>
  94. <div
  95. v-for="(pItem, pIndex) in item.sentArr"
  96. :key="'wordsList' + pIndex"
  97. class="NNPE-words"
  98. :class="[
  99. pItem.chs != '“' && pItem.wordIndex == 0 ? 'textLeft' : 'textCenter',
  100. pItem.chs == '“' ? 'textRight' : '',
  101. ]"
  102. >
  103. <template v-if="!pItem.width">
  104. <template v-if="pItem.isShow">
  105. <template
  106. v-if="
  107. item.sentArr[pIndex + 1] &&
  108. item.sentArr[pIndex + 1].chs &&
  109. chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1
  110. "
  111. >
  112. <span class="NNPE-words-box">
  113. <template v-if="curQue.property.pinyin_position == 'top'">
  114. <span
  115. v-if="config.isShowPY"
  116. class="NNPE-pinyin"
  117. :class="[
  118. pItem.className ? pItem.className : '',
  119. sentIndex == index ? 'wordBlank' : '',
  120. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  121. ]"
  122. :style="{
  123. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  124. height:
  125. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  126. }"
  127. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  128. >
  129. </template>
  130. <span
  131. class="NNPE-chs"
  132. :class="[
  133. pItem.padding && config.isShowPY ? 'padding' : '',
  134. sentIndex == index ? 'wordBlank' : '',
  135. ]"
  136. >
  137. <template>
  138. <span
  139. v-for="(wItem, wIndex) in pItem.leg"
  140. :key="'ci' + wIndex + pIndex + index"
  141. :class="[
  142. pItem.timeList[wIndex] &&
  143. curTime >= pItem.timeList[wIndex].wordBg &&
  144. curTime <= curQue.wordTime[index].ed
  145. ? 'active'
  146. : '',
  147. sentIndex == index ? 'wordBlank' : '',
  148. ]"
  149. :style="{
  150. fontFamily: pItem.config.fontFamily,
  151. height:
  152. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  153. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  154. lineHeight:
  155. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  156. display: 'inline-block',
  157. width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
  158. color:
  159. pItem.timeList[wIndex] &&
  160. curTime >= pItem.timeList[wIndex].wordBg &&
  161. curTime <= curQue.wordTime[index].ed &&
  162. attrib
  163. ? attrib.topic_color
  164. : '',
  165. }"
  166. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.chs[wIndex] : '' }}</span
  167. >
  168. </template>
  169. </span>
  170. <template v-if="curQue.property.pinyin_position == 'bottom'">
  171. <span
  172. v-if="config.isShowPY"
  173. class="NNPE-pinyin"
  174. :class="[
  175. pItem.className ? pItem.className : '',
  176. sentIndex == index ? 'wordBlank' : '',
  177. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  178. ]"
  179. :style="{
  180. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  181. height:
  182. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  183. }"
  184. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  185. >
  186. </template>
  187. </span>
  188. <span class="NNPE-words-box">
  189. <template v-if="curQue.property.pinyin_position == 'top'">
  190. <span
  191. v-if="config.isShowPY"
  192. :class="[
  193. 'NNPE-pinyin',
  194. sentIndex == index ? 'wordBlank' : '',
  195. noFont.indexOf(item.sentArr[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  196. ]"
  197. style="text-align: left"
  198. :style="{
  199. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  200. height:
  201. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  202. }"
  203. >{{
  204. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  205. ? item.sentArr[pIndex + 1].pinyin
  206. : ''
  207. }}</span
  208. >
  209. </template>
  210. <span class="NNPE-chs" style="text-align: left" :class="[sentIndex == index ? 'wordBlank' : '']">
  211. <span
  212. :class="[
  213. pItem.timeList[pItem.leg - 1] &&
  214. curQue.wordTime &&
  215. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  216. curTime <= curQue.wordTime[index].ed
  217. ? 'active'
  218. : '',
  219. sentIndex == index ? 'wordBlank' : '',
  220. ]"
  221. :style="{
  222. fontFamily: item.sentArr[pIndex + 1].config.fontFamily,
  223. height:
  224. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  225. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  226. lineHeight:
  227. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  228. display: 'inline-block',
  229. width: item.sentArr[pIndex + 1].chs.trim() === '' ? '6px' : '',
  230. color:
  231. pItem.timeList[pItem.leg - 1] &&
  232. curQue.wordTime &&
  233. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  234. curTime <= curQue.wordTime[index].ed &&
  235. attrib
  236. ? attrib.topic_color
  237. : '',
  238. }"
  239. >
  240. {{
  241. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  242. ? item.sentArr[pIndex + 1].chs
  243. : ''
  244. }}</span
  245. >
  246. </span>
  247. <template v-if="curQue.property.pinyin_position == 'bottom'">
  248. <span
  249. v-if="config.isShowPY"
  250. :class="[
  251. 'NNPE-pinyin',
  252. sentIndex == index ? 'wordBlank' : '',
  253. noFont.indexOf(item.sentArr[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  254. ]"
  255. style="text-align: left"
  256. :style="{
  257. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  258. height:
  259. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  260. }"
  261. >{{
  262. NumberList.indexOf(item.sentArr[pIndex + 1].pinyin) == -1
  263. ? item.sentArr[pIndex + 1].pinyin
  264. : ''
  265. }}</span
  266. >
  267. </template>
  268. </span>
  269. <span
  270. v-if="
  271. item.sentArr[pIndex + 2] &&
  272. item.sentArr[pIndex + 2].chs &&
  273. chsFhList.indexOf(item.sentArr[pIndex + 2].chs) > -1
  274. "
  275. class="NNPE-words-box"
  276. >
  277. <template v-if="curQue.property.pinyin_position == 'top'">
  278. <span
  279. v-if="config.isShowPY"
  280. :class="[
  281. 'NNPE-pinyin',
  282. sentIndex == index ? 'wordBlank' : '',
  283. noFont.indexOf(item.sentArr[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  284. ]"
  285. style="text-align: left"
  286. :style="{
  287. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  288. height:
  289. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  290. }"
  291. >{{
  292. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  293. ? item.sentArr[pIndex + 2].pinyin
  294. : ''
  295. }}</span
  296. >
  297. </template>
  298. <span class="NNPE-chs" style="text-align: left" :class="[sentIndex == index ? 'wordBlank' : '']">
  299. <span
  300. :class="[
  301. pItem.timeList[pItem.leg - 1] &&
  302. curQue.wordTime &&
  303. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  304. curTime <= curQue.wordTime[index].ed
  305. ? 'active'
  306. : '',
  307. sentIndex == index ? 'wordBlank' : '',
  308. ]"
  309. :style="{
  310. fontFamily: item.sentArr[pIndex + 2].config.fontFamily,
  311. height:
  312. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  313. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  314. lineHeight:
  315. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  316. display: 'inline-block',
  317. width: item.sentArr[pIndex + 2].chs.trim() === '' ? '6px' : '',
  318. color:
  319. pItem.timeList[pItem.leg - 1] &&
  320. curQue.wordTime &&
  321. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  322. curTime <= curQue.wordTime[index].ed &&
  323. attrib
  324. ? attrib.topic_color
  325. : '',
  326. }"
  327. >
  328. {{
  329. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  330. ? item.sentArr[pIndex + 2].chs
  331. : ''
  332. }}</span
  333. >
  334. </span>
  335. <template v-if="curQue.property.pinyin_position == 'bottom'">
  336. <span
  337. v-if="config.isShowPY"
  338. :class="[
  339. 'NNPE-pinyin',
  340. sentIndex == index ? 'wordBlank' : '',
  341. noFont.indexOf(item.sentArr[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  342. ]"
  343. style="text-align: left"
  344. :style="{
  345. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  346. height:
  347. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  348. }"
  349. >{{
  350. NumberList.indexOf(item.sentArr[pIndex + 2].pinyin) == -1
  351. ? item.sentArr[pIndex + 2].pinyin
  352. : ''
  353. }}</span
  354. >
  355. </template>
  356. </span>
  357. </template>
  358. <template v-else>
  359. <template v-if="curQue.property.pinyin_position == 'top'">
  360. <span
  361. v-if="config.isShowPY"
  362. class="NNPE-pinyin"
  363. :class="[
  364. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  365. pItem.className ? pItem.className : '',
  366. sentIndex == index ? 'wordBlank' : '',
  367. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  368. ]"
  369. :style="{
  370. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  371. height:
  372. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  373. }"
  374. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  375. >
  376. </template>
  377. <span
  378. class="NNPE-chs"
  379. :class="[
  380. pItem.chs != '“' && pItem.padding && config.isShowPY ? 'padding' : '',
  381. sentIndex == index ? 'wordBlank' : '',
  382. ]"
  383. >
  384. <template>
  385. <span
  386. v-for="(wItem, wIndex) in pItem.leg"
  387. :key="'ci' + wIndex + pIndex + index"
  388. :class="[
  389. pItem.timeList[wIndex] &&
  390. curQue.wordTime &&
  391. curQue.wordTime[index] &&
  392. curTime >= pItem.timeList[wIndex].wordBg &&
  393. curTime <= curQue.wordTime[index].ed
  394. ? 'active'
  395. : '',
  396. sentIndex == index ? 'wordBlank' : '',
  397. ]"
  398. :style="{
  399. fontFamily: pItem.config.fontFamily,
  400. height:
  401. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  402. fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
  403. lineHeight:
  404. attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
  405. display: 'inline-block',
  406. width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
  407. color:
  408. pItem.timeList[wIndex] &&
  409. curQue.wordTime &&
  410. curQue.wordTime[index] &&
  411. curTime >= pItem.timeList[wIndex].wordBg &&
  412. curTime <= curQue.wordTime[index].ed &&
  413. attrib
  414. ? attrib.topic_color
  415. : '',
  416. }"
  417. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.chs[wIndex] : '' }}</span
  418. >
  419. </template>
  420. </span>
  421. <template v-if="curQue.property.pinyin_position == 'bottom'">
  422. <span
  423. v-if="config.isShowPY"
  424. class="NNPE-pinyin"
  425. :class="[
  426. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  427. pItem.className ? pItem.className : '',
  428. sentIndex == index ? 'wordBlank' : '',
  429. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  430. ]"
  431. :style="{
  432. fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
  433. height:
  434. attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
  435. }"
  436. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  437. >
  438. </template>
  439. </template>
  440. </template>
  441. </template>
  442. <template v-else>
  443. <span
  444. :style="{
  445. height: pItem.height + 'px',
  446. width: pItem.width + 'px',
  447. }"
  448. ></span>
  449. </template>
  450. </div>
  451. <div style="overflow: hidden; clear: both"></div>
  452. <div
  453. v-if="
  454. item.enwords &&
  455. config.isShowEN &&
  456. (!curQue.enPosition || (curQue.enPosition && curQue.enPosition == 'bottom'))
  457. "
  458. :class="['enwords', sentIndex == index ? 'wordBlank' : '']"
  459. >
  460. {{ item.enwords }}
  461. </div>
  462. </div>
  463. <div
  464. v-if="curQue.property.multilingual_position === 'para'"
  465. class="multilingual-para"
  466. :class="[item.isTitle ? 'multilingual-para-center' : '']"
  467. >
  468. {{
  469. multilingualTextList[multilingual] && multilingualTextList[multilingual][index]
  470. ? multilingualTextList[multilingual][index]
  471. : ''
  472. }}
  473. </div>
  474. <div
  475. v-show="
  476. (curQue.wordTime &&
  477. curQue.wordTime[index] &&
  478. curTime >= curQue.wordTime[index].bg &&
  479. curTime <= curQue.wordTime[index].ed) ||
  480. sentIndex == index
  481. "
  482. class="Soundrecord-content"
  483. >
  484. <div class="Soundrecord-content-inner">
  485. <Soundrecord
  486. v-if="refresh"
  487. type="promax"
  488. class="luyin-box"
  489. :TaskModel="TaskModel"
  490. :answer-record-list="
  491. curQue.Bookanswer.practiceModel[index] && curQue.Bookanswer.practiceModel[index].recordList
  492. "
  493. :tm-index="index"
  494. :sent-index="sentIndex"
  495. @getWavblob="getWavblob"
  496. @handleParentPlay="handleParentPlay"
  497. @sentPause="sentPause"
  498. @handleWav="handleWav"
  499. :attrib="attrib"
  500. />
  501. <div v-if="curQue.mp3_list && curQue.mp3_list.length > 0" class="compare-box">
  502. <Audio-compare
  503. :theme-color="themeColor"
  504. :index="index"
  505. :sent-index="sentIndex"
  506. :url="curQue.mp3_list[0].id"
  507. :bg="curQue.wordTime[index].bg"
  508. :ed="curQue.wordTime[index].ed"
  509. :wavblob="wavblob"
  510. :get-cur-time="getCurTime"
  511. :sent-pause="sentPause"
  512. :is-record="isRecord"
  513. :handle-change-stop-audio="handleChangeStopAudio"
  514. :get-play-status="getPlayStatus"
  515. :attrib="attrib"
  516. />
  517. </div>
  518. </div>
  519. <span class="full-screen-icon" @click="fullScreen">
  520. <svg-icon
  521. icon-class="icon-full"
  522. size="24"
  523. :style="{
  524. color: attrib && attrib.topic_color ? attrib.topic_color : '',
  525. }"
  526. />
  527. </span>
  528. </div>
  529. </div>
  530. <!-- <div class="multilingual" v-for="(items, indexs) in multilingualTextList" :key="indexs">
  531. {{ items }}
  532. </div> -->
  533. </div>
  534. </template>
  535. <template v-for="(items, indexs) in curQue.detail">
  536. <div
  537. v-if="
  538. curQue.property.multilingual_position === 'all' &&
  539. items.multilingualTextList &&
  540. items.multilingualTextList[multilingual] &&
  541. items.multilingualTextList[multilingual].length > 0
  542. "
  543. :key="indexs"
  544. class="multilingual"
  545. >
  546. <div class="multilingual-para" :class="[items.isTitle ? 'multilingual-para-center' : '']">
  547. {{
  548. items.multilingualTextList && items.multilingualTextList[multilingual]
  549. ? items.multilingualTextList[multilingual].join(' ')
  550. : ''
  551. }}
  552. </div>
  553. </div>
  554. </template>
  555. <div
  556. v-if="
  557. ((curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url) ||
  558. config.isHasPY ||
  559. config.isHasEN) &&
  560. curQue.property.mp3_position === 'bottom'
  561. "
  562. class="aduioLine-box aduioLine-practice-npc aduioLine-box-bottom"
  563. >
  564. <div class="aduioLine-content">
  565. <template v-if="curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url">
  566. <AudioLine
  567. ref="audioLine"
  568. audio-id="artPraAudio"
  569. :mp3="curQue.mp3_list[0].url"
  570. :get-cur-time="getCurTime"
  571. :stop-audio="stopAudio"
  572. :width="colLength == 2 ? 175 : 700"
  573. :mp3-source="curQue.mp3_list[0].source"
  574. :ed="ed"
  575. type="audioLine"
  576. :attrib="attrib"
  577. @handleChangeStopAudio="handleChangeStopAudio"
  578. @emptyEd="emptyEd"
  579. />
  580. </template>
  581. </div>
  582. <div class="aduioLine-right">
  583. <!-- <span :class="['Repeat-16', isRepeat ? '' : 'disabled']" @click="changeRepeat"></span>
  584. <span
  585. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  586. @click="changePinyin"
  587. v-if="config.isHasPY"
  588. ></span>
  589. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  590. <SvgIcon
  591. v-if="config.isHasPY"
  592. icon-class="repeat-1"
  593. size="16"
  594. :class="['Repeat-16', isRepeat ? '' : 'disabled']"
  595. :style="{ color: isRepeat ? (attrib ? attrib.topic_color : '') : '#DCDFE6', cursor: 'pointer' }"
  596. @click="changeRepeat"
  597. />
  598. <!-- <span
  599. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  600. @click="changePinyin"
  601. v-if="config.isHasPY"
  602. ></span>
  603. <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  604. <SvgIcon
  605. v-if="config.isHasPY"
  606. icon-class="pin-btn"
  607. size="16"
  608. :class="['pinyin-16', config.isShowPY ? '' : 'disabled']"
  609. :style="{ color: config.isShowPY ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  610. @click="changePinyin"
  611. />
  612. <!-- <span :class="['EN-16', config.isShowEN ? '' : 'disabled']" @click="changeEN" v-if="config.isHasEN"></span> -->
  613. <SvgIcon
  614. v-if="config.isHasEN"
  615. icon-class="en-btn"
  616. size="16"
  617. :class="['EN-16', config.isShowEN ? '' : 'disabled']"
  618. :style="{ color: config.isShowEN ? (attrib ? attrib.topic_color : '') : '#DCDFE6' }"
  619. @click="changeEN"
  620. />
  621. </div>
  622. </div>
  623. <div :id="'screen-' + mathNum" class="voice-full-screen">
  624. <Voicefullscreen
  625. v-if="isFull && resObj"
  626. :theme-color="themeColor"
  627. :cur-que="curQue"
  628. :sent-list="resObj.sentList"
  629. :sent-index="sentIndex"
  630. :mp3="curQue.mp3_list && curQue.mp3_list[0] ? curQue.mp3_list[0].url : ''"
  631. :no-font="noFont"
  632. :NNPENewWordList="NNPENewWordList"
  633. :NNPEAnnotationList="NNPEAnnotationList"
  634. :current-tree-i-d="currentTreeID"
  635. :config="config"
  636. :TaskModel="TaskModel"
  637. :attrib="attrib"
  638. @handleWav="handleWav"
  639. @changePinyin="changePinyin"
  640. @changeEN="changeEN"
  641. @exitFullscreen="exitFullscreen"
  642. @changeIsFull="changeIsFull"
  643. />
  644. </div>
  645. </div>
  646. </template>
  647. <script>
  648. import AudioLine from '../voice_matrix/components/AudioLine.vue';
  649. import Soundrecord from '../../common/SoundRecord.vue';
  650. import AudioCompare from './components/AudioCompare.vue';
  651. import Voicefullscreen from './Voicefullscreen.vue';
  652. export default {
  653. name: 'ArticleView',
  654. components: {
  655. AudioLine,
  656. Soundrecord,
  657. AudioCompare,
  658. Voicefullscreen,
  659. },
  660. props: [
  661. 'curQue',
  662. 'noFont',
  663. 'themeColor',
  664. 'NNPENewWordList',
  665. 'NNPEAnnotationList',
  666. 'currentTreeID',
  667. 'config',
  668. 'TaskModel',
  669. 'colLength',
  670. 'isFull',
  671. 'multilingual',
  672. 'attrib',
  673. ],
  674. data() {
  675. return {
  676. resObj: null,
  677. curTime: 0, // 单位s
  678. chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '、'],
  679. enFhList: [',', '.', ';', '?', '!', ':', '>', '<'],
  680. NumberList: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳'],
  681. stopAudio: false,
  682. sentIndex: 0,
  683. isRepeat: false,
  684. currSent: null, // 当前句子的时间
  685. isRecord: false,
  686. wavblob: null,
  687. mathNum: Math.random().toString(36).substr(2),
  688. ed: undefined,
  689. refresh: true,
  690. multilingualTextList: {},
  691. };
  692. },
  693. computed: {
  694. isPlaying() {
  695. let playing = false;
  696. if (this.$refs.audioLine) {
  697. playing = this.$refs.audioLine.audio.isPlaying;
  698. }
  699. return playing;
  700. },
  701. },
  702. watch: {
  703. sentIndex: {
  704. handler(newVal, oldVal) {
  705. let _this = this;
  706. if (newVal != oldVal) {
  707. let Bookanswer = _this.curQue.Bookanswer;
  708. if (
  709. Bookanswer &&
  710. Bookanswer.practiceModel &&
  711. Bookanswer.practiceModel[newVal] &&
  712. Bookanswer.practiceModel[newVal].recordList &&
  713. Bookanswer.practiceModel[newVal].recordList.length > 0
  714. ) {
  715. _this.wavblob = Bookanswer.practiceModel[newVal].recordList[0].wavData;
  716. } else {
  717. _this.wavblob = '';
  718. }
  719. }
  720. },
  721. deep: true,
  722. },
  723. isFull: {
  724. handler(newVal, oldVal) {
  725. let _this = this;
  726. _this.refresh = false;
  727. if (!newVal) {
  728. _this.$nextTick(() => {
  729. // 重新渲染组件
  730. _this.refresh = true;
  731. });
  732. }
  733. },
  734. deep: true,
  735. },
  736. },
  737. // 生命周期 - 创建完成(可以访问当前this实例)
  738. created() {},
  739. // 生命周期 - 挂载完成(可以访问DOM元素)
  740. mounted() {
  741. if (this.curQue) {
  742. this.handleData();
  743. }
  744. },
  745. beforeCreate() {}, // 生命周期 - 创建之前
  746. beforeMount() {}, // 生命周期 - 挂载之前
  747. beforeUpdate() {}, // 生命周期 - 更新之前
  748. updated() {}, // 生命周期 - 更新之后
  749. beforeDestroy() {}, // 生命周期 - 销毁之前
  750. destroyed() {}, // 生命周期 - 销毁完成
  751. activated() {},
  752. // 方法集合
  753. methods: {
  754. getPlayStatus(val) {
  755. // this.isPlaying = val;
  756. },
  757. // 拼音的显示和隐藏
  758. changePinyin() {
  759. if (this.config.isHasPY) {
  760. this.$emit('changeConfig', 'isShowPY');
  761. }
  762. },
  763. // 英文的显示和隐藏
  764. changeEN() {
  765. if (this.config.isHasEN) {
  766. this.$emit('changeConfig', 'isShowEN');
  767. }
  768. },
  769. pauseAudio() {
  770. let audio = document.getElementsByTagName('audio');
  771. if (audio && audio.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && audio.forEach) {
  772. audio.forEach((item) => {
  773. item.pause();
  774. });
  775. }
  776. },
  777. pauseVideo() {
  778. let video = document.getElementsByTagName('video');
  779. if (video && video.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && video.forEach) {
  780. video.forEach((item) => {
  781. item.pause();
  782. });
  783. }
  784. },
  785. // 语音全屏
  786. fullScreen() {
  787. this.pauseAudio();
  788. this.pauseVideo();
  789. this.isFull = true;
  790. this.goFullscreen();
  791. },
  792. goFullscreen() {
  793. let id = `screen-${this.mathNum}`;
  794. let element = document.getElementById(id);
  795. if (element.requestFullscreen) {
  796. element.requestFullscreen();
  797. } else if (element.msRequestFullscreen) {
  798. element.msRequestFullscreen();
  799. } else if (element.mozRequestFullScreen) {
  800. element.mozRequestFullScreen();
  801. } else if (element.webkitRequestFullscreen) {
  802. element.webkitRequestFullscreen();
  803. }
  804. },
  805. exitFullscreen() {
  806. this.isFull = false;
  807. if (document.exitFullscreen) {
  808. document.exitFullscreen();
  809. } else if (document.msExitFullscreen) {
  810. document.msExitFullscreen();
  811. } else if (document.mozCancelFullScreen) {
  812. document.mozCancelFullScreen();
  813. } else if (document.webkitExitFullscreen) {
  814. document.webkitExitFullscreen();
  815. }
  816. },
  817. changeIsFull() {
  818. this.isFull = false;
  819. },
  820. getWavblob(wavblob) {
  821. this.wavblob = wavblob;
  822. },
  823. sentPause(isRecord) {
  824. this.isRecord = isRecord;
  825. },
  826. getCurTime(curTime) {
  827. let _this = this;
  828. if (_this.isRepeat) {
  829. let time = curTime * 1000;
  830. if (time >= _this.currSent.ed || time <= _this.currSent.bg) {
  831. _this.curTime = _this.currSent.bg;
  832. this.$refs.audioLine.onTimeupdateTime(_this.currSent.bg / 1000, true);
  833. } else {
  834. _this.curTime = curTime * 1000;
  835. }
  836. } else {
  837. _this.curTime = curTime * 1000;
  838. _this.getSentIndex(_this.curTime);
  839. }
  840. },
  841. getSentIndex(curTime) {
  842. for (let i = 0; i < this.curQue.wordTime.length; i++) {
  843. let bg = this.curQue.wordTime[i].bg;
  844. let ed = this.curQue.wordTime[i].ed;
  845. if (curTime >= bg && curTime <= ed) {
  846. this.sentIndex = i;
  847. break;
  848. }
  849. }
  850. },
  851. handleData() {
  852. this.curQue.multilingual.forEach((item) => {
  853. let trans_arr = item.translation.split('\n');
  854. this.$set(this.multilingualTextList, item.type, trans_arr);
  855. });
  856. let resArr = [];
  857. let sentArrTotal = [];
  858. let timeArr = [];
  859. let curQue = JSON.parse(JSON.stringify(this.curQue));
  860. let wordTimeList = curQue.wordTime;
  861. let dhaspinyin = false; // 每段是否有拼音
  862. let dhaspinyinArr = [];
  863. curQue.detail.forEach((dItem, dIndex) => {
  864. dhaspinyin = false;
  865. dItem.wordsList.forEach((sItem, sIndex) => {
  866. let sentArr = [];
  867. sItem.forEach((wItem, wIndex) => {
  868. let startIndex = wIndex == 0 ? 0 : sentArr[wIndex - 1].startIndex + sentArr[wIndex - 1].chs.length;
  869. let endIndex = wIndex == 0 ? wItem.chs.length : sentArr[wIndex - 1].endIndex + wItem.chs.length;
  870. // this.judgePad(sItem, wItem, wIndex);
  871. this.mergeWordSymbol(wItem);
  872. let obj = {
  873. paraIndex: dIndex, // 段落索引
  874. sentIndex: sIndex, // 在段落中句子索引
  875. wordIndex: wIndex, // 单词的索引
  876. pinyin:
  877. curQue.pinyin_type === 'pinyin'
  878. ? curQue.property.is_first_sentence_first_hz_pinyin_first_char_upper_case === 'true' && wIndex === 0
  879. ? wItem.pinyin_up
  880. : wItem.pinyin
  881. : wItem.pinyin_tone,
  882. chs: wItem.chs,
  883. padding: true,
  884. className: wItem.className,
  885. isShow: wItem.isShow,
  886. startIndex,
  887. endIndex,
  888. leg: wItem.chs.length,
  889. timeList: [],
  890. config: {
  891. fontFamily: wItem.fontFamily,
  892. },
  893. };
  894. sentArr.push(obj);
  895. if (wItem.pinyin) dhaspinyin = true;
  896. });
  897. let objs = {
  898. sentArr,
  899. enwords: dItem.sentencesEn && dItem.sentencesEn[sIndex] && dItem.sentencesEn[sIndex].replace(/\'/g, '’'),
  900. };
  901. sentArrTotal.push(sentArr);
  902. resArr.push(objs);
  903. });
  904. timeArr.push(dItem.timeList);
  905. dhaspinyinArr.push(dhaspinyin);
  906. });
  907. if (wordTimeList && wordTimeList.length > 0) {
  908. this.mergeWordTime(sentArrTotal, wordTimeList);
  909. }
  910. let timeList = [];
  911. timeArr.forEach((item) => {
  912. item.forEach((aItem) => {
  913. if (timeList.indexOf(aItem) < 0) {
  914. timeList.push(aItem);
  915. }
  916. });
  917. });
  918. this.resObj = {
  919. sentList: resArr,
  920. timeList,
  921. dhaspinyinArr,
  922. };
  923. },
  924. mergeWordTime(resArr, wordTimeList) {
  925. resArr.forEach((item, index) => {
  926. let wordsResultList = wordTimeList[index].wordsResultList;
  927. item.forEach((wItem) => {
  928. let startIndex = wItem.startIndex;
  929. let endIndex = wItem.endIndex;
  930. wItem.timeList = wordsResultList.slice(startIndex, endIndex);
  931. });
  932. });
  933. },
  934. // 词和标点合一起
  935. mergeWordSymbol(wItem) {
  936. if (this.chsFhList.indexOf(wItem.chs) > -1) {
  937. wItem.isShow = false;
  938. } else {
  939. wItem.isShow = true;
  940. }
  941. },
  942. // 判断是否有padding
  943. judgePad(sItem, wItem, curIndex) {
  944. let leg = sItem.length;
  945. if (curIndex < leg - 1) {
  946. let nextIndex = curIndex + 1;
  947. let chs = sItem[nextIndex].chs;
  948. if (this.chsFhList.indexOf(chs) > -1 || this.chsFhList.indexOf(wItem.chs) > -1) {
  949. wItem.padding = false;
  950. } else {
  951. wItem.padding = true;
  952. }
  953. if (this.enFhList.indexOf(wItem.pinyin) > -1) {
  954. wItem.className = 'textLeft';
  955. }
  956. }
  957. },
  958. // 转化时间
  959. handleTimeList(list) {
  960. let listRes = [];
  961. list.forEach((item) => {
  962. let res = timeStrToSen(item);
  963. listRes.push(res);
  964. });
  965. return listRes;
  966. },
  967. // 分:秒转秒
  968. timeStrToSen(time) {
  969. if (!time) {
  970. return -1;
  971. }
  972. let pos = time.indexOf(':');
  973. let min = 0;
  974. let sec = 0;
  975. if (pos > 0) {
  976. min = parseInt(time.substring(0, pos));
  977. sec = parseFloat(time.substring(pos + 1));
  978. }
  979. return min * 60 + sec;
  980. },
  981. // 计算总时间
  982. countWordTime(sentArr) {
  983. let total = 0;
  984. sentArr.forEach((item) => {
  985. total += item.endTime;
  986. });
  987. return total;
  988. },
  989. // 点击播放某个句子
  990. handleChangeTime(time, index, ed) {
  991. let _this = this;
  992. if (this.isRepeat) {
  993. _this.currSent = _this.curQue.wordTime[index];
  994. }
  995. _this.sentIndex = index;
  996. _this.ed = ed;
  997. if (time) {
  998. _this.curTime = time;
  999. _this.$refs.audioLine.onTimeupdateTime(time / 1000, true);
  1000. }
  1001. },
  1002. emptyEd() {
  1003. this.ed = undefined;
  1004. },
  1005. handleWav(list, tmIndex) {
  1006. tmIndex = tmIndex || 0;
  1007. this.curQue.Bookanswer.practiceModel[tmIndex] = {
  1008. recordList: [],
  1009. };
  1010. this.$set(this.curQue.Bookanswer.practiceModel[tmIndex], 'recordList', list);
  1011. },
  1012. // 录音时暂停音频播放
  1013. handleParentPlay() {
  1014. this.stopAudio = true;
  1015. },
  1016. // 音频播放时改变布尔值
  1017. handleChangeStopAudio() {
  1018. this.stopAudio = false;
  1019. },
  1020. // 单句是否重复播放
  1021. changeRepeat() {
  1022. let _this = this;
  1023. _this.isRepeat = !_this.isRepeat;
  1024. this.currSent = _this.curQue.wordTime[_this.sentIndex];
  1025. },
  1026. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  1027. };
  1028. </script>
  1029. <style lang="scss" scoped>
  1030. //@import url(); 引入公共css类
  1031. .NNPE-ArticleView {
  1032. position: relative;
  1033. width: 100%;
  1034. .ArticleView-full {
  1035. position: absolute;
  1036. top: -33px;
  1037. left: 0;
  1038. z-index: 99999;
  1039. padding-left: 24px;
  1040. font-size: 14px;
  1041. font-weight: bold;
  1042. line-height: 24px;
  1043. color: #000;
  1044. background: url('@/assets/full-screen-red.png') left center no-repeat;
  1045. background-size: 16px 16px;
  1046. }
  1047. .NPC-sentences-list {
  1048. padding: 16px 0;
  1049. }
  1050. .multilingual {
  1051. padding: 6px 24px 12px;
  1052. word-break: break-word;
  1053. }
  1054. .aduioLine-content {
  1055. flex: 1;
  1056. }
  1057. .NNPE-detail-box {
  1058. box-sizing: border-box;
  1059. width: 100%;
  1060. padding: 8px 24px;
  1061. margin-bottom: 8px;
  1062. &.active {
  1063. background: rgba(222, 68, 68, 15%);
  1064. }
  1065. }
  1066. .aduioLine-practice-npc {
  1067. display: flex;
  1068. align-items: center;
  1069. justify-content: flex-start;
  1070. .aduioLine-right {
  1071. box-sizing: border-box;
  1072. display: flex;
  1073. align-items: center;
  1074. justify-content: space-between;
  1075. width: 92px;
  1076. height: 40px;
  1077. padding: 0 12px;
  1078. border-left: 1px solid rgba(0, 0, 0, 10%);
  1079. .svg-icon {
  1080. width: 16px;
  1081. height: 16px;
  1082. cursor: pointer;
  1083. }
  1084. }
  1085. }
  1086. .NNPE-detail {
  1087. overflow: hidden;
  1088. clear: both;
  1089. .NNPE-words {
  1090. float: left;
  1091. padding-bottom: 5px;
  1092. &-box {
  1093. float: left;
  1094. > span {
  1095. display: block;
  1096. &.NNPE-pinyin {
  1097. height: 20px;
  1098. font-family: 'League';
  1099. font-size: 14px;
  1100. font-weight: normal;
  1101. line-height: 1.5;
  1102. color: rgba(0, 0, 0, 45%);
  1103. &.noFont {
  1104. font-family: initial;
  1105. }
  1106. &.textLeft {
  1107. text-align: left;
  1108. }
  1109. &.wordBlank {
  1110. color: rgba(0, 0, 0, 85%);
  1111. }
  1112. }
  1113. &.NNPE-chs {
  1114. display: flex;
  1115. flex-flow: wrap;
  1116. font-family: '楷体';
  1117. font-size: 20px;
  1118. line-height: 1.4;
  1119. color: rgba(0, 0, 0, 45%);
  1120. .active {
  1121. color: #de4444;
  1122. }
  1123. &.wordBlank {
  1124. color: rgba(0, 0, 0, 85%);
  1125. }
  1126. }
  1127. // &.padding {
  1128. // padding-right: 6px;
  1129. // }
  1130. }
  1131. }
  1132. &.textLeft {
  1133. text-align: left;
  1134. }
  1135. &.textCenter {
  1136. text-align: center;
  1137. .NNPE-chs {
  1138. justify-content: center;
  1139. }
  1140. }
  1141. &.textRight {
  1142. text-align: right;
  1143. }
  1144. > span {
  1145. display: block;
  1146. &.NNPE-pinyin {
  1147. height: 20px;
  1148. font-family: 'League';
  1149. font-size: 14px;
  1150. font-weight: normal;
  1151. line-height: 1.5;
  1152. color: rgba(0, 0, 0, 45%);
  1153. &.noFont {
  1154. font-family: initial;
  1155. }
  1156. &.textLeft {
  1157. text-align: left;
  1158. }
  1159. &.wordBlank {
  1160. color: rgba(0, 0, 0, 85%);
  1161. }
  1162. }
  1163. &.NNPE-chs {
  1164. display: flex;
  1165. flex-flow: wrap;
  1166. font-family: '楷体';
  1167. font-size: 20px;
  1168. line-height: 1.4;
  1169. color: rgba(0, 0, 0, 45%);
  1170. .active {
  1171. color: #de4444;
  1172. }
  1173. &.wordBlank {
  1174. color: rgba(0, 0, 0, 85%);
  1175. }
  1176. }
  1177. &.padding {
  1178. padding: 0 3px;
  1179. }
  1180. }
  1181. }
  1182. }
  1183. .Soundrecord-content {
  1184. display: flex;
  1185. align-items: center;
  1186. justify-content: space-between;
  1187. margin-top: 8px;
  1188. &-inner {
  1189. display: flex;
  1190. align-items: center;
  1191. justify-content: flex-start;
  1192. // width: 304px;
  1193. padding: 4px 12px;
  1194. background: #fff;
  1195. border: 1px solid rgba(0, 0, 0, 10%);
  1196. border-radius: 8px;
  1197. .luyin-box {
  1198. width: 280px;
  1199. // max-width: 280px;
  1200. }
  1201. .compare-box {
  1202. display: flex;
  1203. align-items: center;
  1204. justify-content: center;
  1205. height: 32px;
  1206. }
  1207. }
  1208. .full-screen-icon {
  1209. width: 24px;
  1210. height: 24px;
  1211. cursor: pointer;
  1212. // background: url('@/assets/full-screen-red.png') no-repeat left top;
  1213. // background-size: 100% 100%;
  1214. }
  1215. }
  1216. .enwords {
  1217. padding-left: 3px;
  1218. font-family: 'Helvetica';
  1219. font-size: 14px;
  1220. font-weight: normal;
  1221. line-height: 22px;
  1222. color: rgba(0, 0, 0, 45%);
  1223. word-break: break-word;
  1224. &.wordBlank {
  1225. color: rgba(0, 0, 0, 85%);
  1226. }
  1227. }
  1228. .multilingual-para {
  1229. word-break: break-word;
  1230. &-center {
  1231. text-align: center;
  1232. text-indent: 0;
  1233. }
  1234. }
  1235. }
  1236. </style>