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>
|
||||
|
||||
@@ -469,7 +469,7 @@ onShow(async () => {
|
||||
</view>
|
||||
|
||||
<view class="radar-section">
|
||||
<view class="record-bubble" @click="openTrainingRecord">
|
||||
<view class="record-bubble" @click="$clickSound(openTrainingRecord)">
|
||||
<image
|
||||
class="record-bubble-bg"
|
||||
src="https://static.shelingxingqiu.com/shootmini/static/training-home/img_28.png"
|
||||
@@ -530,7 +530,7 @@ onShow(async () => {
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="featured-card" @click="openRoutineTraining">
|
||||
<view class="featured-card" @click="$clickSound(openRoutineTraining)">
|
||||
<image
|
||||
class="featured-card-bg"
|
||||
src="https://static.shelingxingqiu.com/shootmini/static/training-home/img_22.png"
|
||||
@@ -547,7 +547,7 @@ onShow(async () => {
|
||||
v-for="item in visibleTrainingItems"
|
||||
:key="item.id"
|
||||
class="mode-card"
|
||||
@click="openTrainingItem(item)"
|
||||
@click="$clickSound(() => openTrainingItem(item))"
|
||||
>
|
||||
<view v-if="item.id === recommendedTrainingId" class="mode-tag">
|
||||
推荐
|
||||
@@ -572,6 +572,7 @@ onShow(async () => {
|
||||
</view>
|
||||
<TargetPicker
|
||||
:show="showRoutineTargetPicker"
|
||||
:clickSound="true"
|
||||
:onClose="() => (showRoutineTargetPicker = false)"
|
||||
:onConfirm="handleRoutineTargetConfirm"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user