Merge pull request 'Branch_csl' (#4) from Branch_csl into master
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #4
This commit is contained in:
commit
f87d23abeb
BIN
yudao-admin-vue3/src/assets/imgs/login-back-left.png
Normal file
BIN
yudao-admin-vue3/src/assets/imgs/login-back-left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 313 KiB |
BIN
yudao-admin-vue3/src/assets/imgs/login-back.png
Normal file
BIN
yudao-admin-vue3/src/assets/imgs/login-back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
@ -1,37 +1,26 @@
|
||||
<template>
|
||||
<div
|
||||
:class="prefixCls"
|
||||
class="relative h-[100%] lt-md:px-10px lt-sm:px-10px lt-xl:px-10px lt-xl:px-10px"
|
||||
>
|
||||
<div :class="prefixCls" class="relative h-[100%] lt-md:px-10px lt-sm:px-10px">
|
||||
<div class="relative mx-auto h-full flex">
|
||||
<div
|
||||
:class="`${prefixCls}__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden`"
|
||||
>
|
||||
<!-- <div :class="`${prefixCls}__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden`"> -->
|
||||
<!-- 左上角的 logo + 系统标题 -->
|
||||
<div class="relative flex items-center text-white">
|
||||
<!-- <div class="relative flex items-center text-white">
|
||||
<img alt="" class="mr-10px w-48px" src="@/assets/imgs/zy-logo.jpg" />
|
||||
<span class="text-20px font-bold">{{ underlineToHump(appStore.getTitle) }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 左边的背景图 + 欢迎语 -->
|
||||
<div class="h-[calc(100%-60px)] flex items-center justify-center">
|
||||
<TransitionGroup
|
||||
appear
|
||||
enter-active-class="animate__animated animate__bounceInLeft"
|
||||
tag="div"
|
||||
>
|
||||
<!-- <div class="h-[calc(100%-60px)] flex items-center justify-center">
|
||||
<TransitionGroup appear enter-active-class="animate__animated animate__bounceInLeft" tag="div">
|
||||
<img key="1" alt="" class="w-350px" src="@/assets/svgs/login-box-bg.svg" />
|
||||
<div key="2" class="text-3xl text-white">{{ t('login.welcome') }}</div>
|
||||
<div key="3" class="mt-5 text-14px font-normal text-white">
|
||||
{{ t('login.message') }}
|
||||
</div>
|
||||
</TransitionGroup>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative flex-1 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px">
|
||||
</div> -->
|
||||
<!-- </div> -->
|
||||
<div class="login relative flex-1 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px">
|
||||
<!-- 右上角的主题、语言选择 -->
|
||||
<div
|
||||
class="flex items-center justify-between text-white at-2xl:justify-end at-xl:justify-end"
|
||||
>
|
||||
<div class="flex items-center justify-between text-white at-2xl:justify-end at-xl:justify-end">
|
||||
<div class="flex items-center at-2xl:hidden at-xl:hidden">
|
||||
<img alt="" class="mr-10px w-48px" src="@/assets/imgs/logo.png" />
|
||||
<span class="text-20px font-bold">{{ underlineToHump(appStore.getTitle) }}</span>
|
||||
@ -43,9 +32,13 @@
|
||||
</div>
|
||||
<!-- 右边的登录界面 -->
|
||||
<Transition appear enter-active-class="animate__animated animate__bounceInRight">
|
||||
<div
|
||||
class="m-auto h-full w-[100%] flex items-center at-2xl:max-w-500px at-lg:max-w-500px at-md:max-w-500px at-xl:max-w-500px"
|
||||
>
|
||||
<!-- at-2xl:max-w-500px at-lg:max-w-500px at-md:max-w-500px at-xl:max-w-500px -->
|
||||
<div class="login-cont m-auto h-full w-[100%] flex items-center ">
|
||||
<div class="xia">
|
||||
<div class="left">
|
||||
<img src="@/assets/imgs/login-back-left.png" alt="" />
|
||||
</div>
|
||||
<div class="right">
|
||||
<!-- 账号登录 -->
|
||||
<LoginForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
||||
<!-- 手机登录 -->
|
||||
@ -57,6 +50,8 @@
|
||||
<!-- 三方登录 -->
|
||||
<SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
</div>
|
||||
</div>
|
||||
@ -81,6 +76,9 @@ const prefixCls = getPrefixCls('login')
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
|
||||
|
||||
$prefix-cls: #{$namespace}-login;
|
||||
|
||||
.#{$prefix-cls} {
|
||||
@ -101,4 +99,71 @@ $prefix-cls: #{$namespace}-login;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.login{
|
||||
background:url('@/assets/imgs/login-back.png') no-repeat;
|
||||
background-size:cover;
|
||||
.login-cont{
|
||||
width: 800px;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
border-radius: 21px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
.xia{
|
||||
display:flex;
|
||||
.left{
|
||||
width: 50%;
|
||||
display: flex;
|
||||
img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.right{
|
||||
flex:1;
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:1001px){
|
||||
::v-deep .el-form-item__content{
|
||||
h2{
|
||||
color:black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width:1000px){
|
||||
.login{
|
||||
background:transparent;
|
||||
background-size:cover;
|
||||
.login-cont{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 21px;
|
||||
display:flex;
|
||||
background: transparent;
|
||||
.xia{
|
||||
.left{
|
||||
width: 50%;
|
||||
display: flex;
|
||||
display:none;
|
||||
img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.right{
|
||||
flex:1;
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user