fix: 更换默认背景图布局调整
This commit is contained in:
BIN
src/assets/background.jpg
Normal file
BIN
src/assets/background.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
@@ -41,8 +41,8 @@ const proConfigLocal: LayoutStore['proConfig'] = localGetJSON(
|
|||||||
CACHE_LOCAL_PROCONFIG
|
CACHE_LOCAL_PROCONFIG
|
||||||
) || {
|
) || {
|
||||||
layout: 'mix',
|
layout: 'mix',
|
||||||
headerTheme: 'dark',
|
headerTheme: 'light',
|
||||||
navTheme: 'dark',
|
navTheme: 'light',
|
||||||
fixSiderbar: true,
|
fixSiderbar: true,
|
||||||
fixedHeader: true,
|
fixedHeader: true,
|
||||||
splitMenus: true,
|
splitMenus: true,
|
||||||
|
|||||||
@@ -136,6 +136,16 @@ onMounted(() => {
|
|||||||
function fnChangeLocale(e: any) {
|
function fnChangeLocale(e: any) {
|
||||||
changeLocale(e.key);
|
changeLocale(e.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**系统使用手册跳转 */
|
||||||
|
function fnClickHelpDoc(language?: string) {
|
||||||
|
const routeData = router.resolve({ name: 'HelpDoc' });
|
||||||
|
let href = routeData.href;
|
||||||
|
if (language) {
|
||||||
|
href = `${routeData.href}?language=${language}`;
|
||||||
|
}
|
||||||
|
window.open(href, '_blank');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -149,13 +159,32 @@ function fnChangeLocale(e: any) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<template v-if="appStore.logoType === 'icon'">
|
<div class="header-left">
|
||||||
<img :src="logoUrl" class="logo-icon" :alt="appStore.appName" />
|
<template v-if="appStore.logoType === 'icon'">
|
||||||
<span class="title">{{ appStore.appName }}</span>
|
<img :src="logoUrl" class="logo-icon" :alt="appStore.appName" />
|
||||||
</template>
|
<span class="title">{{ appStore.appName }}</span>
|
||||||
<template v-if="appStore.logoType === 'brand'">
|
</template>
|
||||||
<img :src="logoUrl" class="logo-brand" :alt="appStore.appName" />
|
<template v-if="appStore.logoType === 'brand'">
|
||||||
</template>
|
<img :src="logoUrl" class="logo-brand" :alt="appStore.appName" />
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class="header-right">
|
||||||
|
<a-space direction="horizontal" :size="8">
|
||||||
|
<a-button
|
||||||
|
type="link"
|
||||||
|
:href="appStore.officialUrl"
|
||||||
|
target="_blank"
|
||||||
|
size="small"
|
||||||
|
v-if="appStore.officialUrl !== '#'"
|
||||||
|
>
|
||||||
|
{{ t('loayouts.basic.officialUrl') }}
|
||||||
|
</a-button>
|
||||||
|
|
||||||
|
<a-button type="link" size="small" @click="fnClickHelpDoc()">
|
||||||
|
{{ t('loayouts.basic.helpDoc') }}
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<a-card :bordered="false" class="login-card">
|
<a-card :bordered="false" class="login-card">
|
||||||
@@ -237,7 +266,7 @@ function fnChangeLocale(e: any) {
|
|||||||
<a-image
|
<a-image
|
||||||
:alt="t('valid.codeHit')"
|
:alt="t('valid.codeHit')"
|
||||||
style="cursor: pointer; border-radius: 2px"
|
style="cursor: pointer; border-radius: 2px"
|
||||||
width="120px"
|
width="100px"
|
||||||
height="40px"
|
height="40px"
|
||||||
:preview="false"
|
:preview="false"
|
||||||
:src="state.captcha.codeImg"
|
:src="state.captcha.codeImg"
|
||||||
@@ -313,7 +342,13 @@ function fnChangeLocale(e: any) {
|
|||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
padding-top: 164px;
|
padding-top: 164px;
|
||||||
|
|
||||||
background: url('./../assets/black_dot.png') 0% 0% / 14px 14px repeat;
|
// background: url('./../assets/black_dot.png') 0% 0% / 14px 14px repeat;
|
||||||
|
|
||||||
|
background-image: url(./../assets/background.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center center;
|
||||||
|
|
||||||
.animation {
|
.animation {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 6px;
|
width: 6px;
|
||||||
@@ -338,7 +373,7 @@ function fnChangeLocale(e: any) {
|
|||||||
}
|
}
|
||||||
&.animation4 {
|
&.animation4 {
|
||||||
left: 68%;
|
left: 68%;
|
||||||
top: 55%;
|
top: 68%;
|
||||||
animation: slashStar 2s ease-in-out 0.8s infinite;
|
animation: slashStar 2s ease-in-out 0.8s infinite;
|
||||||
}
|
}
|
||||||
&.animation5 {
|
&.animation5 {
|
||||||
@@ -363,19 +398,21 @@ function fnChangeLocale(e: any) {
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
background-color: transparent;
|
background-color: rgb(255 255 255 / 85%);
|
||||||
padding: 16px;
|
padding: 0 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: start;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.logo-icon {
|
.logo-icon {
|
||||||
height: 48px;
|
height: 40px;
|
||||||
width: 48px;
|
width: 40px;
|
||||||
margin-right: 16px;
|
margin-right: 14px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-style: none;
|
border-style: none;
|
||||||
border-radius: 6.66px;
|
border-radius: 6.66px;
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
.logo-brand {
|
.logo-brand {
|
||||||
height: 48px;
|
height: 48px;
|
||||||
@@ -386,10 +423,10 @@ function fnChangeLocale(e: any) {
|
|||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2px;
|
top: 6px;
|
||||||
color: #fff;
|
color: rgba(0, 0, 0, 0.85);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 28px;
|
font-size: 24px;
|
||||||
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -398,6 +435,7 @@ function fnChangeLocale(e: any) {
|
|||||||
width: 368px;
|
width: 368px;
|
||||||
min-width: 260px;
|
min-width: 260px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
margin-left: 60%;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
& .desc {
|
& .desc {
|
||||||
@@ -413,17 +451,25 @@ function fnChangeLocale(e: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 992px) {
|
||||||
|
.login-card {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
height: 36px;
|
||||||
|
padding: 8px 16px 0;
|
||||||
|
text-align: left;
|
||||||
|
background-color: rgb(255 255 255 / 85%);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 12px auto 30px;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
&-copyright {
|
&-copyright {
|
||||||
opacity: 0.8;
|
font-size: 14px;
|
||||||
font-size: 16px;
|
color: rgba(0, 0, 0, 0.75);
|
||||||
color: #fff;
|
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user