From ebc6e7ee67f13e7aa311e737dfcb4c5caed112ee Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 15 八月 2024 18:23:57 +0800
Subject: [PATCH] ll
---
wechat_staff/pages/kefu/select.js | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index 2799167..9e287d9 100644
--- a/wechat_staff/pages/kefu/select.js
+++ b/wechat_staff/pages/kefu/select.js
@@ -41,30 +41,36 @@
customer
} = this.data
const enjoyList = wx.getStorageSync('enjoyList') || []
- if (!customer.userId) return wx.showToast({
+ if (!customer.platSourceId) return wx.showToast({
title: '璇峰厛閫夋嫨瑕佸叧鑱旂殑瀹㈡埛',
icon: 'none'
})
batchAddLike({
articleIds: enjoyList.filter(i => i.checked).map(i => i.id).join(','),
- customerId: customer.platSourceId,
+ customerId: customer.customerId,
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)
+ this.setData({
+ customer: {},
+ total: 0,
+ dataList: [],
+ page: 1
})
- }, 500)
- this.setData({
- customer: {}
- })
- this.setData({
- total: 0,
- dataList: [],
- page: 1
- })
- this.getList()
+ this.getList()
+ }else{
+ return wx.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ }
})
},
tabsClick(e) {
--
Gitblit v1.9.3