From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa
---
wechat_staff/api/index.js | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 73a6bac..603175d 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
})
}
// 鏇存柊浼氬憳淇℃伅
@@ -193,6 +195,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
})
}
@@ -331,4 +340,12 @@
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