提交 1dc56d7b 编写于 作者: 芊里

密码一致性校验

上级 dbbe1ee3
......@@ -78,16 +78,15 @@
* 触发表单提交
*/
submit() {
if(this.formData.pwd != this.formData.pwd2)return uni.showToast({
title: '两次输入密码不一致',
icon: 'none'
});
uni.showLoading({
mask: true
})
this.$refs.form.submit().then((res) => {
console.log(res);
if(res.pwd != res.pwd2)return uni.showToast({
title: '两次输入密码不一致',
icon: 'none'
});
this.submitForm(res)
}).catch((errors) => {
console.log(errors);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册