|
@@ -8,17 +8,28 @@
|
|
|
}"
|
|
|
>
|
|
|
<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="logo" :src="logo" class="sidebar-logo-mini" />
|
|
|
+<!-- 途宝-->
|
|
|
+ <img v-if="sysType != 2" :src="logo" class="sidebar-logo-mini" />
|
|
|
+<!-- 靖润-->
|
|
|
+ <img v-if="sysType == 2" :src="jingrunLogo" 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="logo" :src="logo" class="sidebar-logo" />
|
|
|
+<!-- 途宝-->
|
|
|
+ <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>
|
|
|
+ <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>
|
|
|
</transition>
|
|
@@ -27,7 +38,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";
|
|
|
|
|
|
export default {
|
|
|
name: "SidebarLogo",
|
|
@@ -49,8 +62,15 @@ export default {
|
|
|
return {
|
|
|
title: "途宝智慧云仓平台",
|
|
|
logo: logoImg,
|
|
|
+ jingrunLogo: jingrunLogo,
|
|
|
+ company: '',
|
|
|
+ sysType: "",
|
|
|
};
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.company = Cookies.get("companyName")
|
|
|
+ this.sysType = Cookies.get("sysType");
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -105,4 +125,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.other {
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-bottom: 60px solid #014da1;
|
|
|
+ border-left: 40px solid transparent;
|
|
|
+}
|
|
|
+.jingrun-logo {
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
</style>
|