修改登录注册样式

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", "unplugin-vue-components": "^0.25.1",
"vite": "^4.3.9", "vite": "^4.3.9",
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-windicss": "^1.9.1", "vite-plugin-windicss": "^1.9.0",
"windicss": "^3.5.6" "windicss": "^3.5.6"
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1493
yarn.lock

File diff suppressed because it is too large Load Diff