|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div |
|
|
|
:class="`${prefixCls} ${prefixCls}__left`" |
|
|
|
:class="showText?'scp_bg':`${prefixCls} ${prefixCls}__left`" |
|
|
|
class="relative h-[100%] lt-md:px-10px lt-sm:px-10px lt-xl:px-10px" |
|
|
|
> |
|
|
|
<div class="relative mx-auto h-full flex"> |
|
|
@ -74,7 +74,31 @@ import { ThemeSwitch } from '@/layout/components/ThemeSwitch' |
|
|
|
import { LocaleDropdown } from '@/layout/components/LocaleDropdown' |
|
|
|
|
|
|
|
import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue,QRCodePDA } from './components' |
|
|
|
|
|
|
|
const origin = ref(window.location.origin) |
|
|
|
const mode = ref(import.meta.env.MODE) |
|
|
|
const showText = ref(false) |
|
|
|
// 生产环境取域名 |
|
|
|
if (mode.value === 'prod') { |
|
|
|
if (origin.value == 'https://tjintex-scp.toyota-boshoku-china.com') { |
|
|
|
showText.value = true |
|
|
|
} else { |
|
|
|
showText.value = false |
|
|
|
} |
|
|
|
// 测试取域名 |
|
|
|
} else if (mode.value === 'test') { |
|
|
|
if (origin.value == 'http://dev.ccwin-in.com:28040') { |
|
|
|
showText.value = true |
|
|
|
} else { |
|
|
|
showText.value = false |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 本地环境取env文件 |
|
|
|
if (import.meta.env.VITE_BASE_URL == 'http://dev.ccwin-in.com:28040/api') { |
|
|
|
showText.value = true |
|
|
|
} else { |
|
|
|
showText.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
defineOptions({ name: 'Login' }) |
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
@ -106,5 +130,21 @@ $prefix-cls: #{$namespace}-login; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.scp_bg{ |
|
|
|
&::before { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
z-index: -1; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
background-size:100% 100%; |
|
|
|
// background-image: url('@/assets/svgs/login-bg.svg'); |
|
|
|
background-image: url('@/assets/imgs/login_bg_scp.png'); |
|
|
|
background-position: center; |
|
|
|
background-repeat: no-repeat; |
|
|
|
content: ''; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|