diff --git a/core/core-frontend/src/assets/img/bg-mobile.png b/core/core-frontend/src/assets/img/bg-mobile.png
new file mode 100644
index 0000000000..946b99d250
Binary files /dev/null and b/core/core-frontend/src/assets/img/bg-mobile.png differ
diff --git a/core/core-frontend/src/assets/img/mobile-de-top.png b/core/core-frontend/src/assets/img/mobile-de-top.png
new file mode 100644
index 0000000000..4f6a3ae93f
Binary files /dev/null and b/core/core-frontend/src/assets/img/mobile-de-top.png differ
diff --git a/core/core-frontend/src/views/mobile/login/index.vue b/core/core-frontend/src/views/mobile/login/index.vue
index 6ed93e1b26..08d9eb9ffa 100644
--- a/core/core-frontend/src/views/mobile/login/index.vue
+++ b/core/core-frontend/src/views/mobile/login/index.vue
@@ -1,6 +1,7 @@
+
用户登录
+
+ {{ usernameError }}
+
+
+ {{ passwordError }}
+
-
- 提交
-
+ 登录
@@ -104,28 +127,71 @@ const onSubmit = async () => {
.de-mobile-login {
height: 100vh;
width: 100vw;
- display: flex;
- align-items: center;
- justify-content: center;
- background-image: url(../../../assets/logo-bg.jpg);
+ position: relative;
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-image: url(../../../assets/img/bg-mobile.png);
.mobile-login-content {
- background-color: #fff;
- margin-top: 20px;
- position: relative;
- opacity: 0.95;
- border-radius: 10px;
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #ffffff 58.86%);
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ border-top-right-radius: 20px;
+ border-top-left-radius: 20px;
overflow: hidden;
+ width: 100%;
+ height: 70%;
+ padding: 24px 16px;
+ --van-cell-group-inset-padding: 0;
+ --van-cell-group-inset-radius: 0;
+ --van-cell-group-background: transparent;
+ --van-cell-background: transparent;
+ --van-cell-vertical-padding: 12px;
+ --van-button-default-height: 48px;
+ --van-field-placeholder-text-color: #8f959e;
- :deep(.van-field) {
- padding-left: 0 !important;
+ .van-ed-error {
+ font-size: 14px;
+ font-weight: 400;
+ line-height: 20px;
+ margin-top: -12px;
+ color: #f54a45;
+ }
+
+ .van-field {
+ border: 1px solid #bbbfc4;
+ border-radius: 4px;
+ margin: 16px 0;
+ }
+
+ .van-cell:after {
+ display: none;
}
.mobile-login-welcome {
- padding-left: 15px;
- font-size: x-large;
+ font-size: 22px;
font-weight: 500;
- letter-spacing: 2px;
+ line-height: 30px;
+ margin-top: 10px;
+ }
+
+ .van-button--normal {
+ font-size: 17px;
+ font-weight: 400;
+ line-height: 24px;
+ }
+
+ .van-field__control {
+ font-size: 16px;
+ font-weight: 400;
+ line-height: 22px;
+ }
+
+ .van-cell {
+ .van-field__error-message {
+ display: none;
+ }
}
}
}