统一样式

This commit is contained in:
史悦
2025-09-11 13:17:27 +08:00
parent 483ab26505
commit adbd205b7e
7 changed files with 942 additions and 283 deletions

View File

@@ -4,6 +4,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>房间等待 - 打飞机对战</title>
<!-- 引入通用样式 -->
<link rel="stylesheet" href="common-styles.css">
<!-- 引入导航功能 -->
<script src="navigation.js"></script>
<style>
/* 基础CSS变量 */
:root {
@@ -434,7 +441,12 @@
console.log('返回上一页');
// 添加触觉反馈
vibrate();
// 实际项目中这里应该调用路由返回或页面跳转
// 使用导航功能返回入口页面
if (typeof navigateTo === 'function') {
navigateTo('entry');
} else {
window.location.href = '01_入口页面.html';
}
}
@@ -456,8 +468,15 @@
vibrate();
// 检查是否所有玩家都准备
alert('游戏即将开始...');
// 实际项目中这里应该跳转到游戏页面
showToast('游戏即将开始...');
// 跳转到准备页面
setTimeout(() => {
if (typeof navigateTo === 'function') {
navigateTo('preparation');
} else {
window.location.href = '04_准备页面.html';
}
}, 1000);
}
// 分享房间码