From 1cee3a660c5f8e5f4290ae894c2898c4966a834d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 18:33:33 +0800
Subject: [PATCH] ''

---
 wechat_staff/pages/kefu/select.js |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index 7bd8777..f73eda1 100644
--- a/wechat_staff/pages/kefu/select.js
+++ b/wechat_staff/pages/kefu/select.js
@@ -51,11 +51,19 @@
       platId: customer.platSourceId,
       platSource: customer.platSource
     }).then(res => {
-      setTimeout(() => {
-        wx.showToast({
-          title: '缁戝畾鎴愬姛',icon: 'none'
+      if (res.code == 200) {
+        setTimeout(() => {
+          wx.showToast({
+            title: '缁戝畾鎴愬姛',
+            icon: 'none'
+          })
+        }, 500)
+      }else{
+        return wx.showToast({
+          title: res.message,
+          icon: 'none'
         })
-      }, 500)
+      }
       this.setData({
         customer: {}
       })

--
Gitblit v1.9.3