From 45faaf27722588e92050e2e3eace9b3704377048 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期六, 02 四月 2022 18:44:30 +0800 Subject: [PATCH] 首页接口 --- src/api/product.ts | 45 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/api/product.ts b/src/api/product.ts index 2c49eef..f4c1e9e 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 }) @@ -261,3 +260,37 @@ params: params }) } + +//鑾峰彇杞挱鍥� +export const getIndexPics = () => { + return request({ + url: `/saas/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: `/saas/api-i/saasIndex/getIndexModelRecommend`, + method: 'post', + data, + }) +} + +//鑾峰彇棣栭〉妯″潡 +export const getModelList = () => { + return request({ + url: `/saas/api-i/saasIndex/getModelList`, + method: 'get', + }) +} \ No newline at end of file -- Gitblit v1.8.0