首页修改
This commit is contained in:
@@ -137,9 +137,13 @@ export default {
|
||||
if (this.formData.password != this.formData.password2) {
|
||||
return this.$util.toast('两次密码不一致')
|
||||
}
|
||||
// 密码需要包含特殊字符字母数字,长度为8-16
|
||||
if (!/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[#@!~%^&*])[a-zA-Z\d#@!~%^&*]{8,16}$/.test(this.formData.password)) {
|
||||
return this.$util.toast('密码需要包含特殊字符字母数字,长度为8-16')
|
||||
// 密码需要长度为8-16
|
||||
if (this.formData.password.length < 8 || this.formData.password.length > 16) {
|
||||
uni.showToast({
|
||||
title: '密码需要长度为8-16',
|
||||
icon: 'none',
|
||||
})
|
||||
return
|
||||
}
|
||||
let loginName = encrypt(this.formData.phone)
|
||||
gongkey({ loginName }).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user