ZZJ
2022-04-02 45faaf27722588e92050e2e3eace9b3704377048
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',
    })
}