diff --git a/src/pages/training/practise-one.vue b/src/pages/training/practise-one.vue
index ffc02e2..0c99b87 100644
--- a/src/pages/training/practise-one.vue
+++ b/src/pages/training/practise-one.vue
@@ -27,6 +27,7 @@ import { storeToRefs } from "pinia";
const store = useStore();
const { user } = storeToRefs(store);
+const sound = ref(true);
const start = ref(false);
const scores = ref([]);
const total = 12;
@@ -89,6 +90,12 @@ function onAudioEnded(s) {
}
}
+const updateSound = () => {
+ sound.value = !sound.value;
+ audioManager.setMuted(!sound.value);
+};
+
+
onMounted(async () => {
// audioManager.play("第一轮");
uni.setKeepScreenOn({
@@ -134,10 +141,26 @@ onBeforeUnmount(() => {
+
+
+
+
+
+
{
transform: translateX(-50%);
bottom: -36rpx;
}
+
+.sound-text-box{
+ height: 125rpx;
+ padding: 0 56rpx;
+ background: pink;
+}
+.sound-btn {
+ width: 76rpx;
+ height: 70rpx;
+ border: none;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: 56rpx;
+}
+
+.sound-btn::after {
+ border: none;
+}
+
+.sound-icon {
+ width: 76rpx;
+ height: 70rpx;
+}
+.bat-bext-box{
+ flex: 1;
+ position: relative;
+}
+.dao-icon{
+ width: 160rpx;
+ height: 125rpx;
+ position: absolute;
+ left: 0;
+ bottom: 0;
+}
diff --git a/src/static/training-difficulty-design/par-icon.png b/src/static/training-difficulty-design/dao-icon.png
similarity index 100%
rename from src/static/training-difficulty-design/par-icon.png
rename to src/static/training-difficulty-design/dao-icon.png