From 2c08a98f7e85ec7c9376f27a7933e75e44d672f7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 27 八月 2024 15:52:59 +0800
Subject: [PATCH] ll

---
 wechat_staff/pages/kefu/select.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index f73eda1..f3eb41d 100644
--- a/wechat_staff/pages/kefu/select.js
+++ b/wechat_staff/pages/kefu/select.js
@@ -41,7 +41,7 @@
       customer
     } = this.data
     const enjoyList = wx.getStorageSync('enjoyList') || []
-    if (!customer.userId) return wx.showToast({
+    if (!customer.platSourceId) return wx.showToast({
       title: '璇峰厛閫夋嫨瑕佸叧鑱旂殑瀹㈡埛',
       icon: 'none'
     })
@@ -58,21 +58,21 @@
             icon: 'none'
           })
         }, 500)
+        const temp = enjoyList.filter(i => !i.checked)
+        wx.setStorageSync('enjoyList', temp)
+        this.setData({
+          customer: {},
+          total: 0,
+          dataList: [],
+          page: 1
+        })
+        this.getList()
       }else{
         return wx.showToast({
           title: res.message,
           icon: 'none'
         })
       }
-      this.setData({
-        customer: {}
-      })
-      this.setData({
-        total: 0,
-        dataList: [],
-        page: 1
-      })
-      this.getList()
     })
   },
   tabsClick(e) {

--
Gitblit v1.9.3