bug修改,登录等页面重画
This commit is contained in:
@@ -29,11 +29,6 @@ Page({
|
||||
},
|
||||
clearrepeatval(){
|
||||
this.data.valsNew = []
|
||||
wx.showToast({
|
||||
title: '禁止复制粘贴请手动输入',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
this.setData({
|
||||
newPassword: ''
|
||||
})
|
||||
@@ -41,11 +36,6 @@ Page({
|
||||
},
|
||||
clearrepeatvalVerify(){
|
||||
this.data.valsVerify = []
|
||||
wx.showToast({
|
||||
title: '禁止复制粘贴请手动输入',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
this.setData({
|
||||
verifyPassword: ''
|
||||
})
|
||||
@@ -155,13 +145,14 @@ Page({
|
||||
verifyPassword: encrypt(this.data.rsaPublicKey, e.detail.value.verifyPassword), // 确认密码
|
||||
rsaPublicKey: this.data.rsaPublicKey
|
||||
}
|
||||
// 请求短信登录start
|
||||
// 请求登录start
|
||||
UserApi.setPassword(params).then(res => {
|
||||
console.log(res)
|
||||
if (res.success) {
|
||||
// 成功设置密码,跳转首页
|
||||
wx.setStorage({
|
||||
key: 'X-Access-Token',
|
||||
data: that.data.password
|
||||
data: this.data.password
|
||||
})
|
||||
wx.setStorage({
|
||||
key: 'userInfo',
|
||||
@@ -195,7 +186,7 @@ Page({
|
||||
})
|
||||
},
|
||||
onLoad(options){
|
||||
// this.data.userInfo = JSON.parse(options.userInfo)
|
||||
this.data.userInfo = JSON.parse(options.userInfo)
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
<view class="container-box">
|
||||
<text class="set-password">初次登录请设置密码</text>
|
||||
<form bindsubmit="formSubmit" class="form-box">
|
||||
<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="newPassword" bindinput="handlePasswordInput" value="{{newPassword}}" password="{{show}}" placeholder="请输入密码" />
|
||||
<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 text-password">
|
||||
<view class="item">
|
||||
<view class="label">确认密码</view>
|
||||
<view class="value text-password">
|
||||
<input name="verifyPassword" bindinput="handleVerifyPasswordInput" value="{{verifyPassword}}" password="{{showVerify}}" placeholder="请输入确认密码" />
|
||||
<image src="../../assets/images/show.png" class="show" wx:if="{{!showVerify}}" bindtap="showPasswordVerify"></image>
|
||||
<image src="../../assets/images/none.png" class="show" wx:if="{{showVerify}}" bindtap="showPasswordVerify"></image>
|
||||
|
||||
@@ -1,32 +1,69 @@
|
||||
/* pages/meeting/meeting.wxss */
|
||||
page {
|
||||
overflow: hidden;
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
color: #333;
|
||||
}
|
||||
.container-box{
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.form-box{
|
||||
transform: translateY(20%);
|
||||
}
|
||||
.text-value{
|
||||
position: relative;
|
||||
}
|
||||
.text-password input{
|
||||
padding-right: 30px;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
padding: 30px 20px;
|
||||
}
|
||||
.set-password{
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
letter-spacing: 0.5px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
|
||||
.btn-area button{
|
||||
background-color: #069F99 !important;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
.show{
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 8px;
|
||||
top: 58%;
|
||||
z-index: 9;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user