From 04b4bddaac0a222760113899568d20b45af701f4 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 27 九月 2024 19:04:14 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_staff/api/index.js |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 50 insertions(+), 6 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 399269d..c6066a2 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -11,6 +11,7 @@
 }
 // 楠岃瘉鐮佺櫥褰�
 export const loginByPhone = (data) => {
+  console.log(data)
   return request({
     url: '/web/personnel/loginByPhone',
     data
@@ -23,6 +24,14 @@
     data
   })
 }
+
+export const getUserCard = (data) => {
+  return request({
+    url: '/web/personnel/getUserCard',
+    method: "POST",
+    data
+  })
+}
 // 鑾峰彇鎵嬫満鍙�
 export const getWxMiniPhone = (data) => {
   return request({
@@ -31,6 +40,7 @@
     data
   })
 }
+
 // 缁戝畾Openid
 export const bindingOpenid = (data) => {
   return request({
@@ -47,9 +57,10 @@
   })
 }
 // 鑾峰彇浼氬憳淇℃伅
-export const getMemberInfo = () => {
+export const getMemberInfo = (data) => {
   return request({
     url: '/web/personnel/getUserDetail',
+    data:data
   })
 }
 // 鏇存柊浼氬憳淇℃伅
@@ -71,7 +82,8 @@
 export const saveShareRecord = (data) => {
   return request({
     url: '/web/customer/saveShareRecord?id='+data,
-    data
+    data,
+    loading: '0'
   })
 }
 // 浜у搧瑙嗛
@@ -131,7 +143,8 @@
 export const actionDo = (data) => {
   return request({
     url: '/web/customer/actionDo',
-    data
+    data,
+    loading: data.actionType == 'view' ? '0' : '1'
   })
 }
 // 鑾峰彇瀹㈡埛-娼滃鍒楄〃
@@ -142,9 +155,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 +197,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
   })
 }
@@ -263,6 +284,14 @@
     data
   })
 }
+// 鑾峰彇鍐呭鍒嗕韩娴锋姤
+export const getContentShareImg = (data) => {
+  return request({
+    url: '/web/personnel/getContentShareImg',
+    method: 'POST',
+    data
+  })
+}
 // 0鍏冨畾鍒朵俊鎭�
 export const saveFreeCustomizationApply = (data) => {
   return request({
@@ -300,10 +329,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