@@ -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 {
@@ -195,12 +195,14 @@ Page({
util.request(util.api.addStore, that.data.storeInfo, "POST", false, true,app.globalData.token).then((res)=>{
+ console.log("111111",res)
url: '/pages/store/index',
+ console.log("22222")
- util.toast("该门店名称已存在,请重新输入")
@@ -42,7 +42,7 @@
"minifyWXML": true
},
"compileType": "miniprogram",
- "libVersion": "2.14.4",
+ "libVersion": "2.16.0",
"appid": "wxc42df73f9710a566",
"projectname": "mg-vending-machine-applets-manage",
"debugOptions": {