|
@@ -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>
|