首页修改
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</uni-forms>
|
||||
<button type="default" class="submit-btn" @click="submit">提交</button>
|
||||
<view class="login-box-tips">
|
||||
<view style="color: #999">说明:密码需要包含特殊字符字母数字,长度为8-16</view>
|
||||
<view style="color: #999">说明:密码需要长度为8-16</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -140,14 +140,15 @@ export default {
|
||||
icon: 'none',
|
||||
})
|
||||
} else {
|
||||
// 密码需要包含特殊字符字母数字,长度为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) => {
|
||||
let publicKey = response.data
|
||||
|
||||
Reference in New Issue
Block a user