Quellcode durchsuchen

接口失败提示字段改为msg

xiaohaizhao vor 2 Jahren
Ursprung
Commit
121b5387da

+ 10 - 9
packageA/setclient/modules/trace/add/index.js

@@ -36,7 +36,7 @@ Page({
                 console.log("跟进详情", res)
                 console.log("跟进详情", res)
                 if (res.msg != '成功') {
                 if (res.msg != '成功') {
                     wx.showToast({
                     wx.showToast({
-                        title: res.data,
+                        title: res.msg,
                         icon: "none"
                         icon: "none"
                     })
                     })
                     setTimeout(() => {
                     setTimeout(() => {
@@ -133,8 +133,9 @@ Page({
             "id": 20220930121601,
             "id": 20220930121601,
             content
             content
         }).then(res => {
         }).then(res => {
+            console.log("保存跟进内容",res)
             if (res.msg != '成功') return wx.showToast({
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
                 icon: "none"
             });
             });
             wx.showToast({
             wx.showToast({
@@ -168,13 +169,13 @@ Page({
                                 "content.total": page.data.content.total + 1
                                 "content.total": page.data.content.total + 1
                             });
                             });
                             wx.navigateBack();
                             wx.navigateBack();
-                            wx.navigateTo({
-                                url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
-                                    "sys_datafollowupid": res.data.sys_datafollowupid,
-                                    "ownertable": this.data.ownertable,
-                                    "ownerid": this.data.ownerid
-                                }),
-                            })
+                            /*  wx.navigateTo({
+                                 url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
+                                     "sys_datafollowupid": res.data.sys_datafollowupid,
+                                     "ownertable": this.data.ownertable,
+                                     "ownerid": this.data.ownerid
+                                 }),
+                             }) */
                         }
                         }
                     };
                     };
                 });
                 });

+ 1 - 1
packageA/setclient/modules/trace/list/delete.js

@@ -24,7 +24,7 @@ Page({
         }).then(res => {
         }).then(res => {
             console.log("删除", res);
             console.log("删除", res);
             if (res.msg != '成功') return wx.showToast({
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
                 icon: "none"
             });
             });
             wx.showToast({
             wx.showToast({