From 2faa6546a9f9ddb29f81cbc9770fc25b95703695 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 17:02:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_staff/api/index.js | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index ba78727..86fcab2 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -13,7 +13,7 @@
export const loginByPhone = (data) => {
return request({
url: '/web/personnel/loginByPhone',
- data
+ datas
})
}
// 鍙戦�侀獙璇佺爜
@@ -196,6 +196,13 @@
data
})
}
+// 鑾峰彇闂ㄥ簵璇︽儏
+export const loadShopList= (data) => {
+ return request({
+ url: '/web/personnel/userShopList',
+ data
+ })
+}
// 鎴戠殑 鏀惰棌/鍠滄鍒楄〃
export const collectLikePage = (data) => {
return request({
@@ -324,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