Pārlūkot izejas kodu

提示消息修改

xiaohaizhao 2 gadi atpakaļ
vecāks
revīzija
a4960a9a11

+ 5 - 4
packageA/project/modules/contacts/add/index.js

@@ -275,10 +275,11 @@ Page({
             content
         }).then(res => {
             console.log("编辑联系人", res)
-            if (res.msg != '成功') return wx.showToast({
-                title: res.data,
-                icon: "none"
-            });
+            if (res.msg != '成功') return wx.showModal({
+                title: '提示',
+                content: res.msg,
+                showCancel: false
+            })
             let that = this;
             let page = getCurrentPages()[getCurrentPages().length - 2];
             if (that.data.content.sa_project_contactsid) {

+ 1 - 1
packageA/setclient/modules/contacts/add/index.js

@@ -282,7 +282,7 @@ Page({
         }).then(res => {
             console.log("编辑联系人", res)
             wx.showToast({
-                title: res.msg != '成功' ? res.data : '保存成功',
+                title: res.msg != '成功' ? res.msg : '保存成功',
                 icon: "none",
                 mask: true
             });