优化表单校验逻辑
This commit is contained in:
parent
201fed4ae0
commit
4f60150d48
@ -212,9 +212,9 @@
|
||||
},
|
||||
// 创建账号
|
||||
addAcountNum() {
|
||||
this.$refs.uForm.validate().then((e) => {
|
||||
if (e) this.$refs.districtSelectorRef.validate().then(async (e) => {
|
||||
if (e) {
|
||||
let flag = this.$refs.districtSelectorRef.validate();
|
||||
this.$refs.uForm.validate().then(async (e) => {
|
||||
if(e&&flag){
|
||||
uni.showLoading()
|
||||
let res = await loginAdd({...this.formData, ...this.$refs.districtSelectorRef.formData});
|
||||
uni.hideLoading()
|
||||
@ -229,7 +229,6 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// // 获取机型,[1-微信小程序 2-微信公众号 3-手机H5 4-电脑PC 5-苹果APP 6-安卓APP]
|
||||
// initTerminal() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user