From 601fbd0b2fda10ce5ddcc4de3a32b04c9d6aaa60 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期四, 20 六月 2024 10:49:10 +0800
Subject: [PATCH] 全局标题图标配置

---
 /dev/null                       |    0 
 src/main.js                     |    4 ++++
 static/settingConfig/logo_1.png |    0 
 index.html                      |    2 +-
 src/pages/room/list.vue         |    9 ++++++---
 src/config/settingConfig.js     |    9 +++++++++
 src/pages/room/detail.vue       |    9 ++++++---
 7 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/index.html b/index.html
index 9fb1644..eeaf5d5 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
 <html>
   <head>
     <meta charset="utf-8">
-    <title>鑺欒壘鍖荤枟</title>
+    <title>鎴块棿灞�</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0, viewprot-fit=cover, minimal-ui">
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
diff --git a/src/config/settingConfig.js b/src/config/settingConfig.js
new file mode 100644
index 0000000..6df81e9
--- /dev/null
+++ b/src/config/settingConfig.js
@@ -0,0 +1,9 @@
+// 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛�
+
+// 閰嶇疆鍥炬爣缁熶竴鍦� 鐩綍涓嬩慨鏀�
+// static/settingConfig
+
+module.exports = {
+  title: '浜戣3鍖荤枟', // 鑺欒壘鍖荤枟
+  isLongLogo: false // 涓嶆樉绀洪暱logo
+}
diff --git a/src/main.js b/src/main.js
index 86e90ea..4cbf8d2 100644
--- a/src/main.js
+++ b/src/main.js
@@ -20,6 +20,10 @@
 import 'element-ui/lib/theme-chalk/display.css'
 import '@/icons' // icon
 
+// 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛�
+import settingConfig from './config/settingConfig' // 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆
+Vue.prototype.settingConfig = settingConfig
+
 Vue.prototype.isTestView = config.isTestView
 
 Vue.config.productionTip = false
diff --git a/src/pages/room/detail.vue b/src/pages/room/detail.vue
index 0d03b13..d7e6080 100644
--- a/src/pages/room/detail.vue
+++ b/src/pages/room/detail.vue
@@ -4,10 +4,13 @@
     <div class="page_header flex flex-ver">
       <div class="left flex flex-ver" @click="back">
         <div class="page_logo_1">
-          <img class="img" src="static/imgs/logo_1.png">
+          <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+          <img class="img" src="static/settingConfig/logo_1.png">
         </div>
-        <div class="page_logo_2">
-          <img class="img" src="static/imgs/logo_2.png">
+        <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+        <div v-if="settingConfig.isLongLogo" class="page_logo_2">
+          <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+          <img class="img" src="static/settingConfig/logo_2.png">
         </div>
       </div>
       <div class="right flex-1 flex flex-jcfe flex-ver">
diff --git a/src/pages/room/list.vue b/src/pages/room/list.vue
index 77d4c2d..dc0a908 100644
--- a/src/pages/room/list.vue
+++ b/src/pages/room/list.vue
@@ -4,10 +4,13 @@
     <div class="page_header flex flex-ver">
       <div class="left flex flex-ver" @click="resetPage">
         <div class="page_logo_1">
-          <img class="img" src="static/imgs/logo_1.png">
+          <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+          <img class="img" src="static/settingConfig/logo_1.png">
         </div>
-        <div class="page_logo_2">
-          <img class="img" src="static/imgs/logo_2.png">
+        <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+        <div v-if="settingConfig.isLongLogo" class="page_logo_2">
+          <!-- 鍏ㄥ眬鏍囬鍥炬爣閰嶇疆锛侊紒锛� -->
+          <img class="img" src="static/settingConfig/logo_2.png">
         </div>
       </div>
       <div class="flex-1 flex flex-center">
diff --git a/static/imgs/logo_1.png b/static/imgs/logo_1.png
deleted file mode 100644
index d268a5d..0000000
--- a/static/imgs/logo_1.png
+++ /dev/null
Binary files differ
diff --git a/static/imgs/logo_2.png b/static/imgs/logo_2.png
deleted file mode 100644
index 4f563bc..0000000
--- a/static/imgs/logo_2.png
+++ /dev/null
Binary files differ
diff --git a/static/settingConfig/logo_1.png b/static/settingConfig/logo_1.png
new file mode 100644
index 0000000..454f581
--- /dev/null
+++ b/static/settingConfig/logo_1.png
Binary files differ

--
Gitblit v1.8.0