对接确认订单

This commit is contained in:
2022-05-16 19:14:09 +08:00
parent 91934d0905
commit 754b3330a9
17 changed files with 761 additions and 142 deletions
+10
View File
@@ -45,3 +45,13 @@ export const GetProductDetailApi = () => {
})
}
/**
* 根据LAB匹配色卡基础资料
* @returns
*/
export const GetLabProductApi = () => {
return useRequest({
url: `/v1/mall/product/color/absorb/match`,
method: "get",
})
}
+24 -2
View File
@@ -3,9 +3,31 @@ import { useRequest } from "@/use/useHttp"
/**
* 获取热门搜索
*/
export const getHotSearchApi = () => {
export const GetHotSearchApi = () => {
return useRequest({
url: `/v1/mall/hotSearch`,
url: `/v1/mall/hotSearch/list`,
method: "get",
})
}
/**
* 获取历史搜索
*/
export const GetSearchHistoryApi = () => {
return useRequest({
url: `/v1/mall/searchHistory/list`,
method: "get",
})
}
/**
* 添加搜索关键字
*/
export const AddSearchHistoryApi = () => {
return useRequest({
url: `/v1/mall/searchHistory`,
method: "post",
})
}