|
|
@@ -1353,6 +1353,266 @@
|
|
|
}}</span
|
|
|
>
|
|
|
</span>
|
|
|
+ <span
|
|
|
+ v-if="
|
|
|
+ item.wordsList[pIndex + 2] &&
|
|
|
+ item.wordsList[pIndex + 2].chs &&
|
|
|
+ (chsFhList.indexOf(item.wordsList[pIndex + 2].chs) > -1 ||
|
|
|
+ NumberList.indexOf(item.wordsList[pIndex + 2].chs) > -1) &&
|
|
|
+ item.wordsList[pIndex + 3] &&
|
|
|
+ item.wordsList[pIndex + 3].chs &&
|
|
|
+ (chsFhList.indexOf(item.wordsList[pIndex + 3].chs) > -1 ||
|
|
|
+ NumberList.indexOf(item.wordsList[pIndex + 3].chs) > -1)
|
|
|
+ "
|
|
|
+ class="NNPE-words-box"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ v-if="curQue.property.pinyin_position == 'top' && config.isShowPY && item.dhaspinyin"
|
|
|
+ :class="[
|
|
|
+ 'NNPE-pinyin',
|
|
|
+ noFont.indexOf(item.wordsList[pIndex + 3].pinyin) > -1 ? 'noFont' : '',
|
|
|
+ ]"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
+ @click.stop="
|
|
|
+ viewNotes(
|
|
|
+ $event,
|
|
|
+ item.wordsList[pIndex + 3].pinyin,
|
|
|
+ item.timeList && item.timeList[pItem.sentIndex] && item.timeList[pItem.sentIndex].bg,
|
|
|
+ item.timeList && item.timeList[pItem.sentIndex] && item.timeList[pItem.sentIndex].ed,
|
|
|
+ pItem.articleSentIndex,
|
|
|
+ pItem,
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >{{
|
|
|
+ NumberList.indexOf(item.wordsList[pIndex + 3].pinyin) == -1
|
|
|
+ ? item.wordsList[pIndex + 3].pinyin
|
|
|
+ : ''
|
|
|
+ }}</span
|
|
|
+ >
|
|
|
+ <el-tooltip
|
|
|
+ v-if="item.wordsList[pIndex + 3].matchNotesObj.con"
|
|
|
+ popper-class="article-bubble"
|
|
|
+ effect="light"
|
|
|
+ placement="bottom-start"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ slot="content"
|
|
|
+ :style="{
|
|
|
+ color: attrib && attrib.text_color ? attrib.text_color : '#de4444',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '',
|
|
|
+ }"
|
|
|
+ v-html="item.wordsList[pIndex + 3].matchNotesObj.con"
|
|
|
+ ></div>
|
|
|
+ <span
|
|
|
+ class="NNPE-chs"
|
|
|
+ style="text-align: left"
|
|
|
+ :class="[
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ curTime >= item.timeList[pItem.sentIndex].bg &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ curTime
|
|
|
+ ? 'active'
|
|
|
+ : '',
|
|
|
+ pItem.paraIndex == paraIndex && pItem.sentIndex == sentIndex ? 'overActive' : '',
|
|
|
+ pItem.chstimeList &&
|
|
|
+ pItem.chstimeList[pItem.leg - 1] &&
|
|
|
+ curTime >= pItem.chstimeList[pItem.leg - 1].wordBg &&
|
|
|
+ curQue.wordTime &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed
|
|
|
+ ? 'wordActive'
|
|
|
+ : '',
|
|
|
+ ]"
|
|
|
+ :style="{
|
|
|
+ fontFamily: item.wordsList[pIndex + 3].config.fontFamily,
|
|
|
+ textDecoration: item.wordsList[pIndex + 3].config.textDecoration,
|
|
|
+ borderBottom:
|
|
|
+ item.wordsList[pIndex + 3].config.border === 'dotted' ? '1px dotted' : '',
|
|
|
+ fontWeight: item.wordsList[pIndex + 3].config.fontWeight,
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
+ width: item.wordsList[pIndex + 3].chs.trim() === '' ? '6px' : '',
|
|
|
+ backgroundColor:
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ curTime >= item.timeList[pItem.sentIndex].bg &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ curTime &&
|
|
|
+ attrib
|
|
|
+ ? attrib.assist_color
|
|
|
+ : '',
|
|
|
+ color:
|
|
|
+ pItem.chstimeList &&
|
|
|
+ pItem.chstimeList[pItem.leg - 1] &&
|
|
|
+ curTime >= pItem.chstimeList[pItem.leg - 1].wordBg &&
|
|
|
+ curQue.wordTime &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ attrib
|
|
|
+ ? attrib.topic_color
|
|
|
+ : item.wordsList[pIndex + 3].matchNotesObj.con &&
|
|
|
+ item.wordsList[pIndex + 3].matchNotesObj.notesColor
|
|
|
+ ? item.wordsList[pIndex + 3].matchNotesObj.notesColor
|
|
|
+ : item.wordsList[pIndex + 3].config.color,
|
|
|
+ }"
|
|
|
+ @click.stop="
|
|
|
+ viewNotes(
|
|
|
+ $event,
|
|
|
+ item.wordsList[pIndex + 3].chs,
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ item.timeList[pItem.sentIndex].bg,
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ item.timeList[pItem.sentIndex].ed,
|
|
|
+ pItem.articleSentIndex,
|
|
|
+ pItem,
|
|
|
+ )
|
|
|
+ "
|
|
|
+ ><span>{{ convertText(item.wordsList[pIndex + 3].chs) }}</span
|
|
|
+ ><img
|
|
|
+ v-if="
|
|
|
+ item.wordsList[pIndex + 3].img &&
|
|
|
+ item.wordsList[pIndex + 3].img.length > 0 &&
|
|
|
+ item.wordsList[pIndex + 3].imgPosition === 'after'
|
|
|
+ "
|
|
|
+ :src="item.wordsList[pIndex + 3].img[0].file_url"
|
|
|
+ :style="{
|
|
|
+ height: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ }"
|
|
|
+ /></span>
|
|
|
+ </el-tooltip>
|
|
|
+ <template v-else>
|
|
|
+ <span
|
|
|
+ class="NNPE-chs"
|
|
|
+ style="text-align: left"
|
|
|
+ :class="[
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ curTime >= item.timeList[pItem.sentIndex].bg &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ curTime
|
|
|
+ ? 'active'
|
|
|
+ : '',
|
|
|
+ pItem.paraIndex == paraIndex && pItem.sentIndex == sentIndex ? 'overActive' : '',
|
|
|
+ pItem.chstimeList &&
|
|
|
+ pItem.chstimeList[pItem.leg - 1] &&
|
|
|
+ curTime >= pItem.chstimeList[pItem.leg - 1].wordBg &&
|
|
|
+ curQue.wordTime &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed
|
|
|
+ ? 'wordActive'
|
|
|
+ : '',
|
|
|
+ ]"
|
|
|
+ :style="{
|
|
|
+ fontFamily: item.wordsList[pIndex + 3].config.fontFamily,
|
|
|
+ textDecoration: item.wordsList[pIndex + 3].config.textDecoration,
|
|
|
+ borderBottom:
|
|
|
+ item.wordsList[pIndex + 3].config.border === 'dotted' ? '1px dotted' : '',
|
|
|
+ fontWeight: item.wordsList[pIndex + 3].config.fontWeight,
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
+ width: item.wordsList[pIndex + 3].chs.trim() === '' ? '6px' : '',
|
|
|
+ backgroundColor:
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ curTime >= item.timeList[pItem.sentIndex].bg &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ curTime &&
|
|
|
+ attrib
|
|
|
+ ? attrib.assist_color
|
|
|
+ : '',
|
|
|
+ color:
|
|
|
+ pItem.chstimeList &&
|
|
|
+ pItem.chstimeList[pItem.leg - 1] &&
|
|
|
+ curTime >= pItem.chstimeList[pItem.leg - 1].wordBg &&
|
|
|
+ curQue.wordTime &&
|
|
|
+ curTime <= item.timeList[pItem.sentIndex].ed &&
|
|
|
+ attrib
|
|
|
+ ? attrib.topic_color
|
|
|
+ : item.wordsList[pIndex + 3].matchNotesObj.con &&
|
|
|
+ item.wordsList[pIndex + 3].matchNotesObj.notesColor
|
|
|
+ ? item.wordsList[pIndex + 3].matchNotesObj.notesColor
|
|
|
+ : item.wordsList[pIndex + 3].config.color,
|
|
|
+ }"
|
|
|
+ @click.stop="
|
|
|
+ viewNotes(
|
|
|
+ $event,
|
|
|
+ item.wordsList[pIndex + 3].chs,
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ item.timeList[pItem.sentIndex].bg,
|
|
|
+ item.timeList &&
|
|
|
+ item.timeList[pItem.sentIndex] &&
|
|
|
+ item.timeList[pItem.sentIndex].ed,
|
|
|
+ pItem.articleSentIndex,
|
|
|
+ pItem,
|
|
|
+ )
|
|
|
+ "
|
|
|
+ ><span>{{ convertText(item.wordsList[pIndex + 3].chs) }}</span
|
|
|
+ ><img
|
|
|
+ v-if="
|
|
|
+ item.wordsList[pIndex + 3].img &&
|
|
|
+ item.wordsList[pIndex + 3].img.length > 0 &&
|
|
|
+ item.wordsList[pIndex + 3].imgPosition === 'after'
|
|
|
+ "
|
|
|
+ :src="item.wordsList[pIndex + 3].img[0].file_url"
|
|
|
+ :style="{
|
|
|
+ height: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ }"
|
|
|
+ /></span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <span
|
|
|
+ v-if="curQue.property.pinyin_position == 'bottom' && config.isShowPY && item.dhaspinyin"
|
|
|
+ :class="[
|
|
|
+ 'NNPE-pinyin',
|
|
|
+ noFont.indexOf(item.wordsList[pIndex + 3].pinyin) > -1 ? 'noFont' : '',
|
|
|
+ ]"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
+ @click.stop="
|
|
|
+ viewNotes(
|
|
|
+ $event,
|
|
|
+ item.wordsList[pIndex + 3].pinyin,
|
|
|
+ item.timeList && item.timeList[pItem.sentIndex] && item.timeList[pItem.sentIndex].bg,
|
|
|
+ item.timeList && item.timeList[pItem.sentIndex] && item.timeList[pItem.sentIndex].ed,
|
|
|
+ pItem.articleSentIndex,
|
|
|
+ pItem,
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >{{
|
|
|
+ NumberList.indexOf(item.wordsList[pIndex + 3].pinyin) == -1
|
|
|
+ ? item.wordsList[pIndex + 3].pinyin
|
|
|
+ : ''
|
|
|
+ }}</span
|
|
|
+ >
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<span class="NNPE-words-box">
|