weixin_52219567 2 miesięcy temu
rodzic
commit
103ff772c9

+ 13 - 2
src/api/goods/index.ts

@@ -20,10 +20,11 @@ export const addProductShoppingCart = (params: any) => {
 
 //查询购物车的商品
 
-export const shoppingCartList = (params: any) => {
+export const shoppingCartList = (query: any) => {
   return request({
     url: '/product/myProduct/getProductShoppingCartPage',
-    method: 'get'
+    method: 'get',
+    params: query
   });
 };
 
@@ -82,3 +83,13 @@ export const cancelProductCollect = (query: any) => {
     params: query
   });
 };
+
+//取消收藏
+
+export const pcOrdersubmit = (params: any) => {
+  return request({
+    url: '/order/pcOrder/submit',
+    method: 'post',
+    data: params
+  });
+};

+ 9 - 0
src/api/search/index.ts

@@ -8,3 +8,12 @@ export const getPcProductPage = (query: any) => {
     params: query
   });
 };
+
+//查询顶级分类下的的品牌列表
+export const getBrandPage = (query: any) => {
+  return request({
+    url: '/product/indexProduct/getBrandPage',
+    method: 'get',
+    params: query
+  });
+};

BIN
src/assets/images/cart1.png


BIN
src/assets/images/item1.png