Commit 9e73da68 authored by 卢均锐's avatar 卢均锐

feat: 修改c端装修活动开关添加活动逻辑

-从推荐商品前插入活动
parent 47a498ef
......@@ -29,7 +29,8 @@ const MarketingSwitch: React.FC<MarketingSwitchProps> = (props: any) => {
let _pageConfig: any = { ...pageConfig }
const _marketingConfig = MarketingConfigs[`marketingConfig_${type}`];
_pageConfig = cloneDeep({ ..._pageConfig, ..._marketingConfig });
_pageConfig['0'].childNodes?.push(`11-${type}`);
const _insertIndex = _pageConfig['0'].childNodes.indexOf('10');
_pageConfig['0'].childNodes?.splice(_insertIndex, 0, `11-${type}`);
updatePageConfig(_pageConfig);
} else {
const _type = `11-${type}`;
......
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