瀏覽代碼

fix: 修复隐私政策页面log

周玉环 5 天之前
父節點
當前提交
b6fa98ac7b
共有 2 個文件被更改,包括 23 次插入9 次删除
  1. 12 7
      xinkeaboard-web/assets/style/agreement.scss
  2. 11 2
      xinkeaboard-web/pages/member/login/agreement.vue

+ 12 - 7
xinkeaboard-web/assets/style/agreement.scss

@@ -1,25 +1,29 @@
 @import "./theme.scss";
 .sld_login {
   .sld_login_header {
+    height: 88px;
     background: #fff;
     box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
 
     .content {
+      height: 100%;
       display: flex;
-      padding: 20px 0;
+      position: relative;
       align-items: center;
-      width: 1200px;
-      margin: auto;
+      width: 1440px;
+      margin: 0 auto;
 
       .l_logo {
+        height: 100%;
         cursor: pointer;
-        width: 50%;
+        width: 320px;
 
         .img {
           display: inline-block;
           vertical-align: top;
-          max-width: 190px;
-          max-height: 43px;
+          width: 100%;
+          height: 100%;
+          object-fit: cover;
         }
 
         .text {
@@ -33,8 +37,9 @@
 
       .r_register_wrap {
         font-size: 14px;
-        width: 50%;
         text-align: right;
+        position: absolute;
+        right: 0;
         .go_register_btn {
           font-size: 13px;
           display: inline-block;

+ 11 - 2
xinkeaboard-web/pages/member/login/agreement.vue

@@ -5,7 +5,9 @@
         <router-link tag="a" class="l_logo" :to="`/`">
           <img
             class="img"
-            :src="configInfo.main_site_logo"
+            :src="
+              filtersStore.getSiteLogo ? filtersStore.getSiteLogo : defaultImg
+            "
             :onerror="defaultImg"
             alt
           />
@@ -27,8 +29,13 @@
 
 <script setup>
 import { useUserInfo } from "@/store/user.js";
+import { useFiltersStore } from "@/store/filter.js";
+
 // import { lang_zn } from "@/assets/language/zh";
 import { getCurLanguage } from '@/composables/common.js';
+
+const filtersStore = useFiltersStore();
+
 // const L = lang_zn;
 const L = getCurLanguage();
 const configInfo = useUserInfo();
@@ -83,7 +90,9 @@ onMounted(() => {
 <style lang="scss">
   .agreement_content {
   img {
-    max-width: 100%;
+    width: 100%;
+    height: 100%;
+    object-fit: cover;
   }
 
   a {