From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

---
 wechat_staff/api/index.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 37d73b8..c7d07d3 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -196,6 +196,13 @@
     data
   })
 }
+// 鑾峰彇闂ㄥ簵璇︽儏
+export const loadShopList= (data) => {
+  return request({
+    url: '/web/personnel/userShopList',
+    data
+  })
+}
 // 鎴戠殑 鏀惰棌/鍠滄鍒楄〃
 export const collectLikePage = (data) => {
   return request({
@@ -331,9 +338,12 @@
   if(child){ 
     child.freshData();
   }
-  const enjoyList = wx.getStorageSync('enjoyList') || []; 
   var {info} = obj.data ;
-  const index = enjoyList.findIndex( i => i.id === info.id );
-   info.isEnjoy = index > -1;
-   obj.setData({ info:info})   ;
+  if(info){
+    const enjoyList = wx.getStorageSync('enjoyList') || []; 
+    const index = enjoyList.findIndex( i => i.id === info.id );
+    info.isEnjoy = index > -1;
+    obj.setData({ info:info}) ;
+  }
+  
 }
\ No newline at end of file

--
Gitblit v1.9.3