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 |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 924f405..c7d07d3 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -23,6 +23,14 @@
     data
   })
 }
+
+export const getUserCard = (data) => {
+  return request({
+    url: '/web/personnel/getUserCard',
+    method: "POST",
+    data
+  })
+}
 // 鑾峰彇鎵嬫満鍙�
 export const getWxMiniPhone = (data) => {
   return request({
@@ -31,6 +39,7 @@
     data
   })
 }
+
 // 缁戝畾Openid
 export const bindingOpenid = (data) => {
   return request({
@@ -142,9 +151,10 @@
     data
   })
 }
-export const getUserCard = (data) => {
+// 鎵归噺娣诲姞鍠滄缁欏鎴�
+export const batchAddLike = (data) => {
   return request({
-    url: '/web/personnel/getUserCard',
+    url: '/web/personnel/batchAddLike',
     method: "POST",
     data
   })
@@ -183,6 +193,13 @@
 export const getShopDetail = (data) => {
   return request({
     url: '/web/personnel/shopDetail?shopId='+data,
+    data
+  })
+}
+// 鑾峰彇闂ㄥ簵璇︽儏
+export const loadShopList= (data) => {
+  return request({
+    url: '/web/personnel/userShopList',
     data
   })
 }
@@ -308,10 +325,25 @@
     data
   })
 }
-// 灏忕▼搴忔敞閿�
 export const getCrmAuthUrl = (data) => {
   return request({
     url: '/web/customer/getCrmAuthUrl',
     data
   })
 }
+
+export const refreshEnjoy = (obj) =>{
+  let child = obj.selectComponent('.buoyClient');
+  // 璋冪敤瀛愮粍浠朵腑瀹氫箟鐨勬柟娉� 
+  if(child){ 
+    child.freshData();
+  }
+  var {info} = obj.data ;
+  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