|
@@ -377,7 +377,7 @@
|
|
|
<div
|
|
|
ref="wordcard"
|
|
|
class="NNPE-wordDetail"
|
|
|
- :style="{ top: top + 'px', left: left + 'px' }"
|
|
|
+ :style="{ left: left + 'px' }"
|
|
|
>
|
|
|
<Wordcard
|
|
|
:word="word"
|
|
@@ -551,11 +551,11 @@ export default {
|
|
|
if (val) {
|
|
|
setTimeout(() => {
|
|
|
_this.cardHeight = _this.$refs.notecard.offsetHeight;
|
|
|
- if (_this.screenHeight - _this.clientY > _this.cardHeight) {
|
|
|
- _this.top = _this.clientY + 20;
|
|
|
- } else {
|
|
|
- _this.top = _this.clientY - _this.cardHeight - 30;
|
|
|
- }
|
|
|
+ // if (_this.screenHeight - _this.clientY > _this.cardHeight) {
|
|
|
+ // _this.top = _this.clientY + 20;
|
|
|
+ // } else {
|
|
|
+ // _this.top = _this.clientY - _this.cardHeight - 30;
|
|
|
+ // }
|
|
|
}, 50);
|
|
|
}
|
|
|
},
|
|
@@ -848,7 +848,6 @@ export default {
|
|
|
} else {
|
|
|
writeModel[hz] = [answer];
|
|
|
}
|
|
|
- console.log(this.curQue.Bookanswer);
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -856,12 +855,9 @@ export default {
|
|
|
created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
- console.log(this.curQue);
|
|
|
if (this.curQue) {
|
|
|
this.handleData();
|
|
|
}
|
|
|
- console.log("生词");
|
|
|
- console.log(this.NNPENewWordList);
|
|
|
if (this.NNPENewWordList && this.NNPENewWordList.length > 0) {
|
|
|
this.handleNewword();
|
|
|
}
|
|
@@ -1138,6 +1134,8 @@ export default {
|
|
|
.NNPE-wordDetail {
|
|
|
position: fixed;
|
|
|
z-index: 9999;
|
|
|
+ top: 50%;
|
|
|
+ margin-top: -196px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|