修改登录注册样式

master
fuxiaochun 2023-08-14 17:29:49 +08:00
parent 16e02477f5
commit d4e817ceff
8 changed files with 1013 additions and 698 deletions

View File

@ -40,7 +40,7 @@
"unplugin-vue-components": "^0.25.1",
"vite": "^4.3.9",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-windicss": "^1.9.1",
"vite-plugin-windicss": "^1.9.0",
"windicss": "^3.5.6"
}
}

View File

@ -230,43 +230,43 @@ const getUserInfo = () => {
.loginBox {
position: relative;
line-height: 1;
padding: 0 .6rem .6rem .6rem;
padding: 0 60px 60px 60px;
.banner {
text-align: center;
h2 {
font-size: .3rem;
margin-bottom: .1rem;
font-size: 30px;
margin-bottom: 10px;
}
p {
line-height: 1.5;
font-size: .23rem;
font-size: 23px;
color: #999;
}
}
.tabBox {
height: .5rem;
height: 50px;
width: 100%;
padding: .3rem 0;
padding: 30px 0;
box-sizing: content-box;
display: flex;
justify-content: space-between;
align-items: center;
li {
width: 1.75rem;
height: .48rem;
border: .01rem solid #414548;
width: 175px;
height: 48px;
border: 1px solid #414548;
opacity: 0.4;
border-radius: .02rem;
border-radius: 2px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: .23rem;
font-size: 23px;
&:hover,
&.active {
@ -289,12 +289,12 @@ const getUserInfo = () => {
i {
display: inline-block;
margin-right: .1rem;
margin-right: 10px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
width: .3rem;
height: .3rem;
width: 30px;
height: 30px;
&.icon-code {
background-image: url('../../assets/images/icon_msg.png');
@ -313,11 +313,11 @@ const getUserInfo = () => {
.formBox {
.item {
margin-top: 0.15rem;
margin-top: 15px;
.label {
line-height: .66rem;
font-size: .28rem;
line-height: 66px;
font-size: 28px;
}
.val {
@ -327,14 +327,18 @@ const getUserInfo = () => {
.txt,
.stxt,
.pwdInput {
border: .01rem solid rgba($color: #414548, $alpha: 0.4);
border-radius: .02rem;
border: 1px solid rgba($color: #414548, $alpha: 0.4);
border-radius: 2px;
background: none;
color: #FFF;
height: 66px;
padding: 0 10px;
:deep(input) {
background: none;
color: #FFF;
line-height: 66px;
font-size: 23px;
&::placeholder {
color: #999;
@ -346,14 +350,15 @@ const getUserInfo = () => {
}
.sbtn {
width: 4rem;
margin-left: .1rem;
font-size: .23rem;
width: 400px;
margin-left: 10px;
font-size: 23px;
height: 66px;
&:disabled{
opacity: 1;
color: #FFF;
border: .02rem solid #FFF;
border: 2px solid #FFF;
background: none;
}
}
@ -361,10 +366,12 @@ const getUserInfo = () => {
}
.submitBtn {
margin-top: 1rem;
margin-top: 65px;
button {
width: 100%;
height: 66px;
font-size: 23px;
}
}
}

View File

@ -134,30 +134,30 @@ const onRegister = () => {
.registerBox {
position: relative;
line-height: 1;
padding: 0 .6rem .6rem .6rem;
padding: 0 60px 60px 60px;
.banner {
text-align: center;
h2 {
font-size: .3rem;
margin-bottom: .1rem;
font-size: 30px;
margin-bottom: 10px;
}
p {
line-height: 1.5;
font-size: .23rem;
font-size: 23px;
color: #999;
}
}
.formBox {
.item {
margin-top: 0.28rem;
margin-top: 15px;
.label {
line-height: .5rem;
font-size: .28rem;
line-height: 66px;
font-size: 28px;
}
.val {
@ -167,12 +167,16 @@ const onRegister = () => {
.txt,
.stxt,
.pwdInput {
border: .01rem solid rgba($color: #414548, $alpha: 0.4);
border-radius: .02rem;
border: 1px solid rgba($color: #414548, $alpha: 0.4);
border-radius: 2px;
background: none;
color: #FFF;
height: 66px;
padding: 0 10px;
:deep(input) {
font-size: 23px;
line-height: 66px;
background: none;
color: #FFF;
@ -186,14 +190,15 @@ const onRegister = () => {
}
.sbtn {
width: 4rem;
margin-left: .1rem;
font-size: .23rem;
width: 400px;
margin-left: 10px;
font-size: 23px;
height: 66px;
&:disabled{
opacity: 1;
color: #FFF;
border: .02rem solid #FFF;
border: 2px solid #FFF;
background: none;
}
}
@ -201,10 +206,12 @@ const onRegister = () => {
}
.submitBtn {
margin-top: .7rem;
margin-top: 65px;
button {
width: 100%;
height: 66px;
font-size: 23px;
}
}
}

View File

@ -1,5 +1,5 @@
<template>
<van-popup v-model:show="authModal.isShow" closeable style="background: none;width:6.93rem;">
<van-popup v-model:show="authModal.isShow" closeable style="background: none;width:90%;">
<div class="formBox" v-if="authModal.authModalType == 'login'">
<div class="actionFlag" @click="onMethodChange('register')"><span>注册</span></div>
<Login/>
@ -41,40 +41,40 @@ const handleOk = () => {
.formBox{
position: relative;
line-height: 1;
padding-top: .5rem;
padding-top: 50px;
color: #FFF;
width: 100%;
background: #161718;
border-radius: .06rem;
border-radius: 6px;
.actionFlag{
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 1.45rem;
height: 1.4rem;
border-radius: .1rem 0 0 0;
width: 145px;
height: 140px;
border-radius: 10px 0 0 0;
overflow: hidden;
color: #FFF;
cursor: pointer;
span{
font-size: 0.26rem;
font-size: 22px;
position: relative;
z-index: 1;
top: .22rem;
left: .16rem;
top: 6px;
left: 16px;
}
&::before{
content: '';
position: absolute;
z-index: 0;
top: -0.75rem;
left: -0.7rem;
width: 1.7rem;
height: 1.7rem;
top: -85px;
left: -70px;
width: 170px;
height: 170px;
background: #304FED;
border-radius: 10px;
transform: rotateZ(45deg);
transform: rotateZ(50deg);
box-shadow: 0 0 20px rgba($color: #304FED, $alpha: 0.2);
}
}

View File

@ -20,36 +20,36 @@
<style lang="scss" scoped>
.footer{
width: 100%;
padding: .45rem;
border-top: .01rem solid #CCC;
padding: 45px;
border-top: 1px solid #CCC;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
font-size: .22rem;
font-size: 22px;
.logo{
padding: .2rem;
padding: 20px;
}
.info{
font-size: .22rem;
font-size: 22px;
color: #CCC;
padding: .1rem;
padding: 10px;
}
.qrcode{
width: 2.9rem;
height: 2.9rem;
width: 290px;
height: 290px;
background: #FFF;
overflow: hidden;
margin: .1rem auto;
margin: 10px auto;
img{
width: 100%;
}
}
.contactInfo{
color: #CCC;
font-size: .22rem;
padding: .1rem;
font-size: 22px;
padding: 10px;
p{
line-height: 1.5;
}

View File

@ -3,7 +3,7 @@
<div class="logo">logo</div>
<div class="title">首页</div>
<div class="nav">
<div class="navBtn" @click.stop="toggleMenu"><van-icon name="wap-nav" size=".37rem" /></div>
<div class="navBtn" @click.stop="toggleMenu"><van-icon name="wap-nav" size="0.6rem" /></div>
<div class="menuBox" @click.stop="" v-if="showMenu">
<template v-if="userInfo.userData && userInfo.userData.id">
<div class="menuHeader">
@ -11,7 +11,7 @@
<div class="avatar"><img :src="userInfo.userData.avatar || defaultAvatar"></div>
<div class="name">{{ userInfo.userData.name || userInfo.userData.phone || userInfo.userData.email }}</div>
</div>
<div class="navIcon" @click="toggleMenu"><van-icon name="wap-nav" size=".37rem" /></div>
<div class="navIcon" @click="toggleMenu"><van-icon name="wap-nav" size="0.6rem" /></div>
</div>
<ul class="menu">
<li :class="{ active: route.meta.group === 'home' }">首页</li>
@ -30,7 +30,7 @@
<div class="avatar"><img src="" alt=""></div>
<div class="name">未登录</div>
</div>
<div class="navIcon" @click="toggleMenu"><van-icon name="wap-nav" size=".37rem" /></div>
<div class="navIcon" @click="toggleMenu"><van-icon name="wap-nav" size=".6rem" /></div>
</div>
<ul class="menu">
<li @click="onLogin"></li>
@ -106,43 +106,43 @@ const onLogout = ()=>{
<style lang="scss" scoped>
.header{
width: 100%;
height: .9rem;
height: 90px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: .05rem solid #3662FE;
border-bottom: 5px solid #3662FE;
background: #161718;
color: #FFF;
padding: .1rem;
padding: 10px;
box-sizing: border-box;
.logo{
width: 2.3rem;
width: 230px;
display: flex;
justify-content: flex-start;
align-items: center;
}
.title{
width: 2.3rem;
height: .7rem;
width: 230px;
height: 70px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: .28rem;
font-size: 28px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.nav{
width: 2.3rem;
height: .7rem;
width: 230px;
height: 70px;
display: flex;
justify-content: flex-end;
align-items: center;
position: relative;
.navBtn{
width: .68rem;
height: .68rem;
width: 68px;
height: 68px;
background-color: #3662FE;
display: flex;
justify-content: center;
@ -151,7 +151,7 @@ const onLogout = ()=>{
}
}
.menuBox{
width: 4rem;
width: 400px;
background: #242527;
box-sizing: border-box;
position: absolute;
@ -159,7 +159,7 @@ const onLogout = ()=>{
right: 0rem;
z-index: 5;
.menuHeader{
height: .7rem;
height: 70px;
width: 100%;
display: flex;
justify-content: space-between;
@ -169,11 +169,11 @@ const onLogout = ()=>{
display: flex;
justify-content: flex-start;
align-items: center;
padding-left: .3rem;
padding-left: 30px;
overflow: hidden;
.avatar{
width: .5rem;
height: .5rem;
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
background: #E9E9E9;
@ -184,41 +184,42 @@ const onLogout = ()=>{
}
.name{
flex: 1;
height: .7rem;
line-height: .7rem;
height: 70px;
line-height: 70px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: .23rem;
margin-left: .15rem;
font-size: 23px;
margin-left: 15px;
font-weight: bold;
}
}
.navIcon{
width: .68rem;
height: .68rem;
width: 68px;
height: 68px;
display: flex;
justify-content: center;
align-items: center;
}
}
.menu{
padding-bottom: .3rem;
padding-bottom: 30px;
li{
height: .5rem;
line-height: .5rem;
height: 50px;
padding: 15px 0;
box-sizing: content-box;
line-height: 50px;
flex: 1;
margin-top: .3rem;
font-size: .28rem;
font-size: 28px;
color: #ccc;
padding-left: .3rem;
padding-left: 30px;
position: relative;
&::before{
content: '';
width: .07rem;
height: .3rem;
width: 7px;
height: 30px;
background-color: #3662FE;
transform: translateX(-.3rem);
transform: translateX(-30px);
position: absolute;
left: 0;
top: 50%;

View File

@ -3,6 +3,7 @@
<div class="text-45px">移动端首页</div>
<div class="text-22px">在AI助理板块用户可以上传文件给AI翻阅并帮助您解决问题您可以自己输入关键字或者使用自带的prompt模板</div>
</div>
<div class="test"></div>
</template>
<script setup>
@ -16,6 +17,10 @@ onMounted(() => {
<style lang="scss" scoped>
.page {
}
.test{
width: 750px;
height: 100px;
background: #555;
}
</style>

1493
yarn.lock

File diff suppressed because it is too large Load Diff