|
@@ -256,14 +256,8 @@ export default {
|
|
|
},
|
|
|
handlePlayVoice(mp3) {
|
|
|
let _this = this;
|
|
|
- let leg = this.optionRes.length;
|
|
|
if (!mp3) {
|
|
|
- if (_this.mp3_index < leg - 1) {
|
|
|
- _this.mp3_index = _this.mp3_index + 1;
|
|
|
- mp3 = _this.optionRes[mp3_index].mp3_list[0].id;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ return;
|
|
|
}
|
|
|
if (!this.audio.paused) {
|
|
|
this.audio.pause();
|
|
@@ -286,12 +280,14 @@ export default {
|
|
|
console.log(this.curQue);
|
|
|
|
|
|
if (this.curQue.type == "NewWord_chs") {
|
|
|
+ let resIndex = 0;
|
|
|
let optionRes = [];
|
|
|
this.curQue.option.forEach((item, index) => {
|
|
|
optionRes = optionRes.concat(item);
|
|
|
item.index = index + 1;
|
|
|
item.forEach((sItem, sIndex) => {
|
|
|
- sItem.sIndex = index == 0 ? sIndex : sIndex + optionRes.length;
|
|
|
+ sItem.sIndex = resIndex;
|
|
|
+ resIndex++;
|
|
|
sItem.def_str =
|
|
|
sItem.definition_list.length > 0
|
|
|
? sItem.definition_list.join(";")
|
|
@@ -522,4 +518,18 @@ export default {
|
|
|
padding: 4px 0;
|
|
|
}
|
|
|
}
|
|
|
+.NNPE-Big-Book-preview-green {
|
|
|
+ .NPC-zhedie {
|
|
|
+ .el-collapse-item__header {
|
|
|
+ background: #24b99e !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.NNPE-Big-Book-preview-brown {
|
|
|
+ .NPC-zhedie {
|
|
|
+ .el-collapse-item__header {
|
|
|
+ background: #bd8865 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|