Voicefullscreen.vue 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054
  1. <!-- -->
  2. <template>
  3. <div v-if="sentList" :class="['voicefull', bgIndex == 0 ? 'bg1' : 'bg2']">
  4. <div class="voicefull-bottom" @mouseover="setTopShow(true)" @mouseleave="setTopShow(false)">
  5. <div :class="[isTopShow ? 'voicefull-bottom-show' : 'voicefull-bottom-hidden']">
  6. <div :class="['bottom-left', TaskModel == 'ANSWER' ? 'bottom-left-margin' : '']"></div>
  7. <div :class="['page-count', bgIndex == 0 ? 'page-count-white' : 'page-count-green']">
  8. {{ curSentIndex + 1 }}/{{ sentList.length }}
  9. </div>
  10. </div>
  11. </div>
  12. <div v-if="item" class="voicefull-content">
  13. <div class="vc-box">
  14. <div
  15. :class="[
  16. 'vc-left vc-left-grey',
  17. isShowLeft && bgIndex == 0 ? 'vc-left-black' : '',
  18. isShowLeft && bgIndex == 1 ? 'vc-left-white' : '',
  19. curSentIndex == 0 ? 'hidden' : '',
  20. ]"
  21. @click="prevSentence"
  22. ></div>
  23. </div>
  24. <div class="vc-main">
  25. <div class="NNPE-words-box">
  26. <div style="overflow: hidden; clear: both"></div>
  27. <div
  28. v-if="enwords && config.isShowEN && curQue.enPosition && curQue.enPosition == 'top'"
  29. :class="['enwords', bgIndex == 1 ? 'enwords-green' : '']"
  30. :style="{ fontSize: enSize + 'px' }"
  31. >
  32. {{ enwords }}
  33. </div>
  34. <div
  35. v-for="(pItem, pIndex) in item"
  36. :key="'wordsList' + pIndex"
  37. class="NNPE-words"
  38. :class="[
  39. pItem.chs != '“' && pItem.wordIndex == 0 ? 'textLeft' : 'textCenter',
  40. pItem.chs == '“' ? 'textRight' : '',
  41. ]"
  42. @dblclick="showWordDetail($event, pItem)"
  43. @click="playWord(pItem)"
  44. >
  45. <template>
  46. <template v-if="!pItem.width">
  47. <template v-if="pItem.isShow">
  48. <template
  49. v-if="item[pIndex + 1] && item[pIndex + 1].chs && chsFhList.indexOf(item[pIndex + 1].chs) > -1"
  50. >
  51. <span class="NNPE-words-box">
  52. <template v-if="curQue.property.pinyin_position == 'top'">
  53. <span
  54. v-if="config.isShowPY"
  55. class="NNPE-pinyin"
  56. :class="[
  57. pItem.className ? pItem.className : '',
  58. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  59. bgIndex == 1 ? 'font-white' : '',
  60. ]"
  61. :style="{
  62. fontSize: pySize + 'px',
  63. height: pySize * 1.25 + 'px',
  64. }"
  65. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  66. >
  67. </template>
  68. <span
  69. class="NNPE-chs"
  70. :class="[
  71. pItem.padding && config.isShowPY ? 'padding' : '',
  72. curQue.property.pinyin_position == 'top' ? 'bottom' : '',
  73. ]"
  74. :style="{
  75. height: hzSize * 1.17 + 'px',
  76. }"
  77. >
  78. <template>
  79. <span
  80. v-for="(wItem, wIndex) in pItem.leg"
  81. :key="'ci' + wIndex + pIndex"
  82. :class="[
  83. pItem.timeList &&
  84. pItem.timeList[wIndex] &&
  85. curTime >= pItem.timeList[wIndex].wordBg &&
  86. curQue.wordTime &&
  87. curQue.wordTime[curSentIndex] &&
  88. curTime <= curQue.wordTime[curSentIndex].ed
  89. ? bgIndex == 0
  90. ? 'active'
  91. : 'active-yellow'
  92. : '',
  93. bgIndex == 1 ? 'font-white' : '',
  94. bgIndex == 0 && wordIndex == pItem.wordIndex ? 'wordActive' : '',
  95. bgIndex == 1 && wordIndex == pItem.wordIndex ? 'wordActive-blue' : '',
  96. newWordList.indexOf(pItem.chs) > -1 && !isPlaying ? 'newActive' : '',
  97. pItem.words && !isPlaying ? 'newActive' : '',
  98. ]"
  99. :style="{
  100. fontSize: hzSize + 'px',
  101. fontFamily: pItem.config && pItem.config.fontFamily ? pItem.config.fontFamily : '',
  102. height: hzSize * 1.17 + 'px',
  103. display: 'inline-block',
  104. width: pItem.chs[wIndex].trim() === '' ? '10px' : '',
  105. }"
  106. >{{ pItem.chs[wIndex] }}</span
  107. >
  108. </template>
  109. </span>
  110. <template v-if="curQue.property.pinyin_position == 'bottom'">
  111. <span
  112. v-if="config.isShowPY"
  113. class="NNPE-pinyin bottom"
  114. :class="[
  115. pItem.className ? pItem.className : '',
  116. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  117. bgIndex == 1 ? 'font-white' : '',
  118. ]"
  119. :style="{
  120. fontSize: pySize + 'px',
  121. height: pySize * 1.25 + 'px',
  122. }"
  123. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  124. >
  125. </template>
  126. </span>
  127. <span class="NNPE-words-box">
  128. <template v-if="curQue.property.pinyin_position == 'top'">
  129. <span
  130. v-if="config.isShowPY"
  131. :class="[
  132. 'NNPE-pinyin',
  133. noFont.indexOf(item[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  134. bgIndex == 1 ? 'font-white' : '',
  135. ]"
  136. :style="{
  137. fontSize: pySize + 'px',
  138. textAlign: left,
  139. height: pySize * 1.25 + 'px',
  140. }"
  141. >{{ NumberList.indexOf(item[pIndex + 1].pinyin) == -1 ? item[pIndex + 1].pinyin : '' }}</span
  142. >
  143. </template>
  144. <span
  145. :class="['NNPE-chs', curQue.property.pinyin_position == 'top' ? 'bottom' : '']"
  146. :style="{
  147. fontSize: hzSize + 'px',
  148. textAlign: left,
  149. height: hzSize * 1.17 + 'px',
  150. }"
  151. >
  152. <span
  153. :class="[
  154. pItem.timeList[pItem.leg - 1] &&
  155. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  156. curQue.wordTime &&
  157. curQue.wordTime[curSentIndex] &&
  158. curTime <= curQue.wordTime[curSentIndex].ed
  159. ? bgIndex == 0
  160. ? 'active'
  161. : 'active-yellow'
  162. : '',
  163. bgIndex == 1 ? 'font-white' : '',
  164. newWordList.indexOf(item[pIndex + 1].chs) > -1 && !isPlaying ? 'newActive' : '',
  165. item[pIndex + 1].words && !isPlaying ? 'newActive' : '',
  166. ]"
  167. :style="{
  168. fontSize: hzSize + 'px',
  169. fontFamily:
  170. item[pIndex + 1].config && item[pIndex + 1].config.fontFamily
  171. ? item[pIndex + 1].config.fontFamily
  172. : '',
  173. height: hzSize * 1.17 + 'px',
  174. display: 'inline-block',
  175. width: item[pIndex + 1].chs.trim() === '' ? '10px' : '',
  176. }"
  177. >{{ item[pIndex + 1].chs }}</span
  178. >
  179. </span>
  180. <template v-if="curQue.property.pinyin_position == 'bottom'">
  181. <span
  182. v-if="config.isShowPY"
  183. :class="[
  184. 'NNPE-pinyin',
  185. noFont.indexOf(item[pIndex + 1].pinyin) > -1 ? 'noFont' : '',
  186. bgIndex == 1 ? 'font-white' : '',
  187. 'bottom',
  188. ]"
  189. :style="{
  190. fontSize: pySize + 'px',
  191. textAlign: left,
  192. height: pySize * 1.25 + 'px',
  193. }"
  194. >{{ NumberList.indexOf(item[pIndex + 1].pinyin) == -1 ? item[pIndex + 1].pinyin : '' }}</span
  195. >
  196. </template>
  197. </span>
  198. <span
  199. v-if="item[pIndex + 2] && item[pIndex + 2].chs && chsFhList.indexOf(item[pIndex + 2].chs) > -1"
  200. class="NNPE-words-box"
  201. >
  202. <template v-if="curQue.property.pinyin_position == 'top'">
  203. <span
  204. v-if="config.isShowPY"
  205. :class="[
  206. 'NNPE-pinyin',
  207. noFont.indexOf(item[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  208. bgIndex == 1 ? 'font-white' : '',
  209. ]"
  210. :style="{
  211. fontSize: pySize + 'px',
  212. textAlign: left,
  213. height: pySize * 1.25 + 'px',
  214. }"
  215. >{{ NumberList.indexOf(item[pIndex + 2].pinyin) == -1 ? item[pIndex + 2].pinyin : '' }}</span
  216. >
  217. </template>
  218. <span
  219. :class="['NNPE-chs', curQue.property.pinyin_position == 'top' ? 'bottom' : '']"
  220. :style="{
  221. fontSize: hzSize + 'px',
  222. textAlign: left,
  223. height: hzSize * 1.17 + 'px',
  224. }"
  225. >
  226. <span
  227. :class="[
  228. pItem.timeList[pItem.leg - 1] &&
  229. curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
  230. curQue.wordTime &&
  231. curQue.wordTime[curSentIndex] &&
  232. curTime <= curQue.wordTime[curSentIndex].ed
  233. ? bgIndex == 0
  234. ? 'active'
  235. : 'active-yellow'
  236. : '',
  237. bgIndex == 1 ? 'font-white' : '',
  238. newWordList.indexOf(item[pIndex + 2].chs) > -1 && !isPlaying ? 'newActive' : '',
  239. item[pIndex + 2].words && !isPlaying ? 'newActive' : '',
  240. ]"
  241. :style="{
  242. fontSize: hzSize + 'px',
  243. fontFamily:
  244. item[pIndex + 2].config && item[pIndex + 2].config.fontFamily
  245. ? item[pIndex + 2].config.fontFamily
  246. : '',
  247. height: hzSize * 1.17 + 'px',
  248. display: 'inline-block',
  249. width: item[pIndex + 2].chs.trim() === '' ? '10px' : '',
  250. }"
  251. >{{ item[pIndex + 2].chs }}</span
  252. >
  253. </span>
  254. <template v-if="curQue.property.pinyin_position == 'bottom'">
  255. <span
  256. v-if="config.isShowPY"
  257. :class="[
  258. 'NNPE-pinyin',
  259. noFont.indexOf(item[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
  260. bgIndex == 1 ? 'font-white' : '',
  261. 'bottom',
  262. ]"
  263. :style="{
  264. fontSize: pySize + 'px',
  265. textAlign: left,
  266. height: pySize * 1.25 + 'px',
  267. }"
  268. >{{ NumberList.indexOf(item[pIndex + 2].pinyin) == -1 ? item[pIndex + 2].pinyin : '' }}</span
  269. >
  270. </template>
  271. </span>
  272. </template>
  273. <template v-else>
  274. <template v-if="curQue.property.pinyin_position == 'top'">
  275. <span
  276. v-if="config.isShowPY"
  277. class="NNPE-pinyin"
  278. :class="[
  279. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  280. pItem.className ? pItem.className : '',
  281. noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
  282. bgIndex == 1 ? 'font-white' : '',
  283. ]"
  284. :style="{
  285. fontSize: pySize + 'px',
  286. height: pySize * 1.25 + 'px',
  287. }"
  288. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  289. >
  290. </template>
  291. <span
  292. v-if="pItem.chs != '#'"
  293. class="NNPE-chs"
  294. :class="[
  295. pItem.chs != '“' && pItem.padding && config.isShowPY ? 'padding' : '',
  296. curQue.property.pinyin_position == 'top' ? 'bottom' : '',
  297. ]"
  298. :style="{
  299. height: hzSize * 1.17 + 'px',
  300. }"
  301. >
  302. <template>
  303. <span
  304. v-for="(wItem, wIndex) in pItem.leg"
  305. :key="'ci' + wIndex + pIndex + curSentIndex"
  306. :class="[
  307. pItem.timeList &&
  308. pItem.timeList[wIndex] &&
  309. curTime >= pItem.timeList[wIndex].wordBg &&
  310. curQue.wordTime &&
  311. curQue.wordTime[curSentIndex] &&
  312. curTime <= curQue.wordTime[curSentIndex].ed
  313. ? bgIndex == 0
  314. ? 'active'
  315. : 'active-yellow'
  316. : '',
  317. bgIndex == 1 ? 'font-white' : '',
  318. bgIndex == 0 && wordIndex == pItem.wordIndex ? 'wordActive' : '',
  319. bgIndex == 1 && wordIndex == pItem.wordIndex ? 'wordActive-blue' : '',
  320. newWordList.indexOf(pItem.chs) > -1 && !isPlaying ? 'newActive' : '',
  321. pItem.words && !isPlaying ? 'newActive' : '',
  322. ]"
  323. :style="{
  324. fontSize: hzSize + 'px',
  325. fontFamily: pItem.config && pItem.config.fontFamily ? pItem.config.fontFamily : '',
  326. height: hzSize * 1.17 + 'px',
  327. display: 'inline-block',
  328. width: pItem.chs[wIndex].trim() === '' ? '10px' : '',
  329. }"
  330. >{{ pItem.chs[wIndex] }}</span
  331. >
  332. </template>
  333. </span>
  334. <template v-if="curQue.property.pinyin_position == 'bottom'">
  335. <span
  336. v-if="config.isShowPY"
  337. class="NNPE-pinyin bottom"
  338. :class="[
  339. pItem.chs != '“' && pItem.padding ? 'padding' : '',
  340. pItem.className ? pItem.className : '',
  341. bgIndex == 1 ? 'font-white' : '',
  342. ]"
  343. :style="{
  344. fontSize: pySize + 'px',
  345. height: pySize * 1.25 + 'px',
  346. }"
  347. >{{ NumberList.indexOf(pItem.pinyin) == -1 ? pItem.pinyin : '' }}</span
  348. >
  349. </template>
  350. </template>
  351. </template>
  352. </template>
  353. <template v-else>
  354. <span
  355. :style="{
  356. height: pItem.height + 'px',
  357. width: pItem.width + 'px',
  358. }"
  359. ></span>
  360. </template>
  361. </template>
  362. </div>
  363. </div>
  364. <div style="overflow: hidden; clear: both"></div>
  365. <div
  366. v-if="
  367. enwords && config.isShowEN && (!curQue.enPosition || (curQue.enPosition && curQue.enPosition == 'bottom'))
  368. "
  369. :class="['enwords', bgIndex == 1 ? 'enwords-green' : '']"
  370. :style="{ fontSize: enSize + 'px' }"
  371. >
  372. {{ enwords }}
  373. </div>
  374. </div>
  375. <div class="vc-box-right">
  376. <div
  377. :class="[
  378. 'vc-left vc-right-grey',
  379. isShowRight && bgIndex == 0 ? 'vc-right-black' : '',
  380. isShowRight && bgIndex == 1 ? 'vc-right-white' : '',
  381. curSentIndex == sentList.length - 1 ? 'hidden' : '',
  382. ]"
  383. @click="nextSentence"
  384. ></div>
  385. </div>
  386. </div>
  387. <div class="voicefull-top" @mouseover="setBottomShow(true)" @mouseleave="setBottomShow(false)">
  388. <div :class="[isBottomShow ? 'voicefull-top-show' : 'voicefull-top-hidden']">
  389. <div class="top-left">
  390. <div :class="['select-bg', bgIndex == 1 ? 'select-bg-blue' : '']">
  391. <div :class="['bg-green-box', bgIndex == 1 ? 'active' : '']">
  392. <span :class="['bg-green', bgIndex == 1 ? 'active' : '']" @click="changeBg(1)"></span>
  393. </div>
  394. <div :class="['bg-white-box', bgIndex == 0 ? 'active' : '']">
  395. <span :class="['bg-white', bgIndex == 0 ? 'active' : '']" @click="changeBg(0)"></span>
  396. </div>
  397. </div>
  398. <div :class="['set-fontSize', bgIndex == 1 ? 'set-fontSize-green' : '']">
  399. <template v-if="hzSize >= 34">
  400. <span
  401. :class="['font-jian-black', bgIndex == 1 ? 'font-jian-yellow' : '']"
  402. @click="setFontSize('-')"
  403. ></span>
  404. </template>
  405. <template v-else>
  406. <span
  407. :class="['font-jian-black', bgIndex == 1 ? 'font-jian-yellow-disabled' : 'font-jian-white-disabled']"
  408. ></span>
  409. </template>
  410. <span :class="['font-img-black', bgIndex == 1 ? 'font-img-yellow' : '']"></span>
  411. <template v-if="hzSize <= 76">
  412. <span :class="['font-jia-black', bgIndex == 1 ? 'font-jia-yellow' : '']" @click="setFontSize('+')"></span>
  413. </template>
  414. <template v-else>
  415. <span
  416. :class="['font-jia-black', bgIndex == 1 ? 'font-jia-yellow-disabled' : 'font-jia-white-disabled']"
  417. ></span>
  418. </template>
  419. </div>
  420. <div
  421. :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']"
  422. title="键盘控制开启后,可用方向键控制翻页,空格键播放暂停,回车键录音"
  423. @click="changeStatus('isKeyboard')"
  424. >
  425. <span
  426. :class="[
  427. 'keyboard-icon',
  428. !isKeyboard ? 'disabled' : '',
  429. isKeyboard && bgIndex == 1 ? 'keyboard-icon-yellow' : '',
  430. ]"
  431. ></span>
  432. </div>
  433. </div>
  434. <div class="top-middle">
  435. <template v-if="mp3">
  436. <AudioLineSentence
  437. :key="'sent' + curSentIndex"
  438. ref="audioLineSent"
  439. :mp3="mp3"
  440. :get-cur-time="getCurTime"
  441. :audio-id="'artPraAudioId' + curSentIndex"
  442. :stop-audio="stopAudio"
  443. :width="120"
  444. :hide-slider="true"
  445. :bg="bg"
  446. :ed="ed"
  447. :cur-time="curTime"
  448. :max-time="maxTime"
  449. :bg-index="bgIndex"
  450. :is-repeat="isRepeat"
  451. :is-auto="isAuto"
  452. @playChange="playChange"
  453. @rollSentence="rollSentence"
  454. />
  455. </template>
  456. <div :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']" @click="setStatus">
  457. <span
  458. :class="[
  459. 'repeat-icon',
  460. !isRepeat && !isAuto ? 'disabled' : '',
  461. !isRepeat && isAuto ? 'auto-icon' : '',
  462. isRepeat && bgIndex == 1 ? 'repeat-icon-yellow' : '',
  463. !isRepeat && isAuto && bgIndex == 1 ? 'auto-icon-yellow' : '',
  464. ]"
  465. ></span>
  466. </div>
  467. <div :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']" @click="changePinyin">
  468. <span
  469. :class="[
  470. 'pinyin-icon',
  471. !config.isShowPY ? 'disabled' : '',
  472. config.isShowPY && bgIndex == 1 ? 'pinyin-icon-yellow' : '',
  473. ]"
  474. ></span>
  475. </div>
  476. <div :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']" @click="changeEN">
  477. <span
  478. :class="[
  479. 'en-icon',
  480. !enwords ? 'disabled' : '',
  481. !config.isShowEN ? 'disabled' : '',
  482. config.isShowEN && bgIndex == 1 ? 'en-icon-yellow' : '',
  483. ]"
  484. ></span>
  485. </div>
  486. <!-- <div
  487. :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']"
  488. title="点击收藏后可在“个人中心”-“我的收藏”查看"
  489. @click="handleColl"
  490. >
  491. <span
  492. :class="[
  493. 'coll-icon',
  494. !isCollArr[curSentIndex] ? 'disabled' : '',
  495. isCollArr[curSentIndex] && bgIndex == 1 ? 'coll-icon-yellow' : '',
  496. ]"
  497. ></span>
  498. </div> -->
  499. </div>
  500. <div :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']" @click="exitFullScreen">
  501. <span :class="['close-icon', bgIndex == 1 ? 'close-icon-white' : '']"></span>
  502. </div>
  503. </div>
  504. </div>
  505. <template v-if="isShow">
  506. <div ref="wordcard" class="NNPE-wordDetail" :style="{ left: left + 'px' }">
  507. <Wordcard
  508. :word="word"
  509. :change-word-card="changeWordCard"
  510. :theme-color="themeColor"
  511. :current-tree-i-d="currentTreeID"
  512. :mp3-url="wordPlayMp3"
  513. :bg="wordbgs"
  514. :ed="wordeds"
  515. :attrib="attrib"
  516. :isMobile="isMobile"
  517. :isFull="true"
  518. />
  519. </div>
  520. </template>
  521. <div v-if="isWordPlay || isNewWordPlay" class="word-play-audio">
  522. <AudioLineSentence
  523. ref="audioLineWord"
  524. :mp3="isWordPlay ? NpcNewWordMp3 : isNewWordPlay ? wordPlayMp3 : ''"
  525. :get-cur-time="getCurWordTime"
  526. :audio-id="'artPraAudioId' + curSentIndex + wordIndex"
  527. :stop-audio="stopAudio"
  528. :width="120"
  529. :hide-slider="false"
  530. :bg="wordbg"
  531. :ed="worded"
  532. :max-time="wordMaxTime"
  533. :bg-index="bgIndex"
  534. :is-repeat="isRepeat"
  535. :word-play="true"
  536. @changePlayStatus="changePlayStatus"
  537. />
  538. </div>
  539. <template v-if="isNoteShow">
  540. <div
  541. ref="notecard"
  542. class="NNPE-wordDetail"
  543. :style="{
  544. marginLeft: windowWidth > 642 ? '-321px' : '0px',
  545. left: windowWidth > 642 ? '' : '0px',
  546. width: isMobile ? '100%' : '',
  547. }"
  548. >
  549. <Notecard :item="curNoteCon" :change-card="changeCard" :attrib="attrib" :isMobile="isMobile" />
  550. </div>
  551. </template>
  552. </div>
  553. </template>
  554. <script>
  555. import AudioLineSentence from './components/AudioLineSentence.vue';
  556. import Soundrecorddiff from './components/Soundrecorddiff.vue';
  557. import AudioCompare from './components/AudioCompare.vue';
  558. import Wordcard from './components/Wordcard.vue';
  559. import Notecard from './components/Notecard.vue'; // 注释
  560. import { LearnWebSI } from '@/api/app';
  561. export default {
  562. name: 'VoiceFullScreen',
  563. components: {
  564. AudioLineSentence,
  565. Soundrecorddiff,
  566. AudioCompare,
  567. Wordcard,
  568. Notecard,
  569. },
  570. props: [
  571. 'sentList',
  572. 'sentIndex',
  573. 'mp3',
  574. 'wordTimeList',
  575. 'curQue',
  576. 'noFont',
  577. 'themeColor',
  578. 'NNPENewWordList',
  579. 'NNPEAnnotationList',
  580. 'currentTreeID',
  581. 'config',
  582. 'TaskModel',
  583. 'NpcNewWordMp3',
  584. 'attrib',
  585. 'isMobile',
  586. ],
  587. data() {
  588. return {
  589. pySize: 32,
  590. hzSize: 48,
  591. enSize: 24,
  592. bgIndex: 1,
  593. maxTime: 0,
  594. item: null,
  595. bg: 0,
  596. ed: 0,
  597. isRepeat: false,
  598. NumberList: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳'],
  599. chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '、'],
  600. enFhList: [',', '.', ';', '?', '!', ':', '>', '<'],
  601. curTime: 0,
  602. wavblob: null,
  603. stopAudio: false,
  604. isRecord: false,
  605. isShowCompare: false,
  606. isShowRight: true,
  607. isShowLeft: true,
  608. curSentIndex: 0,
  609. oldHz: '',
  610. hz: '',
  611. clientY: 0,
  612. top: 0,
  613. left: 0,
  614. newWordList: [],
  615. pinyin: '',
  616. wordIndex: -1,
  617. isShow: false,
  618. wordbg: 0,
  619. worded: 0,
  620. wordbgs: 0,
  621. wordeds: 0,
  622. wordMaxTime: 0,
  623. isWordPlay: false,
  624. isNewWordPlay: false,
  625. curWordTime: 0,
  626. isPlaying: false,
  627. isAuto: false,
  628. key: 'isRepeat',
  629. isKeyboard: true,
  630. isTopShow: false,
  631. isBottomShow: false,
  632. isRecording: false,
  633. recordPlaying: false,
  634. isCollArr: [],
  635. enwords: '',
  636. screenHeight: 0,
  637. wordPlayMp3: '',
  638. curNoteCon: null,
  639. isNoteShow: false,
  640. oldNoteNum: '',
  641. windowWidth: window.innerWidth,
  642. };
  643. },
  644. computed: {
  645. // isPlaying: function () {
  646. // let playing = false;
  647. // if (this.$refs.audioLineSent) {
  648. // playing = this.$refs.audioLineSent.audio.isPlaying;
  649. // }
  650. // console.log(playing);
  651. // return playing;
  652. // },
  653. },
  654. watch: {
  655. isRecording: {
  656. handler(newVal, oldVal) {
  657. if (newVal) {
  658. this.isBottomShow = newVal;
  659. }
  660. },
  661. deep: true,
  662. },
  663. recordPlaying: {
  664. handler(newVal, oldVal) {
  665. if (newVal) {
  666. this.isBottomShow = newVal;
  667. }
  668. },
  669. deep: true,
  670. },
  671. sentIndex: {
  672. handler(newVal, oldVal) {
  673. this.curSentIndex = newVal;
  674. this.getSentence();
  675. },
  676. deep: true,
  677. },
  678. hz: {
  679. handler(val, oldVal) {
  680. let _this = this;
  681. if (val) {
  682. _this.handleNewWords(val);
  683. }
  684. },
  685. // 深度观察监听
  686. deep: true,
  687. },
  688. isShow: {
  689. handler(val, oldVal) {
  690. let _this = this;
  691. if (val) {
  692. setTimeout(() => {
  693. _this.cardHeight = _this.$refs.wordcard.offsetHeight;
  694. if (_this.screenHeight - _this.clientY > _this.cardHeight) {
  695. _this.top = _this.clientY + 20;
  696. } else {
  697. _this.top = _this.clientY - _this.cardHeight - 30;
  698. }
  699. }, 50);
  700. }
  701. },
  702. // 深度观察监听
  703. deep: true,
  704. },
  705. isNoteShow: {
  706. handler(val, oldVal) {
  707. let _this = this;
  708. if (val) {
  709. setTimeout(() => {
  710. _this.cardHeight = _this.$refs.notecard.offsetHeight;
  711. if (_this.screenHeight - _this.clientY > _this.cardHeight) {
  712. _this.top = _this.clientY + 20;
  713. } else {
  714. _this.top = _this.clientY - _this.cardHeight - 30;
  715. }
  716. }, 50);
  717. }
  718. },
  719. // 深度观察监听
  720. deep: true,
  721. },
  722. },
  723. // 生命周期 - 创建完成(可以访问当前this实例)
  724. created() {},
  725. // 生命周期 - 挂载完成(可以访问DOM元素)
  726. mounted() {
  727. let _this = this;
  728. window.addEventListener('resize', this.getScreenHeight);
  729. _this.getScreenHeight();
  730. document.addEventListener('keyup', function (e) {
  731. if (_this.isKeyboard) {
  732. if (e.keyCode == 32) {
  733. // 空格
  734. _this.$nextTick(() => {
  735. if (_this.$refs.audioLineSent) {
  736. _this.$refs.audioLineSent.PlayAudio();
  737. }
  738. });
  739. } else if (e.keyCode == 38) {
  740. _this.prevSentence();
  741. } else if (e.keyCode == 40) {
  742. _this.nextSentence();
  743. } else if (e.keyCode == 13) {
  744. _this.$nextTick(() => {
  745. _this.$refs.Soundrecorddiff.microphone();
  746. });
  747. }
  748. }
  749. });
  750. if (_this.NNPENewWordList) {
  751. _this.handleNewword();
  752. }
  753. _this.curSentIndex = _this.sentIndex;
  754. _this.getSentence();
  755. document.addEventListener('fullscreenchange', () => {
  756. let isFullscreen =
  757. document.fullscreenElement ||
  758. document.mozFullScreenElement ||
  759. document.webkitFullscreenElement ||
  760. document.fullScreen ||
  761. document.mozFullScreen ||
  762. document.webkitIsFullScreen;
  763. if (!isFullscreen) {
  764. _this.changeFullScreen();
  765. }
  766. });
  767. document.addEventListener('mozfullscreenchange', () => {
  768. let isFullscreen =
  769. document.fullscreenElement ||
  770. document.mozFullScreenElement ||
  771. document.webkitFullscreenElement ||
  772. document.fullScreen ||
  773. document.mozFullScreen ||
  774. document.webkitIsFullScreen;
  775. if (!isFullscreen) {
  776. _this.changeFullScreen();
  777. }
  778. });
  779. document.addEventListener('webkitfullscreenchange', () => {
  780. let isFullscreen =
  781. document.fullscreenElement ||
  782. document.mozFullScreenElement ||
  783. document.webkitFullscreenElement ||
  784. document.fullScreen ||
  785. document.mozFullScreen ||
  786. document.webkitIsFullScreen;
  787. if (!isFullscreen) {
  788. _this.changeFullScreen();
  789. }
  790. });
  791. document.addEventListener('msfullscreenchange', () => {
  792. let isFullscreen =
  793. document.fullscreenElement ||
  794. document.mozFullScreenElement ||
  795. document.webkitFullscreenElement ||
  796. document.fullScreen ||
  797. document.mozFullScreen ||
  798. document.webkitIsFullScreen;
  799. if (!isFullscreen) {
  800. _this.changeFullScreen();
  801. }
  802. });
  803. },
  804. beforeCreate() {}, // 生命周期 - 创建之前
  805. beforeMount() {}, // 生命周期 - 挂载之前
  806. beforeUpdate() {}, // 生命周期 - 更新之前
  807. updated() {}, // 生命周期 - 更新之后
  808. beforeDestroy() {
  809. window.removeEventListener('resize', this.getScreenHeight);
  810. }, // 生命周期 - 销毁之前
  811. destroyed() {}, // 生命周期 - 销毁完成
  812. activated() {},
  813. // 方法集合
  814. methods: {
  815. setTopShow(bool) {
  816. this.isTopShow = bool;
  817. },
  818. setBottomShow(bool) {
  819. if (!this.recordPlaying && !this.isRecording) {
  820. this.isBottomShow = bool;
  821. }
  822. },
  823. getPlayStatus(bool) {
  824. this.recordPlaying = bool;
  825. },
  826. setFontSize(type) {
  827. let _this = this;
  828. if (type == '-') {
  829. if (_this.hzSize >= 34) {
  830. this.hzSize -= 4;
  831. }
  832. }
  833. if (type == '+') {
  834. if (_this.hzSize <= 76) {
  835. this.hzSize += 4;
  836. }
  837. }
  838. _this.pySize = parseInt(_this.hzSize / 1.5);
  839. _this.enSize = parseInt(_this.hzSize / 2);
  840. },
  841. playChange(bool) {
  842. this.isPlaying = bool;
  843. },
  844. handleColl() {
  845. let _this = this;
  846. if (_this.isCollArr[_this.curSentIndex]) {
  847. _this.cancleColl();
  848. } else {
  849. _this.addColl();
  850. }
  851. },
  852. // 添加收藏
  853. addColl() {
  854. let Bookdetail = sessionStorage.getItem('Bookdetail');
  855. // if (Bookdetail) {
  856. Bookdetail = JSON.parse(Bookdetail);
  857. let MethodName = 'order-collection_manager-AddMyCollection';
  858. let text = '';
  859. this.item.forEach((item) => {
  860. if (item.chs != '#') {
  861. text += item.chs;
  862. }
  863. });
  864. let sentence_json = {
  865. item: JSON.stringify(this.item),
  866. bg: this.bg,
  867. ed: this.ed,
  868. mp3: this.mp3,
  869. pyPosition: this.curQue.property.pinyin_position,
  870. };
  871. let data = {
  872. goods_id: this.currentTreeID,
  873. goods_type: 502,
  874. goods_name: Bookdetail.name,
  875. goods_person_name_desc: Bookdetail.author ? Bookdetail.author : '',
  876. goods_picture_id: Bookdetail.picture_id ? Bookdetail.picture_id : '',
  877. goods_price: Bookdetail.price,
  878. sentence: {
  879. sentence_text: text,
  880. sentence_json: JSON.stringify(sentence_json),
  881. },
  882. };
  883. LearnWebSI(MethodName, data).then((res) => {
  884. this.$set(this.isCollArr, this.curSentIndex, true);
  885. this.$message.success('收藏成功!');
  886. });
  887. // } else {
  888. // this.$message.warning('权限不足!');
  889. // }
  890. },
  891. // 取消收藏
  892. cancleColl() {
  893. let text = '';
  894. this.item.forEach((item) => {
  895. if (item.chs != '#') {
  896. text += item.chs;
  897. }
  898. });
  899. let MethodName = 'order-collection_manager-CancelMyGoodsCollection_WS';
  900. let data = {
  901. goods_type: 502,
  902. goods_list: [
  903. {
  904. goods_id: this.currentTreeID, // 课件的id
  905. sentence_text: text,
  906. },
  907. ],
  908. };
  909. LearnWebSI(MethodName, data).then((res) => {
  910. this.$set(this.isCollArr, this.curSentIndex, false);
  911. this.$message.success('取消成功!');
  912. });
  913. },
  914. // 检查收藏状态
  915. checkCollStatus() {
  916. let text = '';
  917. this.item.forEach((item) => {
  918. if (item.chs != '#') {
  919. text += item.chs;
  920. }
  921. });
  922. let MethodName = 'order-collection_manager-CheckMyGoodsCollectionStatus';
  923. let data = {
  924. goods_type: 502,
  925. goods_id: this.currentTreeID, // 课件的id
  926. sentence_text: text,
  927. };
  928. LearnWebSI(MethodName, data).then((res) => {
  929. let collFlag = res.is_collection == 'true';
  930. this.$set(this.isCollArr, this.curSentIndex, collFlag);
  931. });
  932. },
  933. showPrevNext(bool, key) {
  934. this[key] = bool;
  935. },
  936. prevSentence() {
  937. let _this = this;
  938. if (_this.curSentIndex == 0) {
  939. // _this.$message.warning("已经是第一个句子了");
  940. return;
  941. }
  942. _this.curSentIndex -= 1;
  943. _this.getSentence();
  944. if (_this.isAuto) {
  945. _this.curTime = _this.bg;
  946. _this.$refs.audioLineSent.onTimeupdateTime(_this.bg / 1000);
  947. }
  948. },
  949. nextSentence() {
  950. if (this.curSentIndex == this.sentList.length - 1) {
  951. // this.$message.warning("已经是最后一个句子了");
  952. return;
  953. }
  954. this.curSentIndex += 1;
  955. this.getSentence();
  956. },
  957. rollSentence() {
  958. if (this.curSentIndex == this.sentList.length - 1) {
  959. this.curSentIndex = 0;
  960. } else {
  961. this.curSentIndex += 1;
  962. }
  963. this.getSentence();
  964. },
  965. changeStatus(key) {
  966. if (key == 'config.isShowEN') {
  967. if (this.enwords) {
  968. this[key] = !this[key];
  969. }
  970. } else {
  971. this[key] = !this[key];
  972. }
  973. },
  974. changePinyin() {
  975. this.$emit('changePinyin');
  976. },
  977. changeEN() {
  978. this.$emit('changeEN');
  979. },
  980. setStatus() {
  981. let _this = this;
  982. if (_this.key == 'isRepeat') {
  983. if (_this.isRepeat) {
  984. _this.isRepeat = false;
  985. _this.isAuto = true;
  986. _this.key = 'isAuto';
  987. } else {
  988. _this.isRepeat = true;
  989. _this.key = 'isRepeat';
  990. }
  991. } else if (_this.key == 'isAuto') {
  992. if (_this.isAuto) {
  993. _this.isRepeat = false;
  994. _this.isAuto = false;
  995. _this.key = 'isRepeat';
  996. }
  997. }
  998. },
  999. getRerordStatus(bool) {
  1000. this.isShowCompare = bool;
  1001. },
  1002. getMicrophoneStatus(bool) {
  1003. this.isRecording = bool;
  1004. },
  1005. getWavblob(wavblob) {
  1006. this.wavblob = wavblob;
  1007. },
  1008. sentPause(isRecord) {
  1009. this.isRecord = isRecord;
  1010. },
  1011. getCurTime(curTime) {
  1012. let _this = this;
  1013. if (_this.isRepeat) {
  1014. let time = curTime * 1000;
  1015. if (time > _this.ed || time < _this.bg) {
  1016. _this.curTime = _this.bg;
  1017. this.$refs.audioLineSent.onTimeupdateTime(_this.bg / 1000);
  1018. } else {
  1019. _this.curTime = curTime * 1000;
  1020. }
  1021. } else if (_this.isAuto) {
  1022. let time = curTime * 1000;
  1023. if (time > _this.ed) {
  1024. _this.rollSentence();
  1025. _this.curTime = _this.bg;
  1026. _this.$refs.audioLineSent.onTimeupdateTime(_this.bg / 1000);
  1027. } else {
  1028. _this.curTime = curTime * 1000;
  1029. }
  1030. } else {
  1031. _this.curTime = curTime * 1000;
  1032. }
  1033. },
  1034. getCurCompareTime(curTime) {
  1035. let _this = this;
  1036. _this.curTime = curTime * 1000;
  1037. },
  1038. getCurWordTime(curTime) {
  1039. let _this = this;
  1040. _this.curWordTime = curTime * 1000;
  1041. },
  1042. changeBg(bgIndex) {
  1043. this.bgIndex = bgIndex;
  1044. },
  1045. getSentence() {
  1046. let _this = this;
  1047. _this.isShowCompare =
  1048. _this.curQue.Bookanswer.practiceModel[_this.curSentIndex] &&
  1049. _this.curQue.Bookanswer.practiceModel[_this.curSentIndex].recordList &&
  1050. _this.curQue.Bookanswer.practiceModel[_this.curSentIndex].recordList.length > 0;
  1051. _this.pauseAudio();
  1052. _this.isPlaying = false;
  1053. let item = JSON.parse(JSON.stringify(_this.sentList[_this.curSentIndex]));
  1054. if (item.sentArr) {
  1055. _this.item = item.sentArr;
  1056. _this.enwords = item.enwords;
  1057. } else {
  1058. _this.item = item;
  1059. }
  1060. _this.sentList.forEach((item) => {
  1061. this.isCollArr.push(false);
  1062. });
  1063. _this.bg =
  1064. _this.curQue.wordTime && _this.curQue.wordTime[_this.curSentIndex]
  1065. ? _this.curQue.wordTime[_this.curSentIndex].bg
  1066. : 0;
  1067. _this.ed =
  1068. _this.curQue.wordTime && _this.curQue.wordTime[_this.curSentIndex]
  1069. ? _this.curQue.wordTime[_this.curSentIndex].ed
  1070. : 0;
  1071. let maxTime = (_this.ed - _this.bg) / 1000;
  1072. if (maxTime < 1) {
  1073. _this.maxTime = 1;
  1074. } else {
  1075. _this.maxTime = maxTime;
  1076. }
  1077. // _this.checkCollStatus();
  1078. },
  1079. pauseAudio() {
  1080. let audio = document.getElementsByTagName('audio');
  1081. if (audio && audio.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && audio.forEach) {
  1082. audio.forEach((item) => {
  1083. item.pause();
  1084. });
  1085. }
  1086. },
  1087. exitFullScreen() {
  1088. this.pauseAudio();
  1089. this.$emit('exitFullscreen');
  1090. },
  1091. changeFullScreen() {
  1092. this.pauseAudio();
  1093. this.$emit('changeIsFull');
  1094. },
  1095. handleWav(list, tmIndex) {
  1096. tmIndex = tmIndex || 0;
  1097. this.$emit('handleWav', list, tmIndex);
  1098. },
  1099. // 录音时暂停音频播放
  1100. handleParentPlay() {
  1101. this.stopAudio = true;
  1102. },
  1103. // 音频播放时改变布尔值
  1104. handleChangeStopAudio() {
  1105. this.stopAudio = false;
  1106. },
  1107. // 播放音频
  1108. // playWord(item) {
  1109. // let _this = this;
  1110. // if (this.newWordList.indexOf(item.chs) > -1 || item.words) {
  1111. // _this.pauseAudio();
  1112. // _this.isWordPlay = false;
  1113. // _this.wordIndex = item.wordIndex;
  1114. // setTimeout(() => {
  1115. // let leg = item.timeList.length;
  1116. // _this.wordbg = item.timeList[0].wordBg;
  1117. // _this.worded = item.timeList[leg - 1].wordEd;
  1118. // let wordMaxTime = (_this.worded - _this.wordbg) / 1000;
  1119. // if (wordMaxTime < 1) {
  1120. // _this.wordMaxTime = 1;
  1121. // } else {
  1122. // _this.wordMaxTime = wordMaxTime;
  1123. // }
  1124. // _this.isWordPlay = true;
  1125. // }, 50);
  1126. // }
  1127. // },
  1128. playWord(item) {
  1129. let _this = this;
  1130. if (this.newWordList.indexOf(item.chs) > -1 || item.words) {
  1131. _this.pauseAudio();
  1132. _this.isNewWordPlay = false;
  1133. let new_word = item.words ? item.words : item.chs;
  1134. _this.NNPENewWordList.forEach((itemn) => {
  1135. // items.forEach((itemn) => {
  1136. if (itemn.new_word === new_word) {
  1137. _this.wordbg = itemn.bg;
  1138. _this.worded = itemn.ed;
  1139. _this.wordPlayMp3 = itemn.newWordMp3;
  1140. }
  1141. // });
  1142. });
  1143. setTimeout(() => {
  1144. _this.isNewWordPlay = true;
  1145. }, 50);
  1146. }
  1147. },
  1148. changePlayStatus() {
  1149. this.isWordPlay = false;
  1150. this.isNewWordPlay = false;
  1151. this.wordIndex = -1;
  1152. },
  1153. showWordDetail(e, item) {
  1154. let _this = this;
  1155. let noteIndex = '';
  1156. if (_this.TaskModel == 'ANSWER') {
  1157. return;
  1158. }
  1159. if (_this.chsFhList.indexOf(item.chs) > -1 || /^[a-zA-Z0-9]/.test(item.chs)) {
  1160. return;
  1161. }
  1162. if (_this.NumberList.indexOf(item.chs) > -1) {
  1163. for (let i = 0; i < _this.NumberList.length; i++) {
  1164. if (_this.NumberList[i] == item.chs) {
  1165. noteIndex = `${String(i)}`;
  1166. break;
  1167. }
  1168. }
  1169. this.showNoteDetail(e, noteIndex);
  1170. } else if (this.newWordList.indexOf(item.chs) > -1) {
  1171. if (_this.oldHz != item.chs) {
  1172. this.isShow = false;
  1173. setTimeout(() => {
  1174. _this.hz = item.words ? item.words : item.chs;
  1175. _this.pinyin = item.pinyin;
  1176. _this.wordIndex = item.wordIndex;
  1177. }, 50);
  1178. }
  1179. _this.clientY = e.clientY;
  1180. let new_word = item.words ? item.words : item.chs;
  1181. _this.wordPlayMp3 = '';
  1182. _this.NNPENewWordList.forEach((itemn) => {
  1183. // items.forEach((itemn) => {
  1184. if (itemn.new_word === new_word) {
  1185. _this.wordbgs = itemn.bg;
  1186. _this.wordeds = itemn.ed;
  1187. _this.wordPlayMp3 = itemn.newWordMp3;
  1188. }
  1189. // });
  1190. });
  1191. let left = e.clientX;
  1192. let width = 0;
  1193. if (item.chs.length == 1 || item.chs.length == 2) {
  1194. width = 304;
  1195. } else if (item.chs.length == 3 || item.chs.length == 4) {
  1196. width = 432;
  1197. } else if (item.chs.length > 3) {
  1198. width = 560;
  1199. }
  1200. // if (left - this.bodyLeft > this.contentWidth / 2) {
  1201. // _this.left = left - width + 10;
  1202. // } else {
  1203. _this.left = left - width / 2;
  1204. // }
  1205. }
  1206. },
  1207. showNoteDetail(e, noteNum) {
  1208. let _this = this;
  1209. if (_this.oldNoteNum !== noteNum) {
  1210. this.isNoteShow = false;
  1211. setTimeout(() => {
  1212. _this.noteNum = noteNum;
  1213. _this.handleNote(noteNum);
  1214. }, 50);
  1215. }
  1216. _this.clientY = e.clientY;
  1217. let left = e.clientX;
  1218. let width = 642;
  1219. if (left - this.bodyLeft > this.contentWidth / 2) {
  1220. _this.left = left - width + 10;
  1221. } else if (left - 200 > 500) {
  1222. _this.left = 500;
  1223. } else {
  1224. _this.left = left - 200;
  1225. }
  1226. },
  1227. changeWordCard(isShow) {
  1228. let _this = this;
  1229. _this.isShow = isShow;
  1230. _this.oldHz = '';
  1231. _this.hz = '';
  1232. _this.wordIndex = -1;
  1233. },
  1234. // 处理分词数据
  1235. handleNewWords(val) {
  1236. let _this = this;
  1237. _this.isShow = true;
  1238. _this.word = null;
  1239. if (_this.newWordList.indexOf(val) > -1) {
  1240. for (let i = 0; i < this.NNPENewWordList.length; i++) {
  1241. let pItem = this.NNPENewWordList[i];
  1242. if (pItem.new_word.trim() == val.trim()) {
  1243. let wordlist = val.split('');
  1244. this.word = { list: wordlist, detail: pItem };
  1245. break;
  1246. }
  1247. }
  1248. } else {
  1249. let wordlist = val.split('');
  1250. let option = {
  1251. definition_list: [],
  1252. mp3_list: [],
  1253. new_word: val,
  1254. pinyin: _this.pinyin,
  1255. };
  1256. _this.word = { list: wordlist, detail: option };
  1257. }
  1258. _this.oldHz = val;
  1259. },
  1260. handleNewword() {
  1261. let NewWordList = [];
  1262. this.NNPENewWordList.forEach((wItem) => {
  1263. // item.forEach((wItem) => {
  1264. NewWordList.push(wItem.new_word);
  1265. // });
  1266. });
  1267. this.newWordList = JSON.parse(JSON.stringify(NewWordList));
  1268. },
  1269. getScreenHeight() {
  1270. this.screenHeight = window.innerHeight;
  1271. },
  1272. // 处理注释数据
  1273. handleNote(val) {
  1274. let _this = this;
  1275. _this.isNoteShow = true;
  1276. _this.oldNoteNum = val;
  1277. let noteIndex = Number(val);
  1278. if (_this.NNPEAnnotationList && _this.NNPEAnnotationList.length > 0) {
  1279. _this.curNoteCon = _this.NNPEAnnotationList[noteIndex] ? _this.NNPEAnnotationList[noteIndex] : null;
  1280. }
  1281. },
  1282. changeCard(isShow) {
  1283. let _this = this;
  1284. _this.isNoteShow = isShow;
  1285. _this.oldNoteNum = '';
  1286. _this.noteNum = '';
  1287. },
  1288. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  1289. };
  1290. </script>
  1291. <style lang="scss" scoped>
  1292. //@import url(); 引入公共css类
  1293. .voicefull {
  1294. display: flex;
  1295. flex-direction: column;
  1296. width: 100%;
  1297. height: 100vh;
  1298. overflow: hidden;
  1299. .NNPE-wordDetail {
  1300. position: fixed;
  1301. top: 50%;
  1302. z-index: 9999;
  1303. margin-top: -196px;
  1304. // box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
  1305. }
  1306. &.bg1 {
  1307. background: #fff;
  1308. }
  1309. &.bg2 {
  1310. background: linear-gradient(180deg, #274533 0%, #385f45 100%);
  1311. .newActive {
  1312. color: #ffc600 !important;
  1313. }
  1314. }
  1315. &-top {
  1316. box-sizing: border-box;
  1317. width: 100%;
  1318. height: 136px;
  1319. padding: 0 40px;
  1320. .voicefull-top-hidden {
  1321. display: flex;
  1322. align-items: center;
  1323. justify-content: space-between;
  1324. width: 100%;
  1325. height: 136px;
  1326. visibility: hidden;
  1327. }
  1328. .voicefull-top-show {
  1329. display: flex;
  1330. align-items: center;
  1331. justify-content: space-between;
  1332. width: 100%;
  1333. height: 136px;
  1334. visibility: visible;
  1335. }
  1336. .top-left {
  1337. display: flex;
  1338. align-items: center;
  1339. justify-content: flex-start;
  1340. }
  1341. .select-bg {
  1342. box-sizing: border-box;
  1343. display: flex;
  1344. align-items: center;
  1345. justify-content: space-between;
  1346. justify-content: center;
  1347. width: 96px;
  1348. height: 56px;
  1349. margin-right: 32px;
  1350. border: 1px solid rgba(0, 0, 0, 10%);
  1351. border-radius: 40px;
  1352. &.select-bg-blue {
  1353. background: rgba(255, 255, 255, 10%);
  1354. border: 1px solid rgba(0, 0, 0, 10%);
  1355. }
  1356. > div {
  1357. display: flex;
  1358. align-items: center;
  1359. justify-content: center;
  1360. width: 36px;
  1361. height: 36px;
  1362. border-radius: 100%;
  1363. &.bg-white-box {
  1364. margin-right: 4px;
  1365. background: 0 0;
  1366. &.active {
  1367. background: #de4444;
  1368. }
  1369. }
  1370. &.bg-green-box {
  1371. background: #fff;
  1372. &.active {
  1373. background: #ffc600;
  1374. }
  1375. }
  1376. > span {
  1377. box-sizing: border-box;
  1378. width: 24px;
  1379. height: 24px;
  1380. cursor: pointer;
  1381. border-radius: 100%;
  1382. &.bg-white {
  1383. background: #fff;
  1384. }
  1385. &.bg-green {
  1386. background: linear-gradient(180deg, #274533 0%, #385f45 100%);
  1387. }
  1388. }
  1389. }
  1390. }
  1391. .set-fontSize {
  1392. display: flex;
  1393. align-items: center;
  1394. justify-content: center;
  1395. height: 56px;
  1396. padding: 0 20px;
  1397. background: #fff;
  1398. border: 1px solid rgba(0, 0, 0, 10%);
  1399. border-radius: 40px;
  1400. &-green {
  1401. background: rgba(255, 255, 255, 10%);
  1402. border: 1px solid rgba(0, 0, 0, 10%);
  1403. }
  1404. > span {
  1405. width: 24px;
  1406. height: 24px;
  1407. margin: 0 4px;
  1408. &.font-jian {
  1409. &-black {
  1410. cursor: pointer;
  1411. background: url('@/assets/jian-black.png') no-repeat left top;
  1412. background-size: 100% 100%;
  1413. }
  1414. &-yellow {
  1415. cursor: pointer;
  1416. background: url('@/assets/jian-white.png') no-repeat left top;
  1417. background-size: 100% 100%;
  1418. }
  1419. &-white-disabled {
  1420. cursor: pointer;
  1421. background: url('@/assets/jian-white-disabled.png') no-repeat left top;
  1422. background-size: 100% 100%;
  1423. }
  1424. &-yellow-disabled {
  1425. cursor: pointer;
  1426. background: url('@/assets/jian-yellow-disabled.png') no-repeat left top;
  1427. background-size: 100% 100%;
  1428. }
  1429. }
  1430. &.font-img {
  1431. &-black {
  1432. background: url('@/assets/fontSize-black.png') no-repeat left top;
  1433. background-size: 100% 100%;
  1434. }
  1435. &-yellow {
  1436. background: url('@/assets/fontSize-white.png') no-repeat left top;
  1437. background-size: 100% 100%;
  1438. }
  1439. }
  1440. &.font-jia {
  1441. &-black {
  1442. cursor: pointer;
  1443. background: url('@/assets/jia-black.png') no-repeat left top;
  1444. background-size: 100% 100%;
  1445. }
  1446. &-yellow {
  1447. cursor: pointer;
  1448. background: url('@/assets/jia-white.png') no-repeat left top;
  1449. background-size: 100% 100%;
  1450. }
  1451. &-white-disabled {
  1452. cursor: pointer;
  1453. background: url('@/assets/jia-white-disabled.png') no-repeat left top;
  1454. background-size: 100% 100%;
  1455. }
  1456. &-yellow-disabled {
  1457. cursor: pointer;
  1458. background: url('@/assets/jia-yellow-disabled.png') no-repeat left top;
  1459. background-size: 100% 100%;
  1460. }
  1461. }
  1462. }
  1463. }
  1464. .top-middle {
  1465. display: flex;
  1466. align-items: center;
  1467. justify-content: center;
  1468. .audio-box {
  1469. display: flex;
  1470. align-items: center;
  1471. justify-content: center;
  1472. width: 56px;
  1473. height: 56px;
  1474. background: #fff;
  1475. border: 1px solid rgba(0, 0, 0, 10%);
  1476. border-radius: 40px;
  1477. &-green {
  1478. background: rgba(255, 255, 255, 10%);
  1479. border: 1px solid rgba(0, 0, 0, 10%);
  1480. }
  1481. }
  1482. }
  1483. }
  1484. .op-btn {
  1485. box-sizing: border-box;
  1486. display: flex;
  1487. align-items: center;
  1488. justify-content: center;
  1489. width: 56px;
  1490. height: 56px;
  1491. margin-left: 32px;
  1492. cursor: pointer;
  1493. background: #fff;
  1494. border: 1px solid rgba(0, 0, 0, 10%);
  1495. border-radius: 100%;
  1496. &-green {
  1497. background: rgba(255, 255, 255, 10%);
  1498. border: 1px solid rgba(0, 0, 0, 10%);
  1499. }
  1500. &.close-btn {
  1501. background: #274533;
  1502. border: 1px solid rgba(0, 0, 0, 10%);
  1503. }
  1504. > span {
  1505. width: 24px;
  1506. height: 24px;
  1507. &.close-icon {
  1508. background: url('@/assets/icon/cross-24-normal-black.png') no-repeat left top;
  1509. background-size: 100% 100%;
  1510. &-white {
  1511. background: url('@/assets/icon/cross-24-normal-white.png') no-repeat left top;
  1512. background-size: 100% 100%;
  1513. }
  1514. }
  1515. }
  1516. }
  1517. .repeat-icon {
  1518. background: url('@/assets/icon/Repeat-24-normal-red.png') no-repeat left top;
  1519. background-size: 100% 100%;
  1520. &.disabled {
  1521. background: url('@/assets/icon/Repeat-24-disable-Black.png') no-repeat left top;
  1522. background-size: 100% 100%;
  1523. }
  1524. &-yellow {
  1525. background: url('@/assets/icon/Repeat-24-normal-yellow.png') no-repeat left top;
  1526. background-size: 100% 100%;
  1527. }
  1528. &.auto-icon {
  1529. background: url('@/assets/icon/Auto-24-next-red.png') no-repeat left top;
  1530. background-size: 100% 100%;
  1531. &-yellow {
  1532. background: url('@/assets/icon/Auto-24-next-yellow.png') no-repeat left top;
  1533. background-size: 100% 100%;
  1534. }
  1535. }
  1536. }
  1537. .pinyin-icon {
  1538. background: url('@/assets/icon/pinyin-24-normal-red.png') no-repeat left top;
  1539. background-size: 100% 100%;
  1540. &.disabled {
  1541. background: url('@/assets/icon/pinyin-24-disable-Black.png') no-repeat left top;
  1542. background-size: 100% 100%;
  1543. }
  1544. &-yellow {
  1545. background: url('@/assets/icon/pinyin-24-normal-yellow.png') no-repeat left top;
  1546. background-size: 100% 100%;
  1547. }
  1548. }
  1549. .en-icon {
  1550. background: url('@/assets/icon/EN-24-normal-Red.png') no-repeat left top;
  1551. background-size: 100% 100%;
  1552. &.disabled {
  1553. background: url('@/assets/icon/EN-24-disable-Black.png') no-repeat left top;
  1554. background-size: 100% 100%;
  1555. }
  1556. &-yellow {
  1557. background: url('@/assets/icon/EN-24-normal-yellow.png') no-repeat left top;
  1558. background-size: 100% 100%;
  1559. }
  1560. }
  1561. .coll-icon {
  1562. background: url('@/assets/icon/bookmarkfill-24-normal-red.png') no-repeat left top;
  1563. background-size: 100% 100%;
  1564. &.disabled {
  1565. background: url('@/assets/icon/bookmarkfill-24-disable-Black.png') no-repeat left top;
  1566. background-size: 100% 100%;
  1567. }
  1568. &-yellow {
  1569. background: url('@/assets/icon/bookmarkfill-24-normal-yellow.png') no-repeat left top;
  1570. background-size: 100% 100%;
  1571. }
  1572. }
  1573. .keyboard-icon {
  1574. background: url('@/assets/icon/enter-24-keyboard-red.png') no-repeat left top;
  1575. background-size: 100% 100%;
  1576. &.disabled {
  1577. background: url('@/assets/icon/enter-24-keyboard-disable-Black.png') no-repeat left top;
  1578. background-size: 100% 100%;
  1579. }
  1580. &-yellow {
  1581. background: url('@/assets/icon/enter-24-keyboard-yellow.png') no-repeat left top;
  1582. background-size: 100% 100%;
  1583. }
  1584. }
  1585. &-content {
  1586. box-sizing: border-box;
  1587. display: flex;
  1588. flex: 1;
  1589. align-items: center;
  1590. width: 100%;
  1591. .vc-box {
  1592. padding: 0 8px 0 36px;
  1593. &-right {
  1594. padding: 0 36px 0 8px;
  1595. }
  1596. }
  1597. .vc-left {
  1598. width: 64px;
  1599. height: 64px;
  1600. cursor: pointer;
  1601. &-grey {
  1602. background: url('@/assets/left-grey.png') no-repeat left top;
  1603. background-size: 100% 100%;
  1604. }
  1605. &-black {
  1606. background: url('@/assets/left-black.png') no-repeat left top;
  1607. background-size: 100% 100%;
  1608. }
  1609. &-white {
  1610. background: url('@/assets/left-white.png') no-repeat left top;
  1611. background-size: 100% 100%;
  1612. }
  1613. &.hidden {
  1614. visibility: hidden;
  1615. }
  1616. }
  1617. .vc-right {
  1618. width: 64px;
  1619. height: 64px;
  1620. cursor: pointer;
  1621. &-grey {
  1622. background: url('@/assets/right-grey.png') no-repeat left top;
  1623. background-size: 100% 100%;
  1624. }
  1625. &-black {
  1626. background: url('@/assets/right-black.png') no-repeat left top;
  1627. background-size: 100% 100%;
  1628. }
  1629. &-white {
  1630. background: url('@/assets/right-white.png') no-repeat left top;
  1631. background-size: 100% 100%;
  1632. }
  1633. }
  1634. .vc-main {
  1635. width: fit-content;
  1636. padding: 0 67px;
  1637. margin: 0 auto;
  1638. .enwords {
  1639. padding: 0 3px;
  1640. margin-top: 24px;
  1641. font-family: 'Helvetica';
  1642. font-size: 24px;
  1643. line-height: 32px;
  1644. color: rgba(0, 0, 0, 45%);
  1645. word-break: break-word;
  1646. &-green {
  1647. color: rgba(255, 255, 255, 65%);
  1648. }
  1649. }
  1650. }
  1651. .NNPE-words {
  1652. float: left;
  1653. user-select: none;
  1654. &-box {
  1655. float: left;
  1656. > span {
  1657. display: block;
  1658. &.NNPE-pinyin {
  1659. box-sizing: border-box;
  1660. font-family: 'League';
  1661. font-size: 32px;
  1662. font-weight: normal;
  1663. line-height: 1.25;
  1664. color: rgba(0, 0, 0, 85%);
  1665. &.bottom {
  1666. padding-bottom: 16px;
  1667. }
  1668. &.noFont {
  1669. font-family: initial;
  1670. }
  1671. &.textLeft {
  1672. text-align: left;
  1673. }
  1674. &.font-white {
  1675. color: #fff;
  1676. }
  1677. &.wordBlank {
  1678. color: rgba(0, 0, 0, 85%);
  1679. }
  1680. }
  1681. &.NNPE-chs {
  1682. display: flex;
  1683. flex-flow: wrap; // 兼容不是汉字的内容
  1684. font-family: '楷体';
  1685. font-size: 48px;
  1686. line-height: 1.17;
  1687. color: rgba(0, 0, 0, 85%);
  1688. &.bottom {
  1689. padding-bottom: 16px;
  1690. }
  1691. .font-white {
  1692. color: #fff;
  1693. }
  1694. .active {
  1695. color: #de4444;
  1696. &-yellow {
  1697. color: #ffc600;
  1698. }
  1699. }
  1700. .wordActive {
  1701. color: #de4444;
  1702. }
  1703. .wordActive-blue {
  1704. color: #ffc600;
  1705. }
  1706. .newActive {
  1707. color: #de4444;
  1708. }
  1709. }
  1710. // &.padding {
  1711. // padding-right: 6px;
  1712. // }
  1713. }
  1714. }
  1715. &.textLeft {
  1716. text-align: left;
  1717. }
  1718. &.textCenter {
  1719. text-align: center;
  1720. }
  1721. &.textRight {
  1722. text-align: right;
  1723. }
  1724. > span {
  1725. display: block;
  1726. &.NNPE-pinyin {
  1727. box-sizing: border-box;
  1728. font-family: 'League';
  1729. font-size: 32px;
  1730. font-weight: normal;
  1731. line-height: 1.25;
  1732. color: rgba(0, 0, 0, 85%);
  1733. &.bottom {
  1734. padding-bottom: 16px;
  1735. }
  1736. &.font-white {
  1737. color: #fff;
  1738. }
  1739. &.noFont {
  1740. font-family: initial;
  1741. }
  1742. &.textLeft {
  1743. text-align: left;
  1744. }
  1745. &.wordBlank {
  1746. color: rgba(0, 0, 0, 85%);
  1747. }
  1748. }
  1749. &.NNPE-chs {
  1750. display: flex;
  1751. flex-flow: wrap; // 兼容不是汉字的内容
  1752. font-family: '楷体';
  1753. font-size: 48px;
  1754. line-height: 1.17;
  1755. color: rgba(0, 0, 0, 85%);
  1756. &.bottom {
  1757. padding-bottom: 16px;
  1758. }
  1759. .font-white {
  1760. color: #fff;
  1761. }
  1762. .active {
  1763. color: #de4444;
  1764. &-yellow {
  1765. color: #ffc600;
  1766. }
  1767. }
  1768. .wordActive {
  1769. color: #de4444;
  1770. }
  1771. .wordActive-blue {
  1772. color: #ffc600;
  1773. }
  1774. .newActive {
  1775. color: #de4444;
  1776. }
  1777. }
  1778. &.padding {
  1779. padding-right: 3px;
  1780. padding-left: 3px;
  1781. }
  1782. }
  1783. }
  1784. }
  1785. &-bottom {
  1786. box-sizing: border-box;
  1787. display: flex;
  1788. align-items: center;
  1789. justify-content: space-between;
  1790. width: 100%;
  1791. height: 136px;
  1792. padding-right: 40px;
  1793. .voicefull-bottom-show {
  1794. display: flex;
  1795. align-items: center;
  1796. justify-content: space-between;
  1797. width: 100%;
  1798. height: 136px;
  1799. visibility: visible;
  1800. }
  1801. .voicefull-bottom-hidden {
  1802. display: flex;
  1803. align-items: center;
  1804. justify-content: space-between;
  1805. width: 100%;
  1806. height: 136px;
  1807. visibility: hidden;
  1808. }
  1809. .bottom-left {
  1810. display: flex;
  1811. align-items: center;
  1812. justify-content: flex-start;
  1813. &-margin {
  1814. margin-left: 40px;
  1815. }
  1816. .compare-box {
  1817. box-sizing: border-box;
  1818. height: 56px;
  1819. padding: 16px;
  1820. border: 1px solid rgba(0, 0, 0, 10%);
  1821. border-left: 0 solid rgba(0, 0, 0, 10%);
  1822. border-radius: 0 40px 40px 0;
  1823. &-white {
  1824. background: rgba(255, 255, 255, 10%);
  1825. border: 1px solid rgba(0, 0, 0, 10%);
  1826. border-left: 0;
  1827. }
  1828. &-answer {
  1829. border-radius: 40px;
  1830. }
  1831. }
  1832. }
  1833. .page-count {
  1834. box-sizing: border-box;
  1835. min-width: 60px;
  1836. padding: 8px;
  1837. font-family: 'robot';
  1838. font-size: 16px;
  1839. line-height: 24px;
  1840. color: #000;
  1841. text-align: center;
  1842. background: #fff;
  1843. border-radius: 8px;
  1844. &-green {
  1845. color: #fff;
  1846. background: rgba(255, 255, 255, 20%);
  1847. }
  1848. }
  1849. }
  1850. }
  1851. .word-play-audio {
  1852. position: absolute;
  1853. left: -1000px;
  1854. }
  1855. .NNPE-wordDetail {
  1856. position: fixed;
  1857. top: 50%;
  1858. left: 50%;
  1859. z-index: 116;
  1860. max-width: 100%;
  1861. margin-top: -196px;
  1862. overflow: auto;
  1863. // box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
  1864. // width: 260px;
  1865. // height: 200px;
  1866. // background: #cc0;
  1867. }
  1868. </style>
  1869. <style lang="scss">
  1870. .NPC-Big-Book-preview-green {
  1871. .bg1 {
  1872. .repeat-icon {
  1873. background: url('@/assets/icon/Repeat-24-normal-Green.png') no-repeat left top;
  1874. background-size: 100% 100%;
  1875. }
  1876. .pinyin-icon {
  1877. background: url('@/assets/icon/pinyin-24-normal-green.png') no-repeat left top;
  1878. background-size: 100% 100%;
  1879. }
  1880. .en-icon {
  1881. background: url('@/assets/icon/EN-24-normal-Green.png') no-repeat left top;
  1882. background-size: 100% 100%;
  1883. }
  1884. .coll-icon {
  1885. background: url('@/assets/icon/bookmarkfill-24-normal-green.png') no-repeat left top;
  1886. background-size: 100% 100%;
  1887. }
  1888. }
  1889. }
  1890. .NPC-Big-Book-preview-brown {
  1891. .bg1 {
  1892. .repeat-icon {
  1893. background: url('@/assets/icon/Repeat-24-normal-Brown.png') no-repeat left top;
  1894. background-size: 100% 100%;
  1895. }
  1896. .pinyin-icon {
  1897. background: url('@/assets/icon/pinyin-24-normal-brown.png') no-repeat left top;
  1898. background-size: 100% 100%;
  1899. }
  1900. .en-icon {
  1901. background: url('@/assets/icon/EN-24-normal-Brown.png') no-repeat left top;
  1902. background-size: 100% 100%;
  1903. }
  1904. .coll-icon {
  1905. background: url('@/assets/icon/bookmarkfill-24-normal-brown.png') no-repeat left top;
  1906. background-size: 100% 100%;
  1907. }
  1908. }
  1909. }
  1910. </style>