提交 6b66fadc authored 作者: 王鹏飞's avatar 王鹏飞

修改忘记密码表单校验规则

上级 69b9115a
......@@ -25,6 +25,14 @@ Page({
wx.showToast({ title: '请输入密码', icon: 'none' })
return
}
if (password.length < 6) {
wx.showToast({ title: '密码长度必须大于6位数', icon: 'none' })
return
}
if (password !== passwordR) {
wx.showToast({ title: '两次输入密码不一样', icon: 'none' })
return
}
this.handleRequest(params)
},
// 请求接口
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论