From c3152a35ed1cd9364f92d183a9cb0aba620f5650 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期一, 06 六月 2022 17:21:29 +0800
Subject: [PATCH] 处理场景数量异常的情况
---
src/api/product.ts | 55 ++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 48 insertions(+), 7 deletions(-)
diff --git a/src/api/product.ts b/src/api/product.ts
index 2c49eef..d605cad 100644
--- a/src/api/product.ts
+++ b/src/api/product.ts
@@ -1,4 +1,4 @@
-import request from "./index"
+import request from "@/scripts/httpRequest";
import qs from "qs";
// 鏌ヨ浜у搧涓績鍒楄〃
@@ -41,11 +41,10 @@
// 鑾峰彇鏍囩瀛楀吀
// param:type
-export const findDicByType = (params: any) => {
+export const findDicByType = () => {
return request({
- url: "/data/api-s/dic/findDicByType",
+ url: "/saas/api-s/saasProduct/getProductType?scope=",
method: "get",
- params: params
});
};
@@ -80,7 +79,7 @@
*/
export const findAllCenterProduct = (params: any) => {
return request({
- url: "/data/api-s/product/findAllCenterProduct",
+ url: "/saas/api-s/saasProduct/findAllCenterProduct",
method: "post",
data: params
})
@@ -120,7 +119,7 @@
*/
export const getReleaseProduct = (params: any) => {
return request({
- url: "/data/api-s/product/getAllProductMenu",
+ url: "/saas/api-s/saasProduct/getAllProductMenu",
method: "get",
params: params
})
@@ -129,7 +128,7 @@
//鏍规嵁璁㈠崟id鏌ヨ璁㈠崟璇︽儏
export const getOrderById = (id: string) => {
return request({
- url: `/data/api-s/order/show/${id}`,
+ url: `/saas/api-s/saasOrder/show/${id}`,
method: 'get'
})
}
@@ -261,3 +260,45 @@
params: params
})
}
+
+//鑾峰彇杞挱鍥�
+export const getIndexPics = () => {
+ return request({
+ url: `/cloud/api-i/saasIndex/getIndexPics`,
+ method: 'get',
+ })
+}
+
+//鑾峰彇浜у搧璇︽儏
+export const selectProductById = (data: any) => {
+ return request({
+ url: `/saas/api-s/saasProduct/selectProductById`,
+ method: 'post',
+ data,
+ })
+}
+
+//鑾峰彇鎺ㄨ崘绠楁硶
+export const getIndexModelRecommend = (data: any) => {
+ return request({
+ url: `/cloud/api-i/saasIndex/getIndexModelRecommend`,
+ method: 'post',
+ data,
+ })
+}
+
+//鑾峰彇棣栭〉妯″潡
+export const getModelList = () => {
+ return request({
+ url: `/cloud/api-i/saasIndex/getModelList`,
+ method: 'get',
+ })
+}
+
+//璇曠敤涓績
+export const getFreeList = () => {
+ return request({
+ url: `/saas/api-s/saasProduct/getFreeList`,
+ method: 'post',
+ })
+}
\ No newline at end of file
--
Gitblit v1.8.0