【bug】小程序注册企业查询问题

This commit is contained in:
fengachen
2021-12-28 15:51:29 +08:00
parent ea1dad0984
commit a330b32983
+10 -6
View File
@@ -139,11 +139,13 @@ Page({
console.log('表单提交的数据',formData);
UserApi.registerUser(formData).then(res => {
console.log(res);
wx.showToast({
title: res.result,
icon:none,
duration:800
})
if(res.success){
wx.showToast({
title: res.result,
icon:'none',
duration:800
})
setTimeout( () => {
wx.navigateTo({
url: '../login/login',
success(){
@@ -152,6 +154,8 @@ Page({
})
}
})
},800)
}
}).catch(err => {
wx.showToast({
title: err.message,
@@ -242,7 +246,7 @@ Page({
// 选择企业
selectCompany() {
wx.navigateTo({
url: '../companyList/companyList?page=register',
url: '../companyList/companyList?page=register&nolimit=true',
})
},
goBack() {