|
|
@@ -128,6 +128,7 @@
|
|
|
v-for="(wItem, wIndex) in pItem.leg"
|
|
|
:key="'ci' + wIndex + pIndex + index"
|
|
|
:class="[
|
|
|
+ isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -137,6 +138,7 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
color:
|
|
|
+ isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -145,7 +147,7 @@
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.chs[wIndex], pItem.chs)"
|
|
|
+ @click.stop="viewNotes($event, pItem.chs[wIndex])"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
></span
|
|
|
>
|
|
|
@@ -349,6 +351,7 @@
|
|
|
v-for="(wItem, wIndex) in pItem.leg"
|
|
|
:key="'ci' + wIndex + pIndex + index"
|
|
|
:class="[
|
|
|
+ isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -358,6 +361,7 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
color:
|
|
|
+ isPlaying &&
|
|
|
pItem.chstimeList &&
|
|
|
pItem.chstimeList[wIndex] &&
|
|
|
curTime >= pItem.chstimeList[wIndex].wordBg &&
|
|
|
@@ -366,7 +370,7 @@
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
}"
|
|
|
- @click.stop="viewNotes($event, pItem.chs[wIndex], pItem.chs)"
|
|
|
+ @click.stop="viewNotes($event, pItem.chs[wIndex])"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
></span
|
|
|
>
|
|
|
@@ -495,7 +499,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], pItem.chs)"
|
|
|
+ @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex])"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
|
@@ -709,7 +713,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], pItem.chs)"
|
|
|
+ @click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex])"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
|
@@ -1401,7 +1405,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- viewNotes(e, noteNum, noteNums) {
|
|
|
+ viewNotes(e, noteNum) {
|
|
|
let _this = this;
|
|
|
_this.clickType = 'note';
|
|
|
_this.activeWord = null;
|
|
|
@@ -1445,37 +1449,6 @@ 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) {
|