bug修改,登录等页面重画

This commit is contained in:
姚亚男
2021-10-28 18:04:54 +08:00
parent 2b14a2cf49
commit 0ca78ec9ee
21 changed files with 613 additions and 153 deletions
-5
View File
@@ -52,11 +52,6 @@ Page({
},
clearrepeatval(){
this.data.vals = []
wx.showToast({
title: '禁止复制粘贴请手动输入',
icon: 'none',
duration: 2000
})
this.setData({
password: ''
})
+2 -1
View File
@@ -1,4 +1,5 @@
{
"navigationBarTitleText": "登录",
"usingComponents": {}
"usingComponents": {},
"navigationStyle": "custom"
}
+24 -14
View File
@@ -1,27 +1,37 @@
<!--pages/meeting/meeting.wxml-->
<view>
<view class="container-box">
<view class="home-bg">
<!-- 顶部背景图 mode="scaleToFill" 按照宽高填充,忽略图片原比例-->
<image mode="scaleToFill" src="../../assets/images/login-bg.png"></image>
<view class="bg-text">
<text>您好,欢迎使用</text>
<text>标准所协同工作平台</text>
</view>
</view>
<form bindsubmit="formSubmit" class="form-box">
<view class="form-item">
<view class="text-label">手机号</view>
<view class="text-value">
<view class="item">
<view class="label">手机号</view>
<view class="value">
<input name="phone" value="{{phone}}" placeholder="请输入手机号" />
</view>
</view>
<view class="form-item">
<view class="text-label">密码</view>
<view class="text-value text-password">
<view class="item">
<view class="label">密码</view>
<view class="value text-password">
<input name="password" value="{{password}}" password="{{show}}" placeholder="请输入密码" bindinput="handlePasswordInput" />
<image src="../../assets/images/show.png" class="show" wx:if="{{!show}}" bindtap="showPassword"></image>
<image src="../../assets/images/none.png" class="show" wx:if="{{show}}" bindtap="showPassword"></image>
</view>
</view>
<view class="form-item">
<view class="text-label">验证码</view>
<view class="text-value">
<input name="captcha" placeholder="请输入验证码" value="{{captcha}}" />
</view>
<view class="captcha" wx:if="{{form.requestCodeSuccess}}" bindtap="handleChangeCheckCode">
<image src="{{form.randCodeImage}}" mode="aspectFill"></image>
<view class="item">
<view class="label">验证码</view>
<view class="view-flex">
<view class="value">
<input name="captcha" style="padding-right: 0 !important;" placeholder="请输入验证码" value="{{captcha}}" />
</view>
<view class="captchaImage" wx:if="{{form.requestCodeSuccess}}" bindtap="handleChangeCheckCode">
<image src="{{form.randCodeImage}}" mode="aspectFill"></image>
</view>
</view>
<view class="captcha count" wx:if="{{!form.requestCodeSuccess}}" bindtap="handleChangeCheckCode">重新获取</view>
</view>
+135 -22
View File
@@ -1,16 +1,133 @@
/* pages/meeting/meeting.wxss */
page {
overflow-x: hidden;
width: 100%;
color: #333;
}
.container-box{
overflow-x: hidden;
}
.form-box{
transform: translateY(25%);
transform: translateY(-50px) !important;
}
.text-label {
width: 60px !important;
.home-bg{
height: 200pt;
}
.text-value{
.bg-text{
position: relative;
top: -100pt;
left: 34pt;
color: #fff;
}
.text-password input{
padding-right: 30px;
.bg-text text:nth-child(1){
display: block;
font-size: 15px;
margin-bottom: 8px;
}
.bg-text text:nth-child(2){
display: block;
font-size: 18px;
font-weight: 600;
letter-spacing: 1px;
}
.form-box{
display: block;
box-sizing: border-box;
width: 100%;
height: auto;
background-color: #fff;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
transform: translateY(-10%);
padding: 30px 20px;
}
.form-box .item {
position: relative;
display: block !important;
width: 100%;
margin-bottom: 25px;
}
.form-box .label{
width: 100%;
color: #A4A4A4;
font-size: 12px;
margin-bottom: 10px;
}
.form-box .value{
width: 100%;
}
.form-box .value input{
width: 100%;
box-sizing: border-box;
background-color: #F2F2F4;
border-radius: 8px;
color: #333;
font-size: 15px;
height: 50px;
padding: 0 90px 0 20px;
}
.form-box .captcha{
color: #069F99;
position: absolute;
right: 10px;
font-size: 13px;
top: 55%;
z-index: 9;
}
.form-box .view-flex{
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
height: 50px;
}
.form .view-flex .value{
flex: 1;
}
.form-box .captchaImage{
width: 140px;
height: 50px;
flex-shrink: 0;
margin-left: 20px;
}
.form-box .captchaImage image{
width: 100%;
height: 50px;
border-radius: 10px;
}
.form-box .count {
color: #999;
}
.btn-area button{
background-color: #069F99 !important;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
}
.other-way{
color: #A4A4A4;
font-size: 12px;
display: block;
width: 100%;
text-align: center;
margin-top: 70px;
letter-spacing: 1px;
}
.weixin{
margin-top: 30px !important;
width: 55px !important;
height: 55px !important;
background-color: #F2F2F4;
border-radius: 10px;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
}
.weixin image{
width: 32px !important;
height: 26px !important;
}
.forget{
color: #999;
@@ -20,25 +137,21 @@
align-items: center;
margin-top: 20px;
}
.captcha{
padding: 0 !important;
background-color: #fff !important;
}
.count{
background-color: #f5f5f5 !important;
color: #999 !important;
}
.captcha image{
display: block;
.weixin{
width: 100%;
height: 90%;
border-radius: 5px;
display: flex;
justify-content: center;
margin-top: 70px;
}
.weixin image{
width: 50px;
height: 50px;
}
.show{
width: 15px;
height: 15px;
position: absolute;
right: 10px;
top: 8px;
top: 58%;
z-index: 9;
}
}