苏荣斌 il y a 3 ans
Parent
commit
10155a7211
3 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 3 1
      pages/agent/add.js
  2. 3 1
      pages/store/add.js
  3. 1 1
      project.config.json

+ 3 - 1
pages/agent/add.js

@@ -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 {

+ 3 - 1
pages/store/add.js

@@ -195,12 +195,14 @@ Page({
     if (!checkRes) {
       
       util.request(util.api.addStore, that.data.storeInfo, "POST", false, true,app.globalData.token).then((res)=>{
+        console.log("111111",res)
         if (res.code == 200) {
           wx.navigateTo({
             url: '/pages/store/index',
           })
+          console.log("22222")
         }else{
-          util.toast("该门店名称已存在,请重新输入")
+          util.toast(res.message)
         }
       }).catch((res) => {})
     } else {

+ 1 - 1
project.config.json

@@ -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": {