Skip to content

Commit 72027c0

Browse files
committed
fix(SPA): 某些情况下弹起键盘框会导致字体重复的问题
1 parent 0db0012 commit 72027c0

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

resources/spa/src/page/sign/Signup.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ export default {
255255
256256
if (!res) return true
257257
258+
if (verifiableCode.length < 4 || verifiableCode.length > 6) return true
259+
258260
return this.verifiable_type === 'sms'
259261
? phone.length !== 11
260262
: email.length <= 4
@@ -398,12 +400,9 @@ export default {
398400
}
399401
400402
footer {
401-
position: fixed;
402-
left: 0;
403-
right: 0;
404-
bottom: 0;
405-
text-align: center;
403+
margin-top: 40px;
406404
padding: 0.2rem;
405+
text-align: center;
407406
408407
.register-protocol {
409408
font-size: 0.3rem;

resources/spa/src/page/topic/TopicCreate.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<div v-if="loading" class="m-pos-f m-spinner" />
2323

24-
<main>
24+
<main class="main-container">
2525
<form class="form" onsubmit="return false">
2626
<div
2727
v-if="!src"
@@ -189,6 +189,12 @@ export default {
189189
background-color: #fff;
190190
height: 100%;
191191
192+
.main-container {
193+
display: flex;
194+
flex-direction: column;
195+
justify-content: space-between;
196+
}
197+
192198
.primary {
193199
color: @primary;
194200
}
@@ -251,10 +257,8 @@ export default {
251257
}
252258
253259
.tips {
254-
position: fixed;
255-
bottom: 30px;
256-
left: 30px;
257-
right: 30px;
260+
flex: none;
261+
padding: 30px;
258262
color: #999;
259263
font-size: 26px;
260264

0 commit comments

Comments
 (0)