细节修改

This commit is contained in:
kron
2025-12-30 18:10:31 +08:00
parent 44913a6f2e
commit 910530748d
7 changed files with 270 additions and 72 deletions

View File

@@ -59,14 +59,19 @@ const hideGlobalHint = () => {
showHint.value = false;
};
const restart = () => {
uni.restartMiniProgram({
path: "/pages/index",
});
};
const checkAudioProgress = async () => {
return new Promise((resolve, reject) => {
try {
audioInitProgress.value = AudioManager.getLoadProgress();
if (audioInitProgress.value === 1) return resolve();
audioTimer.value = setInterval(() => {
const result = AudioManager.getLoadProgress();
audioProgress.value = result;
audioProgress.value = AudioManager.getLoadProgress();
if (audioProgress.value === 1) {
setTimeout(() => {
audioInitProgress.value = 1;
@@ -220,17 +225,15 @@ const goCalibration = async () => {
/>
<view>
<view :style="{ width: `${audioFinalProgress * 100}%` }">
<image
<!-- <image
src="https://static.shelingxingqiu.com/attachment/2025-11-24/degu91a7si77sg9jqv.png"
mode="widthFix"
/>
/> -->
</view>
</view>
<view>
<text>若加载时间过长</text>
<button hover-class="none" @click="AudioManager.reloadAll">
点击这里重启
</button>
<button hover-class="none" @click="restart">点击这里重启</button>
</view>
</view>
</view>
@@ -290,7 +293,7 @@ const goCalibration = async () => {
position: fixed;
top: 0;
left: 0;
background: rgb(0 0 0 / 0.6);
background: rgb(0 0 0 / 0.8);
display: flex;
flex-direction: column;
align-items: center;
@@ -304,7 +307,7 @@ const goCalibration = async () => {
.audio-progress > view:nth-child(2) {
width: 380rpx;
height: 6rpx;
background: #000000;
background: #595959;
border-radius: 4rpx;
display: flex;
flex-direction: column;
@@ -328,7 +331,6 @@ const goCalibration = async () => {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20rpx;
}
.audio-progress > view:nth-child(3) > text {
font-size: 22rpx;
@@ -340,5 +342,6 @@ const goCalibration = async () => {
font-size: 22rpx;
color: #ffe431;
line-height: 32rpx;
padding: 20rpx 0;
}
</style>