首页修改

This commit is contained in:
仲么了
2023-08-23 16:22:08 +08:00
parent cc63cda4e7
commit 79d6771aad
34 changed files with 788 additions and 403 deletions

View File

@@ -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