diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux
index 48d3940..e9b5c97 100644
--- a/src/pages/index/index.ux
+++ b/src/pages/index/index.ux
@@ -9,14 +9,16 @@
-
-
-
-
{{$item.name}}
-
{{$item.usr}}
+
+
+
+
+ {{$item.name}}
+ {{$item.usr}}
-
-
{{$item.otp}}
+
+
+ {{$item.otp}}
@@ -27,12 +29,21 @@
暂无验证器
-
+
-
-
-
-
{{timeLeft}}秒
+
+
+
+ {{timeLeft}}秒
+
+
+
+
@@ -716,6 +727,17 @@ export default {
vibrator.vibrate({
mode: 'short'
})
+ },
+
+ onBackPress() {
+ console.log('触发:onBackPress')
+ // 如果详情页打开,则关闭详情页返回列表
+ if (this.showDetailPage) {
+ this.hideDetail()
+ return true // 自己处理,不执行系统默认返回
+ }
+ // 否则执行系统默认返回行为(退出应用)
+ return false
}
}
@@ -748,7 +770,7 @@ export default {
}
.header-title {
- font-size: 18px;
+ font-size: 24px;
color: #fff;
font-weight: bold;
text-align: center;
@@ -756,9 +778,9 @@ export default {
.header-divider {
position: absolute;
- top: 55px;
- left: 20px;
- right: 20px;
+ top: 45px;
+ left: 30px;
+ right: 30px;
height: 1px;
background: linear-gradient(to right, transparent, #333, transparent);
flex-shrink: 0;
@@ -782,23 +804,23 @@ export default {
}
.empty-icon {
- font-size: 48px;
- margin-bottom: 16px;
+ font-size: 56px;
+ margin-bottom: 20px;
}
.empty-text {
- font-size: 16px;
+ font-size: 20px;
color: #666;
text-align: center;
}
-/* 底部弧形倒计时 */
+/* 底部并排倒计时 */
.countdown-container {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
- height: 100px;
+ height: 48px;
background-color: transparent;
}
@@ -821,24 +843,24 @@ export default {
.detail-content {
flex: 1;
- padding: 40px 20px 20px 20px;
+ padding: 30px 15px 15px 15px;
flex-direction: column;
align-items: center;
justify-content: center;
}
.detail-service {
- font-size: 28px;
+ font-size: 40px;
color: #fff;
font-weight: bold;
- margin-bottom: 8px;
+ margin-bottom: 10px;
text-align: center;
}
.detail-account {
- font-size: 22px;
+ font-size: 30px;
color: #999;
- margin-bottom: 30px;
+ margin-bottom: 25px;
text-align: center;
}
@@ -846,32 +868,32 @@ export default {
flex-direction: column;
align-items: center;
justify-content: center;
- margin-bottom: 25px;
- padding: 20px;
+ margin-bottom: 20px;
+ padding: 15px;
background-color: #1a1a1a;
border-radius: 12px;
border: 2px solid #333;
height: 120px;
- width: 170px;
+ width: 280px;
}
.detail-code-row {
flex-direction: row;
justify-content: center;
align-items: center;
- margin: 6px 0;
+ margin: 4px 0;
}
.detail-code-digit {
- width: 30px;
- height: 50px;
+ width: 36px;
+ height: 42px;
margin: 0 1px;
justify-content: center;
align-items: center;
}
.detail-code-num {
- font-size: 32px;
+ font-size: 36px;
color: #00ff88;
font-weight: bold;
font-family: monospace;
@@ -880,7 +902,7 @@ export default {
}
.detail-code-single {
- font-size: 32px;
+ font-size: 36px;
color: #00ff88;
font-weight: bold;
font-family: monospace;
@@ -890,7 +912,7 @@ export default {
}
.detail-time {
- font-size: 22px;
+ font-size: 30px;
color: #AAA;
text-align: center;
}