update:按钮特效优化
This commit is contained in:
@@ -5,6 +5,7 @@ import Container from "@/components/Container.vue";
|
||||
import TrainingDifficultyBadge from "./components/TrainingDifficultyBadge.vue";
|
||||
import TrainingDifficultyPreviewCard from "./components/TrainingDifficultyPreviewCard.vue";
|
||||
import TrainingDifficultyStartButton from "./components/TrainingDifficultyStartButton.vue";
|
||||
import audioManager from "@/audioManager";
|
||||
import {
|
||||
createPractiseV2API,
|
||||
endPractiseAPI,
|
||||
@@ -676,6 +677,8 @@ const handleSelectDifficulty = (node) => {
|
||||
return;
|
||||
}
|
||||
|
||||
audioManager.play("点击按钮");
|
||||
|
||||
if (node.id === selectedDifficultyId.value) {
|
||||
return;
|
||||
}
|
||||
@@ -810,7 +813,7 @@ onShow(() => {
|
||||
<view class="difficulty-page__start">
|
||||
<TrainingDifficultyStartButton
|
||||
:text="selectedDifficulty.startText"
|
||||
@click="handleStart"
|
||||
@click="$clickSound(handleStart)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user