添加练习超时,重新挑战
This commit is contained in:
@@ -56,6 +56,7 @@ watch(
|
||||
(newVal, oldVal) => {
|
||||
if (newVal === false) {
|
||||
if (timer.value) clearInterval(timer.value);
|
||||
remain.value = props.total;
|
||||
}
|
||||
if (!oldVal && newVal === true) {
|
||||
setTimeout(() => {
|
||||
@@ -86,7 +87,7 @@ onUnmounted(() => {
|
||||
<view class="container">
|
||||
<view>
|
||||
<image src="../static/shooter.png" mode="widthFix" />
|
||||
<text>{{ remain === 0 ? "射箭时间到!" : tips }}</text>
|
||||
<text>{{ start && remain === 0 ? "射箭时间到!" : tips }}</text>
|
||||
<button hover-class="none" @click="() => (sound = !sound)">
|
||||
<image
|
||||
:src="`../static/sound${sound ? '' : '-off'}-yellow.png`"
|
||||
|
||||
Reference in New Issue
Block a user