Commit 32916f24 authored by liujiangnan's avatar liujiangnan

feat

parent d175907d
...@@ -149,14 +149,18 @@ new Vue({ ...@@ -149,14 +149,18 @@ new Vue({
if (isSelectionCorrect) { if (isSelectionCorrect) {
// 回答正确,显示庆祝动画 // 回答正确,显示庆祝动画
this.showCelebration = true; this.showCelebration = true;
// 延迟重置选择,让用户看到错误信息
setTimeout(() => {
this.resetAnswer();
callServerMethod('finished', {});
}, 3000);
} else { } else {
// 回答错误,显示错误动画并重置选择 // 回答错误,显示错误动画并重置选择
this.showError = true; this.showError = true;
// 延迟重置选择,让用户看到错误信息 // 延迟重置选择,让用户看到错误信息
setTimeout(() => { setTimeout(() => {
this.resetAnswer(); this.resetAnswer();
callServerMethod('finished', {}); }, 1000);
}, 2000);
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment