|
|
@@ -128,7 +128,6 @@
|
|
|
v-for="(wItem, wIndex) in pItem.leg"
|
|
|
:key="'ci' + wIndex + pIndex + index"
|
|
|
:class="[
|
|
|
- isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -138,7 +137,6 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
color:
|
|
|
- isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -147,7 +145,7 @@
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.chs[wIndex])"
|
|
|
+ @click.stop="viewNotes($event, pItem.chs[wIndex], pItem.chs)"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
></span
|
|
|
>
|
|
|
@@ -351,7 +349,6 @@
|
|
|
v-for="(wItem, wIndex) in pItem.leg"
|
|
|
:key="'ci' + wIndex + pIndex + index"
|
|
|
:class="[
|
|
|
- isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -361,7 +358,6 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
color:
|
|
|
- isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -370,7 +366,7 @@
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.chs[wIndex])"
|
|
|
+ @click.stop="viewNotes($event, pItem.chs[wIndex], pItem.chs)"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
></span
|
|
|
>
|
|
|
@@ -499,7 +495,7 @@
|
|
|
lineHeight:
|
|
|
attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex])"
|
|
|
+ @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex], pItem.chs)"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
|
@@ -713,7 +709,7 @@
|
|
|
lineHeight:
|
|
|
attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex])"
|
|
|
+ @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex], pItem.chs)"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
|
@@ -1405,7 +1401,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- viewNotes(e, noteNum) {
|
|
|
+ viewNotes(e, noteNum, noteNums) {
|
|
|
let _this = this;
|
|
|
_this.clickType = 'note';
|
|
|
_this.activeWord = null;
|
|
|
@@ -1449,6 +1445,37 @@ export default {
|
|
|
} else {
|
|
|
_this.left = left;
|
|
|
}
|
|
|
+ } else if (this.newWordList.indexOf(noteNums) > -1) {
|
|
|
+ if (_this.oldHz != noteNums) {
|
|
|
+ this.isShow = false;
|
|
|
+ _this.NNPENewWordList.forEach((items) => {
|
|
|
+ // item.forEach((items) => {
|
|
|
+ if (items.new_word === noteNums) {
|
|
|
+ this.activeWord = items;
|
|
|
+ }
|
|
|
+ // });
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.hz = noteNums;
|
|
|
+ }, 50);
|
|
|
+ }
|
|
|
+ _this.clientY = e.clientY;
|
|
|
+ let left = e.clientX;
|
|
|
+ let width = 0;
|
|
|
+
|
|
|
+ if (noteNums.length == 1 || noteNums.length == 2) {
|
|
|
+ width = 304;
|
|
|
+ } else if (noteNums.length == 3 || noteNums.length == 4) {
|
|
|
+ width = 432;
|
|
|
+ } else if (noteNums.length > 3) {
|
|
|
+ width = 560;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (left - this.bodyLeft > this.contentWidth / 2) {
|
|
|
+ _this.left = left - width + 10;
|
|
|
+ } else {
|
|
|
+ _this.left = left;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
showNoteDetail(e, noteNum) {
|