优化游戏界面状态显示逻辑,调整完成状态的展示位置和样式
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
<!-- 游戏界面 -->
|
||||
<GamePage
|
||||
v-else-if="state.status === 'LOGGED_IN' || state.status === 'COMPLETED'"
|
||||
v-else-if="state.status === 'LOGGED_IN'"
|
||||
:region="state.region"
|
||||
:region-desc="state.regionDesc"
|
||||
:machine-id="state.machineId"
|
||||
@@ -44,6 +44,11 @@
|
||||
:current-points="state.currentPoints"
|
||||
/>
|
||||
|
||||
<!-- 完成状态 -->
|
||||
<div v-else-if="state.status === 'COMPLETED'" class="completed-page">
|
||||
<div class="completed-text">已打完</div>
|
||||
</div>
|
||||
|
||||
<!-- 刷新等待界面 -->
|
||||
<RefreshWaitPage
|
||||
v-else-if="state.needRefresh"
|
||||
@@ -215,4 +220,26 @@ export default {
|
||||
position: relative;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.completed-page {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: white;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.completed-text {
|
||||
font-size: 48px;
|
||||
font-weight: bold;
|
||||
color: #28a745;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.completed-text {
|
||||
font-size: 36px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user