Commit d8846e3b authored by 卢均锐's avatar 卢均锐

chore: 修改page/pageCustomized/components & mobileClientEdit文件夹下的接口引入

parent 66eb3198
......@@ -6,7 +6,7 @@ import { StandardTable } from 'god';
import * as tableSchemas from './schema';
import { PublicApi } from '@/services/api';
import { getTemplateWebActivityPageListAdorn } from '@/services/Template2Api';
import { formatTimeString } from '@/utils';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
......@@ -102,7 +102,7 @@ const ActivityDrawer: React.FC<ActivityDrawerProps> = (props: ActivityDrawerProp
const fetchTableData = async (params: any) => {
const _params = { ...params, environment, type, shopId };
const { data } = await PublicApi.getTemplateWebActivityPageListAdorn(_params);
const { data } = await getTemplateWebActivityPageListAdorn(_params);
return data;
};
const rowSelection: any = {
......
import { PublicApi } from '@/services/api';
import { getSearchCommodityTemplateGetBrandList,getSearchCommodityTemplateGetFirstCategoryListByMemberId } from '@/services/SearchV2Api';
// 高级筛选schema中用于输入搜索品牌的Effect
......@@ -8,7 +9,7 @@ export const searchBrandOptionEffect = (
fieldName: string,
) => {
context.getFieldState(fieldName, state => {
PublicApi.getSearchCommodityTemplateGetBrandList({
getSearchCommodityTemplateGetBrandList({
current: '1',
pageSize: '100',
name: state.props['x-component-props'].searchValue,
......@@ -31,10 +32,10 @@ export const searchCustomerCategoryOptionEffect = (
fieldName: string,
) => {
context.getFieldState(fieldName, state => {
PublicApi.getSearchCommodityTemplateGetFirstCategoryListByMemberId({
getSearchCommodityTemplateGetFirstCategoryListByMemberId({
shopId,
}).then(res => {
// PublicApi.getProductPlatformGetCategoryTree().then(res => {
// getProductPlatformGetCategoryTree().then(res => {
context.setFieldState(fieldName, state => {
state.props['x-component-props'].dataoption = res.data?.map(item => {
return { title: item.name, id: item.id };
......
......@@ -8,7 +8,7 @@ import styles from './index.less';
import CommoditySchema from './schema';
import { searchBrandOptionEffect, searchCustomerCategoryOptionEffect } from './effect';
import { PublicApi } from '@/services/api';
import { getMarketingAdornGoodsListAdorn } from '@/services/MaketingV2Api';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import Search from '@/components/NiceForm/components/Search';
......@@ -143,7 +143,7 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
...filterParam
};
console.log(_params, filterParam, '_params')
const { data } = await PublicApi.getMarketingAdornGoodsListAdorn(_params);
const { data } = await getMarketingAdornGoodsListAdorn(_params);
setExpandedRowKeys(data?.data?.map((item) => item.id) || []);
return data;
};
......
......@@ -6,7 +6,7 @@ import { StandardTable } from 'god';
import * as tableSchemas from './schema';
import { PublicApi } from '@/services/api';
import { getMarketingCouponPlatformActivityPageSelectPage, getMarketingCouponPlatformActivityPageSelectMerchantPage } from '@/services/MaketingV2Api';
import { formatTimeString } from '@/utils';
import { priceFormat } from '@/utils/numberFomat';
import { FORM_FILTER_PATH } from '@/formSchema/const';
......@@ -130,10 +130,10 @@ const CouponsDrawer: React.FC<CouponsDrawerProps> = (props: CouponsDrawerProps)
let _fetch: any;
switch (type) {
case 1:
_fetch = PublicApi.getMarketingCouponPlatformActivityPageSelectPage
_fetch = getMarketingCouponPlatformActivityPageSelectPage
break;
case 2:
_fetch = PublicApi.getMarketingCouponPlatformActivityPageSelectMerchantPage
_fetch = getMarketingCouponPlatformActivityPageSelectMerchantPage
break;
}
const { data } = await _fetch(_params);
......
......@@ -7,7 +7,10 @@ import { GlobalConfig } from '@/global/config'
import styles from './index.less';
import { priceFormat } from '@/utils/numberFomat';
import { PublicApi } from '@/services/api';
import { getManageShopListAdorn, getManageContentInformationListAdorn } from '@/services/PlatformApi';
import { getProductCommodityGetPlatformCommodityList } from '@/services/Product2Api';
import { postSearchCommodityTemplateGetCommodityList, getSearchCommodityTemplateGetBrandList } from '@/services/SearchV2Api';
import { getTemplateWebMemberShopWebMemberShopListAdorn } from '@/services/Template2Api';
interface MixDrawerProps {
......@@ -85,7 +88,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
if (keyWord) {
_params.name = keyWord;
}
_fetch = PublicApi.getManageShopListAdorn;
_fetch = getManageShopListAdorn;
break;
case 3:
if (keyWord) {
......@@ -95,12 +98,12 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params.priceType = 3;
_params.status = 5;
_fetch = PublicApi.getProductCommodityGetPlatformCommodityList;
_fetch = getProductCommodityGetPlatformCommodityList;
} else {
_params.priceTypeList = [3];
_params.idNotInList = selectId;
_params.shopId = getPointMallId()
_fetch = PublicApi.postSearchCommodityTemplateGetCommodityList;
_fetch = postSearchCommodityTemplateGetCommodityList;
}
break;
......@@ -108,7 +111,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
if (keyWord) {
_params.memberName = keyWord;
}
_fetch = PublicApi.getTemplateWebMemberShopWebMemberShopListAdorn;
_fetch = getTemplateWebMemberShopWebMemberShopListAdorn;
break;
// 资讯
case 5:
......@@ -119,7 +122,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params.shopId = shopId;
_params.idNotInList = selectId;
}
_fetch = PublicApi.getManageContentInformationListAdorn;
_fetch = getManageContentInformationListAdorn;
break;
// 品牌
case 6:
......@@ -128,7 +131,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
}
_params.shopId = shopId;
_params.idNotInList = selectId;
_fetch = PublicApi.getSearchCommodityTemplateGetBrandList;
_fetch = getSearchCommodityTemplateGetBrandList;
break;
}
_fetch && _fetch(_params).then((res) => {
......
import React, { useCallback, useState } from 'react';
import { Modal, Button, message } from 'antd';
import { ArrowLeftOutlined, SaveOutlined } from '@ant-design/icons';
import { PublicApi } from '@/services/api';
import { postTemplateAdornAppEnterpriseSave } from '@/services/Template2Api';
import { STATE_PROPS, PageConfigType, PROPS_SETTING_TYPES } from '@lingxi-disign/core';
import { useSelector } from '@lingxi-disign/react';
......@@ -54,7 +54,7 @@ const ToolBar: React.FC<ToolBarPropsType> = (props) => {
const saveAppEnterprise = (param) => {
setSaveLoading(true);
PublicApi.postTemplateAdornAppEnterpriseSave(param).then(res => {
postTemplateAdornAppEnterpriseSave(param).then(res => {
if (res.code === 1000) {
message.destroy();
message.success("保存成功");
......
......@@ -2,7 +2,7 @@
import React, { useCallback, useState } from 'react';
import { Modal, Button, message } from 'antd';
import { ArrowLeftOutlined, SaveOutlined } from '@ant-design/icons';
import { PublicApi } from '@/services/api';
import { postTemplateAdornWebPlatformSave } from '@/services/Template2Api';
import {
// selectComponent,
STATE_PROPS,
......@@ -224,7 +224,7 @@ const PlatformToolBar: React.FC<ToolBarPropsType> = (props) => {
templateId,
list: configList
};
PublicApi.postTemplateAdornWebPlatformSave(param).then((res) => {
postTemplateAdornWebPlatformSave(param).then((res) => {
if (res.code === 1000) {
message.destroy();
message.success('保存成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment