| | |
| | | </div> |
| | | </view> |
| | | <u-form-item prop="secondPassword" |
| | | label="二次确认" |
| | | label="确认密码" |
| | | required |
| | | borderBottom> |
| | | <u-input v-if='inputType==="password"' |
| | |
| | | const regex2 = /^[A-Za-z]+$/ |
| | | // 校验符号 |
| | | const regex3 = |
| | | /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/ |
| | | /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/; |
| | | if(regex1.test(value)) { |
| | | this.level.push('low') |
| | | return callback('密码强度过低') |
| | |
| | | // this.getUserInfo(params.phone, params.idCard) |
| | | // } |
| | | if(params.userInfo) { |
| | | console.log(JSON.parse(params.userInfo),'userInfo====') |
| | | this.modelForm.username = JSON.parse(params.userInfo).username |
| | | this.modelForm.userId = JSON.parse(params.userInfo).userId.toString() //userId |
| | | if(JSON.parse(params.userInfo).isShowPassword) { |
| | |
| | | this.isShowPassword = true |
| | | } |
| | | }else { |
| | | this.modelForm.username = uni.getStorageSync('userInfo').username |
| | | this.modelForm.userId = uni.getStorageSync('userInfo').userId.toString() |
| | | this.isShowPassword = true |
| | | } |
| | | }, |