|
|
@@ -101,12 +101,14 @@ Page({
|
|
|
if (!checkRes) {
|
|
|
var that = this
|
|
|
util.request(util.api.agentAdd, that.data.user, "POST", false, true,app.globalData.token).then((res)=>{
|
|
|
+ console.log("22222222222",res)
|
|
|
if (res.code == 200) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/agent/index',
|
|
|
})
|
|
|
}else{
|
|
|
- util.toast("该代理或联系方式已存在,请重新输入")
|
|
|
+ console.log("1111111111")
|
|
|
+ util.toast(res.message)
|
|
|
}
|
|
|
}).catch((res) => {})
|
|
|
} else {
|