Commit f35a99a0 by 李伟康

修改登录页样式

1 parent d786ddff
/* login/index/components/LoginBox.wxss */ /* login/index/components/LoginBox.wxss */
.box { .wx {
// height: 800rpx; height: 922rpx;
height: 750rpx; .title {
font-weight: 600;
font-size: 60rpx;
color: #323436;
padding: 216rpx 0 24rpx;
}
.opacity-view { .subtitle {
animation: opacity-view .5s forwards; font-size: 44rpx;
color: #323436;
margin-bottom: 120rpx;
} }
.img { .img {
width: 472rpx; width: 378rpx;
height: 458rpx; height: 364rpx;
position: absolute; display: block;
left: 151rpx; margin: 0 auto;
// top: 264rpx;
top: 214rpx;
} }
}
.opacity-view {
animation: opacity-view .5s forwards;
}
.box {
// height: 800rpx;
height: 750rpx;
.input-box { .input-box {
width: 540rpx; width: 540rpx;
// padding-top: 352rpx; // padding-top: 352rpx;
...@@ -57,6 +72,7 @@ ...@@ -57,6 +72,7 @@
padding: 0; padding: 0;
text-align: right; text-align: right;
transition: all .25s; transition: all .25s;
&[disabled]:not([type]) { &[disabled]:not([type]) {
color: #CCCED1; color: #CCCED1;
} }
......
<view class="box"> <block wx:if="{{loginType == 0}}">
<block wx:if="{{loginType == 0}}"> <view class="wx opacity-view">
<image webp class="img opacity-view" src="{{IMGURL}}login/login.webp" /> <view class="title">
</block> 您好
<block wx:else> </view>
<view class="subtitle">
欢迎登录生意助手
</view>
<image webp class="img" src="{{IMGURL}}login/login-2.webp" />
</view>
</block>
<block wx:else>
<view class="box">
<view class="input-box opacity-view"> <view class="input-box opacity-view">
<view class="title">{{loginType == 1?'手机号':'账号'}}登录</view> <view class="title">{{loginType == 1?'手机号':'账号'}}登录</view>
<block wx:if="{{loginType == 1}}"> <block wx:if="{{loginType == 1}}">
...@@ -33,8 +41,8 @@ ...@@ -33,8 +41,8 @@
</view> </view>
</block> </block>
</view> </view>
</block> </view>
</view> </block>
<block wx:if="{{loginType == 0}}"> <block wx:if="{{loginType == 0}}">
<button class="button" disabled="{{disabled}}" hover-class="btn-hover" open-type="getPhoneNumber" bindgetphonenumber="wxLogin" loading="{{loading}}">微信登录</button> <button class="button" disabled="{{disabled}}" hover-class="btn-hover" open-type="getPhoneNumber" bindgetphonenumber="wxLogin" loading="{{loading}}">微信登录</button>
</block> </block>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
flex-direction: column; flex-direction: column;
width: 100rpx; width: 100rpx;
animation: btn-move .25s forwards; animation: btn-move .25s forwards;
margin:0 59rpx; margin:0 79rpx;
.icon { .icon {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;
......
.layout { .layout {
position: relative; position: relative;
padding: 0 32rpx; padding: 0 80rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
&::before {
&::after {
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; height: 264rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg-top.webp') no-repeat;
background-size: 100% 486rpx; background-size: 100% 264rpx;
position: absolute; position: fixed;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
&::after {
content: '';
width: 100%;
height: 472rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg-bottom.webp') no-repeat;
background-size: 100% 472rpx;
position: fixed;
left: 0;
bottom: 0;
z-index: -1;
}
} }
@keyframes opacity-view { @keyframes opacity-view {
0% { 0% {
...@@ -31,7 +41,7 @@ ...@@ -31,7 +41,7 @@
width: 100% !important; width: 100% !important;
height: 88rpx; height: 88rpx;
background: var(--btnColor); background: var(--btnColor);
border-radius: 8rpx; border-radius: 16rpx;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!