✨ feat(购物页面): 已完成页面逻辑,等待对接接口

This commit is contained in:
xuan
2022-09-16 19:06:00 +08:00
parent c2fa0766aa
commit ad32aa5773
13 changed files with 424 additions and 184 deletions
+2
View File
@@ -9,6 +9,8 @@ export {
FindColorListApi,
} from './product/index'
export { ShoppingCartUpdateApi, ShoppingCartDeleteApi, ShoppingCartListApi } from './shopping/index'
import { useRequest } from '@/use/useHttp'
/**
* 系列列表
+31
View File
@@ -0,0 +1,31 @@
import { useRequest } from "@/use/useHttp"
/**
* 修改购物车
* @returns
*/
export const ShoppingCartUpdateApi = () => {
return useRequest({
url: `/v1/mp/shoppingCart/productColor`,
method: 'put',
})
}
/**
* 删除购物车商品
* @returns
*/
export const ShoppingCartDeleteApi = () => {
return useRequest({
url: `/v1/mp/shoppingCart/productColor`,
method: "delete",
})
}
/**
* 获取购物车商品列表
* @returns
*/
export const ShoppingCartListApi = () => {
return useRequest({
url: `/v1/mp/shoppingCart/productColor`,
method: "get",
})
}