From b7fd27a4a7ac72eef5fc142cae9bb63fe69ef233 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 22 七月 2024 15:34:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_staff/api/index.js | 101 +++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 95 insertions(+), 6 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 982312f..28e7a7d 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -2,10 +2,24 @@
import { baseUrl } from '../utils/config'
export const uploadUrl = baseUrl + '/public/upload'
-// 灏忕▼搴忕櫥褰�
+// 灏忕▼搴� 榛樿鐧诲綍
export const wxLoginCustomer = (data) => {
return request({
- url: '/web/customer/wxLoginCustomer',
+ url: '/web/personnel/loginByWx',
+ data
+ })
+}
+// 楠岃瘉鐮佺櫥褰�
+export const loginByPhone = (data) => {
+ return request({
+ url: '/web/personnel/loginByPhone',
+ data
+ })
+}
+// 鍙戦�侀獙璇佺爜
+export const sendSms = (data) => {
+ return request({
+ url: '/web/personnel/sendSms',
data
})
}
@@ -28,7 +42,7 @@
// 鑾峰彇瀛楀吀鍊�
export const getDictData = (data) => {
return request({
- url: '/public/getDictData',
+ url: '/public/getDictData?code='+data.code+'&label='+data.label,
data,
loading: '0'
})
@@ -36,7 +50,68 @@
// 鑾峰彇浼氬憳淇℃伅
export const getMemberInfo = () => {
return request({
- url: '/web/customer/getMemberInfo',
+ url: '/web/personnel/getUserDetail',
+ })
+}
+// 棣栭〉 姣忔棩涓婃柊
+export const getDailyUpdates = (data) => {
+ return request({
+ url: '/web/customer/getDailyUpdates',
+ data
+ })
+}
+// 棣栭〉 鎺ㄥ箍鍜ㄨ鍒嗛〉
+export const newsPage = (data) => {
+ return request({
+ url: '/web/customer/newsPage',
+ data,
+ method: "POST"
+ })
+}
+// 棣栭〉 蹇楄瑁呬慨
+export const getZSZXCatalogs = () => {
+ return request({
+ url: '/web/customer/getZSZXCatalogs',
+ method: "POST"
+ })
+}
+// 蹇楄瑁呬慨 鏍囩
+export const getCataLogTagList = (data) => {
+ return request({
+ url: '/web/customer/getCataLogTagList',
+ method: "POST",
+ data
+ })
+}
+// 涓嘲 鍒嗙被鏁版嵁
+export const getCatalogList = (data) => {
+ return request({
+ url: '/web/customer/getCatalogList',
+ method: "POST",
+ data
+ })
+}
+
+export const getUserCard = (data) => {
+ return request({
+ url: '/web/personnel/getUserCard',
+ method: "POST",
+ data
+ })
+}
+export const logout = (data) => {
+ return request({
+ url: '/web/personnel/logOff',
+ method: "POST",
+ data
+ })
+}
+// 蹇楄瑁呬慨 鍐呭
+export const pageZSZXContentList = (data) => {
+ return request({
+ url: '/web/customer/pageContentList',
+ method: "POST",
+ data
})
}
// 鑾峰彇闂ㄥ簵鍒楄〃
@@ -47,10 +122,17 @@
data
})
}
+export const updateShop = (data) => {
+ return request({
+ url: '/web/personnel/updShop',
+ method: 'POST',
+ data
+ })
+}
// 鑾峰彇闂ㄥ簵璇︽儏
export const getShopDetail = (data) => {
return request({
- url: '/web/customer/shopDetail',
+ url: '/web/personnel/shopDetail?shopId='+data,
data
})
}
@@ -99,4 +181,11 @@
url: '/web/customer/logOff',
data
})
-}
\ No newline at end of file
+}
+// 灏忕▼搴忔敞閿�
+export const getCrmAuthUrl = (data) => {
+ return request({
+ url: '/web/customer/getCrmAuthUrl',
+ data
+ })
+}
--
Gitblit v1.9.3