【bug】小程序注册企业查询问题
This commit is contained in:
@@ -139,11 +139,13 @@ Page({
|
|||||||
console.log('表单提交的数据',formData);
|
console.log('表单提交的数据',formData);
|
||||||
UserApi.registerUser(formData).then(res => {
|
UserApi.registerUser(formData).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
if(res.success){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: res.result,
|
title: res.result,
|
||||||
icon:none,
|
icon:'none',
|
||||||
duration:800
|
duration:800
|
||||||
})
|
})
|
||||||
|
setTimeout( () => {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: '../login/login',
|
url: '../login/login',
|
||||||
success(){
|
success(){
|
||||||
@@ -152,6 +154,8 @@ Page({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},800)
|
||||||
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -242,7 +246,7 @@ Page({
|
|||||||
// 选择企业
|
// 选择企业
|
||||||
selectCompany() {
|
selectCompany() {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: '../companyList/companyList?page=register',
|
url: '../companyList/companyList?page=register&nolimit=true',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|||||||
Reference in New Issue
Block a user