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 | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index d183f79..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({
@@ -187,6 +196,13 @@
data
})
}
+// 鑾峰彇闂ㄥ簵璇︽儏
+export const loadShopList= (data) => {
+ return request({
+ url: '/web/personnel/userShopList',
+ data
+ })
+}
// 鎴戠殑 鏀惰棌/鍠滄鍒楄〃
export const collectLikePage = (data) => {
return request({
@@ -315,3 +331,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