Merge branch 'new-race-mode' into test
This commit is contained in:
@@ -208,13 +208,14 @@ onLoad(async (options) => {
|
|||||||
audioManager.play(ifWin.value ? "胜利" : "失败");
|
audioManager.play(ifWin.value ? "胜利" : "失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 数据加载完成后显示覆盖动效层
|
// 数据加载完成后延迟 1 秒再显示激励弹窗,避免进场时画面太杂
|
||||||
|
setTimeout(() => {
|
||||||
showOverlay.value = true;
|
showOverlay.value = true;
|
||||||
|
// 弹窗显示后 2.5 秒自动关闭
|
||||||
// 2.5 秒后自动关闭覆盖层
|
|
||||||
overlayTimer.value = setTimeout(() => {
|
overlayTimer.value = setTimeout(() => {
|
||||||
closeOverlay();
|
closeOverlay();
|
||||||
}, 2500);
|
}, 2500);
|
||||||
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
@@ -267,7 +268,7 @@ async function exit() {
|
|||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
// 接口异常(如房间已解散)同样视为已不在房间
|
// 接口异常(如房间已解散)同样视为已不在房间
|
||||||
uni.showToast({ title: '您已经不在当前房间', icon: 'none' });
|
uni.showToast({ title: '您已经离开了房间', icon: 'none' });
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.reLaunch({ url: '/pages/index' });
|
uni.reLaunch({ url: '/pages/index' });
|
||||||
}, 1500);
|
}, 1500);
|
||||||
@@ -880,8 +881,8 @@ function goBack() {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
/* rgba 写法等价于 background:#000 + opacity:0.7,且不影响子元素不透明度 */
|
/* rgba 写法等价于 background:#000 + opacity:0.5,且不影响子元素不透明度 */
|
||||||
background: rgba(0, 0, 0, 0.7);
|
background: rgba(0, 0, 0, 0.5);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user