|
@@ -2,10 +2,12 @@
|
|
|
<!-- 登录 -->
|
|
|
<div class="login">
|
|
|
<s-header
|
|
|
- :name="sys ? sys.title : $t('public.sysName')"
|
|
|
+ :name="sys ? sys.title : sysTitle"
|
|
|
></s-header>
|
|
|
<div class="loginLogoBox l-re">
|
|
|
- <div class="loginLogo"></div>
|
|
|
+ <div class="loginLogo">
|
|
|
+ <img :src="logoName" alt="Logo">
|
|
|
+ </div>
|
|
|
<div class="l-ab pointer languageCon">
|
|
|
<!-- <div class="c-text-b">
|
|
|
{{ compLang }}
|
|
@@ -89,6 +91,8 @@ import enUS from "vant/es/locale/lang/en-US";
|
|
|
import zhCN from "vant/es/locale/lang/zh-CN";
|
|
|
// 引入日文语言包
|
|
|
import jaJP from 'vant/es/locale/lang/ja-JP';
|
|
|
+import defaultLogo from '../assets/login/logo.png';
|
|
|
+import shishenLogo from '../assets/login/shishenLogo.png';
|
|
|
|
|
|
export default {
|
|
|
setup() {
|
|
@@ -124,6 +128,9 @@ export default {
|
|
|
const route = useRoute();
|
|
|
const sys = ref(null);
|
|
|
const currentLan = ref(''); // 当前语言
|
|
|
+ const logoName = ref(defaultLogo);
|
|
|
+ const sysTitle = ref('');
|
|
|
+
|
|
|
// 页面初始化
|
|
|
onMounted(() => {
|
|
|
// 加载样式
|
|
@@ -152,7 +159,24 @@ export default {
|
|
|
} else {
|
|
|
currentLan.value = "English";
|
|
|
}
|
|
|
+
|
|
|
+ getDomainFunc();
|
|
|
});
|
|
|
+
|
|
|
+ const getDomainFunc = async () => {
|
|
|
+ const currentDomain = window.location.href;
|
|
|
+ console.log("href >>>", currentDomain);
|
|
|
+ switch (true) {
|
|
|
+ // case currentDomain.includes('//localhost'):
|
|
|
+ case currentDomain.includes('sskj.qxfoodom'): // 食神科技 sskj.qxfoodom.com
|
|
|
+ logoName.value = shishenLogo;
|
|
|
+ sysTitle.value = '食神科技';
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ logoName.value = defaultLogo;
|
|
|
+ sysTitle.value = t('public.sysName');
|
|
|
+ }
|
|
|
+ }
|
|
|
const getSysFun = async () => {
|
|
|
const {data} = await getSys({
|
|
|
relationAdminId: route.query.relation_admin_id,
|
|
@@ -290,6 +314,8 @@ export default {
|
|
|
onSelect,
|
|
|
showPopover,
|
|
|
currentLan,
|
|
|
+ logoName,
|
|
|
+ sysTitle,
|
|
|
};
|
|
|
},
|
|
|
components: {
|