This commit is contained in:
linfso 2025-01-04 20:11:35 +08:00
parent 99e98146c1
commit 03c0547694
2 changed files with 44 additions and 7 deletions

View File

@ -7,7 +7,7 @@
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<div :style="{backgroundImage:'url('+logoBg+')'}" class="logo-bg">
<img v-if="logo" :src="logo" class="sidebar-logo" />
<img v-if="logo" :src="logo" :style="{height:''+logoHeight+'px'}" class="sidebar-logo" />
<!-- <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1> -->
</div>
</router-link>
@ -16,8 +16,10 @@
</template>
<script>
import luludaLogo from '@/assets/logo/luluda_logo.png';
import shortLogoImg from '@/assets/logo/short_logo.png'
import logoImg from '@/assets/logo/left_logo.png'
import tanexLogoImg from '@/assets/logo/left_logo.png'
import logoBgImg from '@/assets/logo/left_logo_bg.png'
import variables from '@/assets/styles/variables.scss'
@ -40,10 +42,26 @@ export default {
data() {
return {
title: '',
logo: logoImg,
logo: tanexLogoImg,
logoBg: logoBgImg,
shortLogo: shortLogoImg,
logoHeight:80,
isTanex:true,
}
},
created() {
let hostName=window.location.hostname;
if(hostName.indexOf('truckline56')!=-1){
this.logo=luludaLogo;
this.isTanex=false;
this.logoHeight=40;
}else{
this.logoHeight=80;
this.logo=tanexLogoImg;
this.isTanex=true;
}
}
}

View File

@ -10,11 +10,12 @@
<div class="header-logo">
<div style="text-align: center; height:80px; line-height:80px;display: inline-flex;">
<div>
<img style="display: inline-block; vertical-align: middle;height: 55px;" src="@/assets/logo/tnlogo.png">
<!-- src="@/assets/logo/tnlogo.png -->
<img style="display: inline-block; vertical-align: middle;height: 55px;" :src="logoImg">
</div>
<div style="display: inline-flex;">
<div><img style="display: inline-block; vertical-align: middle;height: 18px;" src="@/assets/images/hotphone.png"></div>
<div style="font-size: 18px; font-weight: 500;width: 120px;text-align: left;color: #b12e29;margin-left: 5px;">400-025-7080</div>
<div style="font-size: 18px; font-weight: 500;width: 120px;text-align: left;color: #b12e29;margin-left: 5px;" v-if="isTanex">400-025-7080</div>
</div>
</div>
</div>
@ -90,7 +91,7 @@
<div class="clearfix">
<div class="login-desc">
<h2>探路物流 速运全球-关境通物流管理系统</h2>
<h2 v-if="isTanex">探路物流 速运全球-关境通物流管理系统</h2>
<p>专业物流服务,端对端客户优势,垂直化的跟踪解答</p>
<p>
<img style="display: inline-block; vertical-align: middle;width:50%;" src="@/assets/images/spic.png">
@ -270,7 +271,9 @@
<div class="signfooter">
<div class="auto clearfix">
<div class="footer-signfooter">
<p>Powered by © 2024 探路速运 All Rights Reserved 技术支持:南京睿达通商务咨询有限公司 </p>
<p v-if="isTanex">Powered by © 2024 探路速运 All Rights Reserved 技术支持:南京睿达通商务咨询有限公司 </p>
<p v-if="!isTanex">Powered by © 2024 陆陆达 All Rights Reserved 技术支持:南京睿达通商务咨询有限公司 </p>
<p></p>
</div>
</div>
@ -327,6 +330,9 @@
</template>
<script>
import luludaLogo from '@/assets/logo/luluda_logo.png';
import tanexLogo from '@/assets/logo/tnlogo.png';
import { getCodeImg } from "@/api/login";
import { getLoginSmsVCode } from "@/api/common";
import { getLocalIp } from "@/utils/custom";
@ -346,6 +352,9 @@ export default {
pdomain:null,
codeUrl: "",
localIp:null,
logoImg: null,
isTanex:true,
loginForm: {
username: "",
password: "",
@ -436,6 +445,16 @@ export default {
this.getCode();
this.getCookie();
this.initMacId();
let hostName=window.location.hostname;
if(hostName.indexOf('truckline56')!=-1){
this.logoImg=luludaLogo;
this.isTanex=false;
}else{
this.logoImg=tanexLogo;
this.isTanex=true;
}
},
methods: {
async initMacId(){