|
@@ -215,7 +215,7 @@ export default {
|
|
|
detailIndex: 0,
|
|
|
audio: new Audio(),
|
|
|
playClass: "",
|
|
|
- mp3_index: 0,
|
|
|
+ mp3_index: -1,
|
|
|
playWord: null,
|
|
|
optionRes: [],
|
|
|
mp3List: [],
|
|
@@ -269,11 +269,11 @@ export default {
|
|
|
_this.playClass = "nn";
|
|
|
});
|
|
|
_this.playWord.addEventListener("pause", function () {
|
|
|
- _this.mp3_index = 0;
|
|
|
+ _this.mp3_index = -1;
|
|
|
_this.playClass = "";
|
|
|
});
|
|
|
_this.playWord.addEventListener("ended", function () {
|
|
|
- _this.mp3_index = 0;
|
|
|
+ _this.mp3_index = -1;
|
|
|
_this.playClass = "";
|
|
|
});
|
|
|
}
|
|
@@ -312,7 +312,7 @@ export default {
|
|
|
// _this.mp3_index = -1;
|
|
|
_this.playClass = "";
|
|
|
} else {
|
|
|
- let mp3_index = _this.mp3_index;
|
|
|
+ let mp3_index = _this.mp3_index == -1 ? 0 : _this.mp3_index;
|
|
|
let leg = _this.mp3List.length;
|
|
|
let mp3 = _this.mp3List[mp3_index].mp3_list[0].id;
|
|
|
_this.mp3_index = _this.mp3List[mp3_index].sIndex;
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- _this.mp3_index = 0;
|
|
|
+ _this.mp3_index = -1;
|
|
|
_this.playClass = "";
|
|
|
}
|
|
|
}
|