mark
2022-10-25 f20a554bdb24e9dfde9dc6a69d78595944f61d15
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,55 @@
        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',
    })
}
//根据id查询产品
export const getProductById = (data: any) => {
    return request({
        url: `/saas/api-s/saasProduct/getProductById`,
        method: 'post',
        data
    })
}