登录页面样式小调整
This commit is contained in:
@@ -1,32 +1,27 @@
|
||||
<!--pages/login/login.wxml-->
|
||||
<view class="container">
|
||||
<view class="login-icon">
|
||||
<image class="login-img" src="../../icon/logo.webp"></image>
|
||||
</view>
|
||||
<view class="login-from">
|
||||
|
||||
<!--账号-->
|
||||
<view class="inputView">
|
||||
<image class="nameImage" src="../../icon/username.png"></image>
|
||||
<label class="loginLab">账号</label>
|
||||
<input class="inputText" placeholder="请输入账号" bindinput="usernameInput" />
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
|
||||
<!--密码-->
|
||||
<view class="inputView" style="margin-top:30px;">
|
||||
<image class="keyImage" src="../../icon/password.png"></image>
|
||||
<label class="loginLab">密码</label>
|
||||
<input class="inputText" password="true" placeholder="请输入密码" bindinput="passwordInput" />
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
|
||||
<!--按钮-->
|
||||
<view class="loginBtnView" style="margin-top: 30px;">
|
||||
<button class="loginBtn" type="primary" bindtap="login">登录</button>
|
||||
</view>
|
||||
<view class="loginBtnView">
|
||||
<button class="loginBtn" type="primary" bindtap="visitor">访客申请</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container">
|
||||
<view class="login-icon">
|
||||
<image class="login-img" src="../../icon/login-background.svg"></image>
|
||||
</view>
|
||||
<view class="login-from">
|
||||
<!--账号-->
|
||||
<view class="inputView">
|
||||
<image class="nameImage" src="../../icon/username.png"></image>
|
||||
<input class="inputText" placeholder="账号" bindinput="usernameInput" />
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
<!--密码-->
|
||||
<view class="inputView" style="margin-top:30px;">
|
||||
<image class="keyImage" src="../../icon/password.png"></image>
|
||||
<input class="inputText" password="true" placeholder="密码" bindinput="passwordInput" />
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
<!--按钮-->
|
||||
<view class="loginBtnView" style="margin-top: 30px;">
|
||||
<button class="loginBtn" type="primary" bindtap="login">登录</button>
|
||||
</view>
|
||||
<view class="loginBtnView">
|
||||
<button class="loginBtn" type="primary" bindtap="visitor">访客申请</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
@@ -1,74 +1,79 @@
|
||||
page{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/*登录图片*/
|
||||
.login-icon{
|
||||
flex: none;
|
||||
}
|
||||
.login-img{
|
||||
margin-top: 50px;
|
||||
width: 450rpx;
|
||||
}
|
||||
|
||||
/*表单内容*/
|
||||
.login-from {
|
||||
margin-top: 20px;
|
||||
flex: auto;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.inputView {
|
||||
background-color: #fff;
|
||||
line-height: 44px;
|
||||
}
|
||||
/*输入框*/
|
||||
.nameImage, .keyImage {
|
||||
margin-left: 22px;
|
||||
width: 14px;
|
||||
height: 14px
|
||||
}
|
||||
|
||||
.loginLab {
|
||||
margin: 15px 15px 15px 10px;
|
||||
color: #545454;
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/*登录图片*/
|
||||
.login-icon {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.login-img {
|
||||
margin-top: 50px;
|
||||
width: 450rpx;
|
||||
}
|
||||
|
||||
/*表单内容*/
|
||||
.login-from {
|
||||
margin-top: 20px;
|
||||
flex: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.inputView {
|
||||
background-color: #fff;
|
||||
line-height: 44px;
|
||||
}
|
||||
|
||||
/*输入框*/
|
||||
.nameImage,
|
||||
.keyImage {
|
||||
margin-left: 22px;
|
||||
margin-right: 8px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.loginLab {
|
||||
margin: 15px 15px 15px 10px;
|
||||
color: #545454;
|
||||
font-size: 14px
|
||||
}
|
||||
.inputText {
|
||||
flex: block;
|
||||
float: right;
|
||||
text-align: right;
|
||||
margin-right: 22px;
|
||||
margin-top: 11px;
|
||||
color: #cccccc;
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.line {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: #cccccc;
|
||||
margin-top: 1px;
|
||||
}
|
||||
/*按钮*/
|
||||
.loginBtnView {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
.loginBtn {
|
||||
width: 80%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.inputText {
|
||||
flex: block;
|
||||
float: right;
|
||||
margin-right: 22px;
|
||||
margin-top: 11px;
|
||||
color: #cccccc;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.line {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: #cccccc;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
/*按钮*/
|
||||
.loginBtnView {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
.loginBtn {
|
||||
width: 80%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user