Commit f35a99a0 by 李伟康

修改登录页样式

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