Explorar o código

wms系统图标logo更改

lichao %!s(int64=3) %!d(string=hai) anos
pai
achega
b95bc3b0a2

+ 0 - 0
public/favicon大木.ico → public/faviconDMU.ico


+ 6 - 0
public/index.html

@@ -7,6 +7,12 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
+    <script>
+      if (document.domain.includes('wms')) {
+        let Link = document.getElementsByTagName('link')[0]
+        Link.href = `<%= BASE_URL %>favicon3.ico`
+      }
+    </script>
 	  <style>
     html,
     body,

BIN=BIN
src/assets/logo/testLogo.png


+ 6 - 15
src/layout/components/Sidebar/Logo.vue

@@ -8,27 +8,19 @@
     }"
   >
     <transition name="sidebarLogoFade">
-<!--      如果是靖润 添加style样式background="#fff"-->
       <router-link
         v-if="collapse"
         key="collapse"
         class="sidebar-logo-link"
-        :class="{ 'jingrun-logo': sysType == 2 }"
         to="/"
       >
 <!--        途宝-->
-        <img v-if="sysType != 2" :src="logo" class="sidebar-logo-mini" />
-<!--        靖润-->
-        <img v-if="sysType == 2" :src="jingrunLogo" class="sidebar-logo-mini" />
+        <img :src="logo" class="sidebar-logo-mini" />
         <!-- <h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.sidebarTitle : variables.sidebarLightTitle }">{{ title }} </h1> -->
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
 <!--        途宝-->
-        <img v-if="sysType != 2" :src="logo" class="sidebar-logo" />
-<!--        靖润logo-->
-        <div style="width: 80%;height: 100%;background-color: #fff;float: left" v-if="company === ''">
-          <img v-if="sysType == 2" :src="jingrunLogo" class="sidebar-logo" />
-        </div>
+        <img :src="logo" class="sidebar-logo" />
         <div style="float: right;background-color: #fff" class="other" v-if="company === ''"></div>
         <!-- <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.sidebarTitle : variables.sidebarLightTitle }">{{ title }} </h1> -->
       </router-link>
@@ -38,9 +30,9 @@
 
 <script>
 import logoImg from "@/assets/logo/logo.png";
-import jingrunLogo from "@/assets/logo/jingrun-logo.png"
 import variables from "@/assets/styles/variables.scss";
 import Cookies from "js-cookie";
+import testLogo from "@/assets/logo/testLogo.png";
 
 export default {
   name: "SidebarLogo",
@@ -62,7 +54,6 @@ export default {
     return {
       title: "途宝智慧云仓平台",
       logo: logoImg,
-      jingrunLogo: jingrunLogo,
       company: '',
       sysType: "",
     };
@@ -70,6 +61,9 @@ export default {
   mounted() {
     this.company = Cookies.get("companyName")
     this.sysType = Cookies.get("sysType");
+    if (Cookies.get("test") == 0) {
+      this.logo = testLogo;
+    }
   },
 };
 </script>
@@ -131,7 +125,4 @@ export default {
   border-bottom: 60px solid #014da1;
   border-left: 40px solid transparent;
 }
-.jingrun-logo {
-  background-color: #fff;
-}
 </style>

+ 11 - 8
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
-      <h3 class="title">智慧云仓平台</h3>
+      <h3 class="title">{{ test? '道合': '智慧云仓平台' }}</h3>
 
       <el-form-item prop="username">
         <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
@@ -52,14 +52,14 @@
     </el-form>
     <!--  底部  -->
 <!--    青岛途宝软件开发有限公司-->
-<!--   <div class="el-login-footer">-->
-<!--     <img src="./icp.png" alt="" height="14px" style="margin-right:2px"> <span><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37021302000853">鲁公网安备 37021302000853号</a> <a href="https://beian.miit.gov.cn/">鲁ICP备2021000559号</a>  青岛途宝软件开发有限公司</span>-->
-<!--   </div>-->
+   <div class="el-login-footer">
+     <img src="./icp.png" alt="" height="14px" style="margin-right:2px"> <span><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37021302000853">鲁公网安备 37021302000853号</a> <a href="https://beian.miit.gov.cn/">鲁ICP备2021000559号</a>  青岛途宝软件开发有限公司</span>
+   </div>
 <!--    凯和-->
 
-    <div class="el-login-footer">
-      <img src="./icp.png" alt="" height="14px" style="margin-right:2px"> <span><a href="https://beian.miit.gov.cn/">鲁ICP备2021017300号-1</a>  青岛凯和志诚物流有限公司</span>
-    </div>
+<!--    <div class="el-login-footer">-->
+<!--      <img src="./icp.png" alt="" height="14px" style="margin-right:2px"> <span><a href="https://beian.miit.gov.cn/">鲁ICP备2021017300号-1</a>  青岛凯和志诚物流有限公司</span>-->
+<!--    </div>-->
   </div>
 </template>
 
@@ -95,6 +95,7 @@ export default {
       loading: false,
       redirect: undefined,
       company: '',
+      test: false,
     };
   },
   watch: {
@@ -108,7 +109,9 @@ export default {
   created() {
     this.getCode();
     this.getCookie();
-
+    const host = document.domain;
+    this.test = host.includes('wms');
+    Cookies.set('test', this.test? 0: 1);
   },
   methods: {
     getCode() {