diff --git a/src/api/index.ts b/src/api/index.ts index 68091fa..c5e1885 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -74,9 +74,7 @@ export function safeClient( }, 2000); } else if (!options.silent) { - showToast(i18n.global.t((res.error as any).code, { - ...(res.error as any).context, - }) || (res.error as any).message || i18n.global.t("network_error")); + showToast((res.error as any).message || i18n.global.t("network_error")); } throw res.error; diff --git a/src/views/auth/login.vue b/src/views/auth/login.vue index fd74b09..9dddb42 100644 --- a/src/views/auth/login.vue +++ b/src/views/auth/login.vue @@ -79,8 +79,8 @@ function goToTerms(type: "service" | "privacy") {
-
-
+
+
@@ -92,12 +92,14 @@ function goToTerms(type: "service" | "privacy") {
-

- 你好 -

-

- 欢迎登录深化改革 -

+
+
+ 你好 +
+
+ 欢迎登录深化改革 +
+
@@ -174,7 +176,6 @@ function goToTerms(type: "service" | "privacy") {
-
@@ -194,16 +195,7 @@ function goToTerms(type: "service" | "privacy") { left: 0; right: 0; bottom: 0; - background: linear-gradient( - 180deg, - #c41e3a 0%, - #e8756d 15%, - #f5d5c8 35%, - #fef5f1 50%, - #fef5f1 65%, - #f5d5c8 85%, - #e8756d 100% - ); + background: linear-gradient(180deg, #c41e3a 0%, #e8756d 15%, #f5d5c8 35%, #fef5f1 50%, #fef5f1 65%, #f5d5c8 100%); z-index: 0; } @@ -341,7 +333,7 @@ function goToTerms(type: "service" | "privacy") { --border-radius: 25px; --box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3); height: 50px; - font-size: 18px; + font-size: 16px; font-weight: 600; letter-spacing: 2px; margin-top: 8px; @@ -357,7 +349,7 @@ function goToTerms(type: "service" | "privacy") { --background: transparent; --background-hover: rgba(196, 30, 58, 0.05); height: 50px; - font-size: 18px; + font-size: 16px; font-weight: 600; letter-spacing: 2px; text-transform: none; @@ -381,10 +373,10 @@ function goToTerms(type: "service" | "privacy") { .building { position: absolute; - bottom: 40px; + bottom: 0; left: 0; right: 0; - height: 140px; + height: 180px; background: linear-gradient( to top, rgba(196, 30, 58, 0.9) 0%, diff --git a/src/views/auth/signup.vue b/src/views/auth/signup.vue index 8c255be..ef9a613 100644 --- a/src/views/auth/signup.vue +++ b/src/views/auth/signup.vue @@ -100,8 +100,8 @@ function goToTerms(type: "service" | "privacy") {
-
-
+
+
@@ -113,16 +113,18 @@ function goToTerms(type: "service" | "privacy") {
-

- 创建账号 -

-

- 加入深化改革平台 -

+
+
+ 创建账号 +
+
+ 加入深化改革平台 +
+
-
+
- {{ isLoading ? '注册中...' : '注册' }} + {{ isLoading ? '注册中...' : '注册并登录' }} @@ -234,7 +236,6 @@ function goToTerms(type: "service" | "privacy") {
-
@@ -242,7 +243,6 @@ function goToTerms(type: "service" | "privacy") {
-
@@ -408,7 +408,7 @@ function goToTerms(type: "service" | "privacy") { --border-radius: 25px; --box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3); height: 50px; - font-size: 18px; + font-size: 16px; font-weight: 600; letter-spacing: 2px; margin-top: 8px; @@ -421,13 +421,10 @@ function goToTerms(type: "service" | "privacy") { --border-width: 2px; --border-radius: 25px; --color: #8b1a2e; - --background: transparent; - --background-hover: rgba(196, 30, 58, 0.05); height: 50px; font-size: 16px; font-weight: 600; letter-spacing: 1px; - text-transform: none; } /* 底部装饰 */