소스 검색

fix: 修复退出登录i18n及条款/隐私页样式适配主题

- 退出登录按钮使用 auth.logout 国际化 key 替代硬编码中文
- 条款和隐私政策页背景色改用 CSS 主题变量 var(--bg-primary)
- 标题颜色统一使用 var(--text-primary),去除硬编码渐变背景
urban 2 주 전
부모
커밋
3c6a7e91a8
3개의 변경된 파일14개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 1
      src/components/headerView/index.vue
  2. 6 5
      src/views/privacy/index.vue
  3. 7 6
      src/views/terms/index.vue

+ 1 - 1
src/components/headerView/index.vue

@@ -89,7 +89,7 @@
               <!-- 退出登录 -->
               <div class="logout-wrapper" @click="onLogout">
                 <img src="@/assets/images/common/exit.svg" />
-                <span>{{ $t("退出登录") }}</span>
+                <span>{{ $t("auth.logout") }}</span>
               </div>
             </div>
           </div>

+ 6 - 5
src/views/privacy/index.vue

@@ -72,7 +72,7 @@ const goBack = () => {
 <style lang="scss" scoped>
 .privacy-page {
   min-height: 100vh;
-  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
+  background: var(--bg-primary, #121212);
   color: var(--text-primary, #fff);
 }
 
@@ -80,9 +80,10 @@ const goBack = () => {
   display: flex;
   align-items: center;
   justify-content: space-between;
-  padding: 16px 20px;
-  font-size: 18px;
-  font-weight: 500;
+  padding: 16px;
+  color: var(--text-primary, #fff);
+  font-size: 16px;
+  font-weight: 600;
 
   .van-icon {
     font-size: 20px;
@@ -99,7 +100,7 @@ const goBack = () => {
     h2 {
       font-size: 20px;
       margin-bottom: 16px;
-      color: var(--color-accent-light, #ffc300);
+      color: var(--text-primary, #fff);
     }
 
     h3 {

+ 7 - 6
src/views/terms/index.vue

@@ -79,7 +79,7 @@ const goBack = () => {
 <style lang="scss" scoped>
 .terms-page {
   min-height: 100vh;
-  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
+  background: var(--bg-primary, #121212);
   color: var(--text-primary, #fff);
 }
 
@@ -87,9 +87,10 @@ const goBack = () => {
   display: flex;
   align-items: center;
   justify-content: space-between;
-  padding: 16px 20px;
-  font-size: 18px;
-  font-weight: 500;
+  padding: 16px;
+  color: var(--text-primary, #fff);
+  font-size: 16px;
+  font-weight: 600;
 
   .van-icon {
     font-size: 20px;
@@ -106,12 +107,12 @@ const goBack = () => {
     h2 {
       font-size: 20px;
       margin-bottom: 8px;
-      color: var(--color-accent-light, #ffc300);
+      color: var(--text-primary, #fff);
     }
 
     .last-updated {
       font-size: 13px;
-      color: var(--text-secondary, rgba(255, 255, 255, 0.5));
+      color: var(--text-secondary, rgba(255, 255, 255, 0.6));
       margin-bottom: 16px;
     }