From ba4da8d8e8d55153d0ff1c39ebdac30115a066a8 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 09 八月 2024 09:23:08 +0800
Subject: [PATCH] aa
---
wechat_staff/components/disRealpic/index.js | 2 +-
wechat_staff/pages/kefu/select.js | 2 +-
wechat_staff/components/disProduct/index.js | 2 +-
wechat_staff/components/disCase/index.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/wechat_staff/components/disCase/index.js b/wechat_staff/components/disCase/index.js
index d1d754d..77e8f55 100644
--- a/wechat_staff/components/disCase/index.js
+++ b/wechat_staff/components/disCase/index.js
@@ -115,7 +115,7 @@
getZhongTaiWholecasePage({
catalogCode,pageNum,pageSize,tagCodes, sortType,query
}).then(res => {
- if(res.data || res.data.records){
+ if(res.data && res.data.records){
this.setData({
total: res.data.total,
dataList: [...this.data.dataList, ...res.data.records],
diff --git a/wechat_staff/components/disProduct/index.js b/wechat_staff/components/disProduct/index.js
index 114c58b..7bde532 100644
--- a/wechat_staff/components/disProduct/index.js
+++ b/wechat_staff/components/disProduct/index.js
@@ -139,7 +139,7 @@
getZhongTaiProductPage({
catalogCode,pageNum,pageSize,sortType,query,tagCodes
}).then(res => {
- if(res.data || res.data.records){
+ if(res.data && res.data.records){
this.setData({
datalist: [...this.data.datalist, ...res.data.records],
total: res.data.total
diff --git a/wechat_staff/components/disRealpic/index.js b/wechat_staff/components/disRealpic/index.js
index 94dce6b..115e369 100644
--- a/wechat_staff/components/disRealpic/index.js
+++ b/wechat_staff/components/disRealpic/index.js
@@ -118,7 +118,7 @@
getZhongTaiRealcasePage({
catalogCode,tagCodes,pageNum,pageSize, sortType,query
}).then(res => {
- if(res.data || res.data.records){
+ if(res.data && res.data.records){
this.setData({
dataList: [...this.data.dataList, ...res.data.records],
total: res.data.total
diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index f73eda1..8606fa8 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.customerId) return wx.showToast({
title: '璇峰厛閫夋嫨瑕佸叧鑱旂殑瀹㈡埛',
icon: 'none'
})
--
Gitblit v1.9.3