From d41f1f707dc643b726a42b9d2a63b186dd9e4f28 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 06 八月 2024 16:12:38 +0800
Subject: [PATCH] ll

---
 wechat_staff/api/index.js |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index ba78727..cbca5dc 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
@@ -56,9 +57,10 @@
   })
 }
 // 鑾峰彇浼氬憳淇℃伅
-export const getMemberInfo = () => {
+export const getMemberInfo = (data) => {
   return request({
     url: '/web/personnel/getUserDetail',
+    data:data
   })
 }
 // 鏇存柊浼氬憳淇℃伅
@@ -140,7 +142,8 @@
 export const actionDo = (data) => {
   return request({
     url: '/web/customer/actionDo',
-    data
+    data,
+    loading: data.actionType == 'view' ? '0' : '1'
   })
 }
 // 鑾峰彇瀹㈡埛-娼滃鍒楄〃
@@ -193,6 +196,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
   })
 }
@@ -324,3 +334,19 @@
     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