weixin_52219567 2 mesiacov pred
rodič
commit
412aff663e

+ 82 - 0
src/api/home/index-fuli.ts

@@ -0,0 +1,82 @@
+import request from '@/utils/request';
+
+// 获取福利分类(福利装修-分类管理)
+export function getGiftCategoryList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getGiftCategoryList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 轮播广告(福利装修-轮播广告)
+export function getHomeAdList(query: any) {
+  return request({
+    url: '/system/benefitsSystem/getHomeAdList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 会员权益
+export function getIconAdList(query: any) {
+  return request({
+    url: '/system/benefitsSystem/getIconAdList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 咨询
+export function getNoticeList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getNoticeList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 推荐广告(福利装修-推荐广告)场景采购
+export function getRecommendAdList(query: any) {
+  return request({
+    url: '/system/benefitsSystem/getRecommendAdList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 热门定制(福利装修-热门定制)
+export function getHotCustomGiftFloorList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getHotCustomGiftFloorList',
+    method: 'get',
+    params: query
+  });
+}
+
+//循环
+export function getAdvertisementGiftFloorList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getAdvertisementGiftFloorList',
+    method: 'get',
+    params: query
+  });
+}
+
+//循环-商品
+export function getGiftFloorLinkProductList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getGiftFloorLinkProductList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 为你推荐(福利装修-为你推荐)
+export function getRecommendGiftFloorList(query: any) {
+  return request({
+    url: '/product/benefitsProduct/getRecommendGiftFloorList',
+    method: 'get',
+    params: query
+  });
+}

+ 95 - 0
src/api/home/index-mro.ts

@@ -0,0 +1,95 @@
+import request from '@/utils/request';
+
+// 头部分类
+export function getProductCategoryTree(query: any) {
+  return request({
+    url: '/product/industryProduct/getProductCategoryTree',
+    method: 'get',
+    params: query
+  });
+}
+
+// 头部轮播
+export function getHomeAdList(query: any) {
+  return request({
+    url: '/system/industrySystem/getHomeAdList',
+    method: 'get',
+    params: query
+  });
+}
+
+//头部会员权益
+export function getHomeIconAd(query: any) {
+  return request({
+    url: '/system/industrySystem/getHomeIconAd',
+    method: 'get',
+    params: query
+  });
+}
+
+//轮播展位商品(工业装修-轮播展位商品)
+export function getCarouselDisplayProductList(query: any) {
+  return request({
+    url: '/product/industryProduct/getCarouselDisplayProductList',
+    method: 'get',
+    params: query
+  });
+}
+
+//商业标签(工业装修-商业标签)
+
+export function getBusinessLabelList(query: any) {
+  return request({
+    url: '/system/industrySystem/getBusinessLabelList',
+    method: 'get',
+    params: query
+  });
+}
+
+//循环
+
+export function getIndustrialFloor(query: any) {
+  return request({
+    url: '/product/industryProduct/getIndustrialFloor',
+    method: 'get',
+    params: query
+  });
+}
+
+//循环-商品
+
+export function getIndustrialFloorProductList(query: any) {
+  return request({
+    url: '/product/industryProduct/getIndustrialFloorProductList',
+    method: 'get',
+    params: query
+  });
+}
+
+//循环-品牌
+
+export function getIndustrialFloorBrand(query: any) {
+  return request({
+    url: '/product/industryProduct/getIndustrialFloorBrand',
+    method: 'get',
+    params: query
+  });
+}
+
+//为你推荐-分类
+export function getRecommendedCategory(query: any) {
+  return request({
+    url: '/product/industryProduct/getRecommendedCategory',
+    method: 'get',
+    params: query
+  });
+}
+
+//为你推荐-商品
+export function getRecommendedCategoryProductList(query: any) {
+  return request({
+    url: '/product/industryProduct/getRecommendedCategoryProductList',
+    method: 'get',
+    params: query
+  });
+}

+ 12 - 1
src/api/pc/enterprise/order.ts

@@ -29,7 +29,7 @@ export function getOrderStatusStats() {
  */
 export function getOrderInfo(id: number) {
   return request({
-    url: `/pc/enterprise/order/${id}`,
+    url: `/order/pcOrder/${id}`,
     method: 'get'
   });
 }
@@ -77,3 +77,14 @@ export function deleteOrder(ids: number[]) {
     method: 'delete'
   });
 }
+
+/**
+ * 订单支付
+ */
+export const orderPay = (params: any) => {
+  return request({
+    url: '/order/pcOrder/orderPay',
+    method: 'post',
+    data: params
+  });
+};

+ 118 - 0
src/api/plan/index.ts

@@ -0,0 +1,118 @@
+import request from '@/utils/request';
+
+// 采购方案列表
+export function getProcurementProgramList(query: any) {
+  return request({
+    url: '/product/indexProduct/getProcurementProgramList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 采购方案详情
+export function getProcurementProgramDetail(id: any) {
+  return request({
+    url: '/product/indexProduct/getProcurementProgramDetail/' + id,
+    method: 'get'
+  });
+}
+
+// 获取采购方案下的分组
+export function getProcurementProgramGroupList(id: any) {
+  return request({
+    url: '/product/indexProduct/getProcurementProgramGroupList/' + id,
+    method: 'get'
+  });
+}
+
+// 获取采购方案分组下的商品
+export function getProcurementProgramGroupProductList(query: any) {
+  return request({
+    url: '/product/indexProduct/getProcurementProgramGroupProductList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 采购分类列表
+export function getPurchaseCategoryList(query: any) {
+  return request({
+    url: '/system/indexSystem/getPurchaseCategoryList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 客户行业
+export function getCustomerIndustry(query: any) {
+  return request({
+    url: '/customer/indexCustomer/getCustomerIndustry',
+    method: 'get',
+    params: query
+  });
+}
+
+// 适配场景列表
+export function getAdaptSceneList(query: any) {
+  return request({
+    url: '/system/indexSystem/getAdaptSceneList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 获取价格区间列表
+export function getPriceRangeList(query: any) {
+  return request({
+    url: '/system/indexSystem/getPriceRangeList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 推荐标签
+export function getCustomerTag(query: any) {
+  return request({
+    url: '/customer/indexCustomer/getCustomerTag',
+    method: 'get',
+    params: query
+  });
+}
+
+// 采购指南列表
+
+export function getPurchaseGuideList(query: any) {
+  return request({
+    url: '/product/indexProduct/getPurchaseGuideList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 采购指南详情
+
+export function getPurchaseGuideDetail(id: any) {
+  return request({
+    url: '/product/indexProduct/getPurchaseGuideDetail/' + id,
+    method: 'get'
+  });
+}
+
+// 项目案例列表
+
+export function getProjectCaseAllList(query: any) {
+  return request({
+    url: '/product/indexProduct/getProjectCaseAllList',
+    method: 'get',
+    params: query
+  });
+}
+
+// 项目案例详情
+
+export function getProjectCaseDetail(id: any) {
+  return request({
+    url: '/product/indexProduct/getProjectCaseDetail/' + id,
+    method: 'get'
+  });
+}