Commit 3ff2dd5d authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents c6694291 2f088a76
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-30 19:38:32
* @LastEditTime: 2021-09-07 15:24:26
* @Description: 退款明细
*/
import React, { useState } from 'react';
......@@ -360,7 +360,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
</Descriptions.Item>
<Descriptions.Item label="支付环节">{item.payNode}</Descriptions.Item>
<Descriptions.Item label="已支付金额(元)">{item.payAmount}</Descriptions.Item>
<Descriptions.Item label="支付比例">{item.payRatio}%</Descriptions.Item>
<Descriptions.Item label="支付比例">{item.payRatio * 100}%</Descriptions.Item>
<Descriptions.Item label="退款金额(元)">{item.refundAmount}</Descriptions.Item>
<Descriptions.Item label="支付方式">{item.payWayName}</Descriptions.Item>
<Descriptions.Item label="退款时间">{item.refundTime}</Descriptions.Item>
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-07 10:02:55
* @LastEditTime: 2021-09-07 15:22:20
* @Description: 查看退货数量与退款金额 抽屉
*/
import React, { useEffect, useState } from 'react';
......@@ -194,7 +194,10 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
if (!applyInfo || !applyInfo.orderId) {
return;
}
let payList = applyInfo.payList || [];
let payList = applyInfo.payList ? applyInfo.payList.map((item) => ({
...item,
payRatio: item.payRatio * 100,
})) : [];
setPayInfoLoading(true);
try {
// 编辑状态才请求支付信息,否则默认取申请信息里边的支付信息
......
......@@ -125,6 +125,14 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<LayoutOutlined />
<label>渠道商城装修</label>
</div>
{
detailInfo?.environment === 4 && (
<div className={cx(styles.btn, styles.fit)}>
<LayoutOutlined />
<label>渠道品类导航装修</label>
</div>
)
}
<div className={cx(styles.btn, detailInfo?.use === 1 ? styles.use : '')} onClick={() => detailInfo?.use !== 1 ? setUseModalVisible(true) : {}}>
<PushpinOutlined />
<label>{detailInfo?.use === 1 ? '使用中' : '使用'}</label>
......
......@@ -7,7 +7,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom';
import { ColumnsType } from 'antd/es/table';
import { GetMarketingPlatformActivityListAdornResponseDetail } from '@/services/MaketingV2Api';
import { GetMarketingAdornMerchantActivityListAdornResponseDetail } from '@/services/MarketingApi';
import StatusTag from '@/components/StatusTag';
import schema from './schema';
import styles from './activityProductDrawer.less';
......@@ -31,7 +31,7 @@ type SubmitType = {
activityName: string,
}
const columns: ColumnsType<GetMarketingPlatformActivityListAdornResponseDetail["productList"][0]> = [
const columns: ColumnsType<GetMarketingAdornMerchantActivityListAdornResponseDetail["goodsList"][0]> = [
{
title: '商品信息',
dataIndex: 'productInfo',
......@@ -91,11 +91,11 @@ const ActivityProductDrawer: React.FC<Iprops> = (props: Iprops) => {
const { visible, onCancel, fetchData = null, onOk, products = [], activityImage, mode = 'checked' } = props;
const [current, setPage] = useState<number>(1);
const [currentPageSize, setPageSize] = useState<number>(10);
const [dataSource, setDataSource] = useState<GetMarketingPlatformActivityListAdornResponseDetail[]>([]);
const [dataSource, setDataSource] = useState<GetMarketingAdornMerchantActivityListAdornResponseDetail[]>([]);
const [totalCount, setTotalCount] = useState<number>(0);
const [selectedKey, setSelectKey] = useState<number | null>(null);
const [selectedActivityProductList, setSelectedActivityProductList] = useState<GetMarketingPlatformActivityListAdornResponseDetail["productList"]>();
const [checkedProduct, setCheckedProduct] = useState<GetMarketingPlatformActivityListAdornResponseDetail["productList"]>([]);
const [selectedActivityProductList, setSelectedActivityProductList] = useState<GetMarketingAdornMerchantActivityListAdornResponseDetail["goodsList"]>();
const [checkedProduct, setCheckedProduct] = useState<GetMarketingAdornMerchantActivityListAdornResponseDetail["goodsList"]>([]);
const [loading, setLoading] = useState<boolean>(false);
const selectedRowKeys = useMemo(() => checkedProduct.map((_item) => `${_item.activityId!}-${_item.id!}`), [checkedProduct]);
......@@ -148,14 +148,14 @@ const ActivityProductDrawer: React.FC<Iprops> = (props: Iprops) => {
const onSelect = (id: number) => {
setSelectKey(id);
const target = dataSource.filter((_item) => _item.id === id)[0];
setSelectedActivityProductList(target.productList);
setSelectedActivityProductList(target.goodsList);
};
const handleOk = () => {
onOk?.(checkedProduct);
};
const handleRowSelect = (record: GetMarketingPlatformActivityListAdornResponseDetail["productList"][0], selected: boolean, selectedRows: GetMarketingPlatformActivityListAdornResponseDetail["productList"]) => {
const handleRowSelect = (record: GetMarketingAdornMerchantActivityListAdornResponseDetail["goodsList"][0], selected: boolean, selectedRows: GetMarketingAdornMerchantActivityListAdornResponseDetail["goodsList"]) => {
if (mode === 'checked') {
if (selected) {
setCheckedProduct((prev) => prev.concat(record));
......
......@@ -113,10 +113,6 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
);
}
},
{
title: '商家名称',
dataIndex: 'memberName',
},
]
const _onConfirm = () => {
......@@ -140,6 +136,7 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
if (selectId) {
_params.idNotInList = Array.isArray(selectId) ? selectId : [selectId]
}
console.log(_params, '_params')
const { data } = await PublicApi.getMarketingAdornGoodsListAdorn(_params);
setExpandedRowKeys(data?.data?.map((item) => item.id) || []);
return data;
......
......@@ -543,8 +543,480 @@ export const paramsShop = (
let childNodes: ChildNodesType | undefined = undefined
let tempProps: any = undefined
switch (childKey) {
case '1':
case '3':
propsData = get(pageConfig, ['3', 'props']) || {}
childNodes = get(pageConfig, ['3', 'childNodes']) || {}
_params.adornContent.advert = {
style: propsData.styleTheme || 0,
status: true,
details: []
}
if (childNodes && Array.isArray(childNodes) && childNodes.length > 0) {
for (let key in childNodes) {
tempProps = pageConfig[childNodes[key]]?.props || {}
!isEmpty(tempProps) && _params.adornContent.advert.details.push({
id: tempProps.id,
name: tempProps.name,
type: tempProps.type,
img: tempProps.img,
});
}
}
break
case '5':
propsData = get(pageConfig, ['5', 'props']) || {}
childNodes = get(pageConfig, ['5', 'childNodes']) || {}
_params.adornContent.navList = {
style: 0,
status: true,
details: []
}
if (childNodes && Array.isArray(childNodes) && childNodes.length > 0) {
for (let key in childNodes) {
tempProps = pageConfig[childNodes[key]]?.props || {}
!isEmpty(tempProps) && _params.adornContent.navList.details.push({
id: tempProps.id,
name: tempProps.name,
type: tempProps.type,
url: tempProps.url,
icon: tempProps.icon,
});
}
}
break
// case '6':
// propsData = get(pageConfig, ['6', 'props']) || {}
// childNodes = get(pageConfig, ['6', 'childNodes']) || {}
// _params.adornContent.commodity = {
// style: 0,
// status: true,
// details: []
// }
// if (childNodes && Array.isArray(childNodes) && childNodes.length > 0) {
// for (let key in childNodes) {
// tempProps = pageConfig[childNodes[key]]?.props || {}
// !isEmpty(tempProps) && _params.adornContent.commodity.details.push({
// title: tempProps.title,
// categoryId: tempProps.categoryId,
// idList: tempProps.idList,
// manageWay: tempProps.manageWay,
// num: tempProps.num,
// })
// }
// }
// break
case '11-1':
_params.adornContent.specialOffer = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-1-1']?.props?.title,
explain: pageConfig['11-1-1']?.props?.explain,
icon: pageConfig['11-1-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-1-2'].childNodes?.length) {
const _list = pageConfig['11-1-2'].childNodes;
for (let key in _list) {
_params.adornContent.specialOffer.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-2':
_params.adornContent.plummet = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-2-1']?.props?.title,
explain: pageConfig['11-2-1']?.props?.explain,
icon: pageConfig['11-2-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-2-2'].childNodes?.length) {
const _list = pageConfig['11-2-2'].childNodes;
for (let key in _list) {
_params.adornContent.plummet.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-3':
_params.adornContent.fullQuantitySub = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-3-1']?.props?.title,
explain: pageConfig['11-3-1']?.props?.explain,
icon: pageConfig['11-3-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-3-2'].childNodes?.length) {
const _list = pageConfig['11-3-2'].childNodes;
for (let key in _list) {
_params.adornContent.fullQuantitySub.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-4':
_params.adornContent.discount = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-4-1']?.props?.title,
explain: pageConfig['11-4-1']?.props?.explain,
icon: pageConfig['11-4-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-4-2'].childNodes?.length) {
const _list = pageConfig['11-4-2'].childNodes;
for (let key in _list) {
_params.adornContent.discount.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-5':
_params.adornContent.fullQuantityDiscount = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-5-1']?.props?.title,
explain: pageConfig['11-5-1']?.props?.explain,
icon: pageConfig['11-5-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-5-2'].childNodes?.length) {
const _list = pageConfig['11-5-2'].childNodes;
for (let key in _list) {
_params.adornContent.fullQuantityDiscount.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-6':
_params.adornContent.fullMoneySub = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-6-1']?.props?.title,
explain: pageConfig['11-6-1']?.props?.explain,
icon: pageConfig['11-6-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-6-2'].childNodes?.length) {
const _list = pageConfig['11-6-2'].childNodes;
for (let key in _list) {
_params.adornContent.fullMoneySub.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-7':
_params.adornContent.fullMoneyDiscount = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-7-1']?.props?.title,
explain: pageConfig['11-7-1']?.props?.explain,
icon: pageConfig['11-7-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-7-2'].childNodes?.length) {
const _list = pageConfig['11-7-2'].childNodes;
for (let key in _list) {
_params.adornContent.fullMoneyDiscount.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-8':
_params.adornContent.giveProduct = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-8-1']?.props?.title,
explain: pageConfig['11-8-1']?.props?.explain,
icon: pageConfig['11-8-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-8-2'].childNodes?.length) {
const _list = pageConfig['11-8-2'].childNodes;
for (let key in _list) {
_params.adornContent.giveProduct.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-9':
_params.adornContent.giveCoupon = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-9-1']?.props?.title,
explain: pageConfig['11-9-1']?.props?.explain,
icon: pageConfig['11-9-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-9-2'].childNodes?.length) {
const _list = pageConfig['11-9-2'].childNodes;
for (let key in _list) {
_params.adornContent.giveCoupon.details.id.push({
id: pageConfig[_list[key]]?.props?.id,
belongType: pageConfig[_list[key]]?.props?.belongType,
});
}
}
break;
case '11-10':
_params.adornContent.morePiece = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-10-1']?.props?.title,
explain: pageConfig['11-10-1']?.props?.explain,
icon: pageConfig['11-10-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-10-2'].childNodes?.length) {
const _list = pageConfig['11-10-2'].childNodes;
for (let key in _list) {
_params.adornContent.morePiece.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-11':
_params.adornContent.combination = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-11-1']?.props?.title,
explain: pageConfig['11-11-1']?.props?.explain,
icon: pageConfig['11-11-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-11-2'].childNodes?.length) {
const _list = pageConfig['11-11-2'].childNodes;
for (let key in _list) {
_params.adornContent.combination.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-12':
_params.adornContent.secKill = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-12-1']?.props?.title,
explain: pageConfig['11-12-1']?.props?.explain,
icon: pageConfig['11-12-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-12-2'].childNodes?.length) {
const _list = pageConfig['11-12-2'].childNodes;
for (let key in _list) {
_params.adornContent.secKill.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-14':
_params.adornContent.fullSwap = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-14-1']?.props?.title,
explain: pageConfig['11-14-1']?.props?.explain,
icon: pageConfig['11-14-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-14-2'].childNodes?.length) {
const _list = pageConfig['11-14-2'].childNodes;
for (let key in _list) {
_params.adornContent.fullSwap.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-13':
_params.adornContent.groupPurchase = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-13-1']?.props?.title,
explain: pageConfig['11-13-1']?.props?.explain,
icon: pageConfig['11-13-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-13-2'].childNodes?.length) {
const _list = pageConfig['11-13-2'].childNodes;
for (let key in _list) {
_params.adornContent.groupPurchase.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-15':
_params.adornContent.buySwap = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-15-1']?.props?.title,
explain: pageConfig['11-15-1']?.props?.explain,
icon: pageConfig['11-15-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-15-2'].childNodes?.length) {
const _list = pageConfig['11-15-2'].childNodes;
for (let key in _list) {
_params.adornContent.buySwap.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-16':
_params.adornContent.preSale = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-16-1']?.props?.title,
explain: pageConfig['11-16-1']?.props?.explain,
icon: pageConfig['11-16-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-16-2'].childNodes?.length) {
const _list = pageConfig['11-16-2'].childNodes;
for (let key in _list) {
_params.adornContent.preSale.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-17':
_params.adornContent.attempt = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-17-1']?.props?.title,
explain: pageConfig['11-17-1']?.props?.explain,
icon: pageConfig['11-17-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-17-2'].childNodes?.length) {
const _list = pageConfig['11-17-2'].childNodes;
for (let key in _list) {
_params.adornContent.attempt.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
case '11-18':
_params.adornContent.setMeal = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-18-1']?.props?.title,
explain: pageConfig['11-18-1']?.props?.explain,
icon: pageConfig['11-18-1']?.props?.icon,
id: pageConfig['11-18-1']?.props?.id,
},
};
break;
case '11-19':
_params.adornContent.bargain = {
sort: 1,
style: 0,
status: true,
details: {
title: pageConfig['11-19-1']?.props?.title,
explain: pageConfig['11-19-1']?.props?.explain,
icon: pageConfig['11-19-1']?.props?.icon,
id: [],
},
};
if (pageConfig['11-19-2'].childNodes?.length) {
const _list = pageConfig['11-19-2'].childNodes;
for (let key in _list) {
_params.adornContent.bargain.details.id.push(
pageConfig[_list[key]]?.props?.id,
);
}
}
break;
// 底部导航
case '10':
propsData = get(pageConfig, ['10', 'props']) || {}
childNodes = get(pageConfig, ['10', 'childNodes']) || {}
_params.adornContent.bottom = {
style: propsData.styleTheme || 0,
status: true,
details: []
}
if (childNodes && Array.isArray(childNodes) && childNodes.length > 0) {
for (let key in childNodes) {
tempProps = pageConfig[childNodes[key]]?.props || {}
!isEmpty(tempProps) && _params.adornContent.bottom.details.push({
defaultIcon: tempProps.defaultIcon,
selectIcon: tempProps.selectIcon,
name: tempProps.name,
type: tempProps.type,
});
}
}
break
}
......
import React, { useState, useEffect, useRef } from 'react';
import React, { useState, useEffect } from 'react';
import { history } from 'umi';
import { Input, Radio, Space, Button, Tag, Tooltip } from 'antd';
import { Button, Tooltip } from 'antd';
import cloneDeep from 'lodash/cloneDeep';
import { PlusOutlined } from '@ant-design/icons';
import { changeProps, updatePageConfig, PageConfigType } from '@lingxi-disign/core';
import StatusTag from '@/components/StatusTag'
import { PublicApi } from '@/services/api';
import { GetMarketingPlatformActivityListAdornRequest } from '@/services/MaketingV2Api';
import { GetMarketingAdornActivityGoodsAdornRequest } from '@/services/MarketingApi';
import ActivityProductDrawer from '@/pages/editor/components/drawer/activityProductDrawer/activityProductDrawer';
import ActivityImage from '@/assets/couponIcons/ActivityImage.svg';
......@@ -36,7 +35,7 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
useEffect(() => {
if (id && id != record[0]?.id) {
PublicApi.getMarketingAdornGoodsAdorn({ ids: id }).then((res) => {
PublicApi.postMarketingAdornActivityGoodsBatchAdorn({ ids: id }).then((res) => {
if (res.code === 1000) {
setRecord(res.data);
}
......@@ -46,13 +45,13 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
}
}, [id])
const fetchData = async (params: GetMarketingPlatformActivityListAdornRequest) => {
const fetchData = async (params: GetMarketingAdornActivityGoodsAdornRequest) => {
const common = {
...params,
shopId
};
const isWithActivityType = actType ? { ...common, activityType: actType } : common;
return await PublicApi.getMarketingAdornListAdorn(isWithActivityType as any);
return await PublicApi.getMarketingAdornMerchantActivityListAdorn(isWithActivityType as any);
};
const onOk = (data: any) => {
......@@ -61,42 +60,43 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
let _exData;
switch (actType) {
case 1:
_exData = { ..._data, img: _data.productImgUrl, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 2:
_exData = { ..._data, img: _data.productImgUrl, info: '直降60元', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '直降60元', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 3:
_exData = { ..._data, img: _data.productImgUrl, info: '5折起', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '5折起', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 4:
if (exType === 1) {
_exData = { ..._data, img: _data.productImgUrl, info: '满3件减50', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '满3件减50', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
} else {
_exData = { ..._data, img: _data.productImgUrl, info: '满3件8折', discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '满3件8折', discountPrice: priceFormat(_data.activityPrice), isnull: false }
}
break;
case 5:
if (exType === 1) {
_exData = { ..._data, img: _data.productImgUrl, info: '满100减10', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '满100减10', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
} else {
_exData = { ..._data, img: _data.productImgUrl, info: '满100打5折', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: '满100打5折', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
}
break;
case 6:
_exData = { ..._data, img: _data.productImgUrl, info: `原价${_data.price}元`, isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `原价${_data.price}元`, isnull: false }
break;
case 7:
_exData = { ..._data, img: _data.productImgUrl, info: `第2件5折`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `第2件5折`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 8:
_exData = { ..._data, img: _data.productImgUrl, info: `99元4件`, discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `99元4件`, discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 9:
_exData = {
..._data,
detail: {
title: _data.productName,
name: _data.productName,
img: _data.productImgUrl,
info: '打骨折',
originalPrice: priceFormat(_data.price),
......@@ -109,21 +109,22 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
}
break;
case 11:
_exData = { ..._data, img: _data.productImgUrl, info: `已送出 186 件`, discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `已送出 186 件`, discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 12:
_exData = { ..._data, img: _data.productImgUrl, direction: 'column', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, direction: 'column', originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 13:
_exData = { ..._data, img: _data.productImgUrl, info: `加20元换购`, isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `加20元换购`, isnull: false }
break;
case 14:
_exData = { ..._data, img: _data.productImgUrl, info: `10元抵100`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `10元抵100`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
case 15:
_exData = {
..._data,
detail: {
name: _data.productName,
img: _data.productImgUrl,
title: _data.productName,
discountPrice: priceFormat(_data.price),
......@@ -134,11 +135,12 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
}
break;
case 16:
_exData = { ..._data, img: _data.productImgUrl, info: `已送出 186 件`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
_exData = { ..._data, name: _data.productName, img: _data.productImgUrl, info: `已送出 186 件`, originalPrice: priceFormat(_data.price), discountPrice: priceFormat(_data.activityPrice), isnull: false }
break;
default:
break;
}
_exData.mode ='horizontal'
if (actType !== 15) {
changeProps({
title: _data.productName,
......@@ -177,6 +179,7 @@ const MarketingCardGood: React.FC<MarketingCardGoodProps> = (props: MarketingCar
componentName: 'MarketingCard.GoodsItem',
props: {
...child,
name: child.productName,
img: child.productImgUrl,
title: child.productName,
discountPrice: priceFormat(child.price),
......
......@@ -6,10 +6,8 @@
* @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/mobileTemplate/channelTemplateEdit/config.ts
*/
import { PROPS_SETTING_TYPES, PageConfigType } from '@lingxi-disign/core'
import { PageConfigType } from '@lingxi-disign/core'
import categoryNavTemplateDefault from '../shopTemplateEdit/img/category_template_default.png'
import styleThemeImgDefault from './imgs/style_theme_default.png'
import styleThemeImgScience from './imgs/style_theme_science.png'
import RED_PACKAGE from '../shopTemplateEdit/img/red_package.png';
export const defaultHeaderNavData = [
......@@ -194,190 +192,3 @@ export const defaultConfig: PageConfigType = {
},
},
}
export const mallLayoutConfig = {
key: "0",
"0": {
"componentName": "MallLayout",
"props": {
"style": {
"width": "100%",
"minHeight": "100%",
"background": "#F7F8FA",
"overflowX": "hidden",
"paddingBottom": "50px",
}
},
"childNodes": ["1", "2", "4", "5", "6", "7"]
},
}
export const mobileChannelHeaderNav = {
key: "1",
"1": {
"componentName": "MobileChannelHeaderNav",
"componentType": PROPS_SETTING_TYPES.mobileHeaderNav,
"title": "顶部导航栏",
"canEdit": true,
"canHide": false,
"props": {
styleTheme: 1,
dataList: [
{
name: "进货单",
content: "",
status: true,
},
{
name: "我的",
content: "",
status: true,
},
{
name: "搜索框",
content: "请输入商品名称或者品类",
status: true,
}
],
stylesThemeList: [
{
key: 0,
img: styleThemeImgDefault,
},
{
key: 1,
img: styleThemeImgScience,
}
]
},
}
}
export const divWrap = {
key: "2",
"2": {
"componentName": "div",
"props": {
"style": {
position: "relative",
marginTop: -48,
zIndex: 6,
}
},
"childNodes": ["3"]
}
}
export const mobileBanner = {
key: "3",
"3": {
"componentName": "MobileChannelBanner",
"componentType": "mobileChannelBanner",
"title": "轮播广告",
"canEdit": true,
"canHide": false,
"props": {
dataList: []
}
}
}
export const mobileChannelCategory = {
key: "4",
"4": {
"componentName": "MobileChannelCategory",
"componentType": PROPS_SETTING_TYPES.moibileChannelCategory,
"title": "商品品类",
"canEdit": false,
"canHide": false,
"props": {
dataList: []
}
}
}
export const mobileChannelGoodsCard = {
key: "5",
"5": {
"componentName": "MobileChannelGoodsCard",
"componentType": PROPS_SETTING_TYPES.mobileChannelGoodsCard,
"title": "推荐商品",
"canEdit": true,
"canHide": false,
"props": {
dataList: [
// {
// style: 0,
// title: "电气电工",
// viceTitle: "ELECTRICAL",
// },
// {
// style: 1,
// title: "机械设备",
// viceTitle: "EQUIPMENT",
// }
]
}
}
}
export const mobileChannelInformation = {
key: "6",
"6": {
"componentName": "MobileChannelInformation",
"componentType": PROPS_SETTING_TYPES.moibileChannelInformation,
"title": "行业资讯",
"canEdit": true,
"canHide": false,
"props": {
title: "行业资讯",
dataList: []
}
}
}
export const mobileBottomNavigation = {
key: "7",
"7": {
"componentName": "MobileBottomNavigation",
"componentType": PROPS_SETTING_TYPES.mobileBottomNavigation,
"title": "底部导航",
"canEdit": true,
"canHide": false,
"props": {
/** 类型:1-首页 2-积分 3-工作台 4-资讯 5-进货单 6-我的 */
dataList: [
{
name: "首页",
icon: "https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/f8d1c35d735e47c187d8c0b0e12830971612351028389.png",
type: 1,
status: false,
},
{
name: "积分",
icon: "https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/d4b7e96e136e4a2eade7e0d3e441eb611612351032370.png",
type: 2,
status: false,
},
{
name: "工作台",
icon: "https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/f8492d51f9234c43bf631e9f2482a6751612351036609.png",
type: 3,
status: false,
},
{
name: "进货单",
icon: "https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/50433de84ee046b19882e21c920b3f6b1612351040608.png",
type: 5,
status: false,
},
{
name: "我的",
icon: "https://shushangyun-lingxi.oss-cn-shenzhen.aliyuncs.com/aa76edefd91f4e82b4f8fa56e169cd3f1612351044724.png",
type: 6,
status: false,
}
]
}
}
}
......@@ -14,21 +14,35 @@ import MobileDesignPanel from '../../editor/components/MobileDesignPanel'
import MobileClientEditLeft from '../../editor/components/mobileClientEditLeft'
import { message } from 'antd'
import config from '../../editor/configs'
import { priceFormat } from '@/utils/numberFomat'
import * as MarketingConfigs from './marketing_config'
import { cloneDeep } from 'lodash'
import {
defaultHeaderNavData,
channelLayoutConfig,
defaultConfig,
mallLayoutConfig,
divWrap,
mobileChannelHeaderNav,
mobileBanner,
mobileChannelCategory,
mobileChannelGoodsCard,
mobileChannelInformation,
mobileBottomNavigation,
} from './config'
import {
marketingConfig_1,
marketingConfig_2,
marketingConfig_3,
marketingConfig_4,
marketingConfig_5,
marketingConfig_6,
marketingConfig_7,
marketingConfig_8,
marketingConfig_9,
marketingConfig_10,
marketingConfig_11,
marketingConfig_12,
marketingConfig_13,
marketingConfig_14,
marketingConfig_15,
marketingConfig_16,
marketingConfig_17,
marketingConfig_18,
marketingConfig_19,
} from './marketing_config'
import Loading from '../../editor/components/Loading'
import { PublicApi } from '@/services/api'
import { LAYOUT_TYPE } from '@/constants'
......@@ -221,6 +235,714 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
informationTitle: '8月钢市价格走势判断',
}
// 活动专区
let _other = {};
let _marketingConfig_1: any = cloneDeep(marketingConfig_1);
let _marketingConfig_2: any = cloneDeep(marketingConfig_2);
let _marketingConfig_3: any = cloneDeep(marketingConfig_3);
let _marketingConfig_4: any = cloneDeep(marketingConfig_4);
let _marketingConfig_5: any = cloneDeep(marketingConfig_5);
let _marketingConfig_6: any = cloneDeep(marketingConfig_6);
let _marketingConfig_7: any = cloneDeep(marketingConfig_7);
let _marketingConfig_8: any = cloneDeep(marketingConfig_8);
let _marketingConfig_9: any = cloneDeep(marketingConfig_9);
let _marketingConfig_10: any = cloneDeep(marketingConfig_10);
let _marketingConfig_11: any = cloneDeep(marketingConfig_11);
let _marketingConfig_12: any = cloneDeep(marketingConfig_12);
let _marketingConfig_13: any = cloneDeep(marketingConfig_13);
let _marketingConfig_14: any = cloneDeep(marketingConfig_14);
let _marketingConfig_15: any = cloneDeep(marketingConfig_15);
let _marketingConfig_16: any = cloneDeep(marketingConfig_16);
let _marketingConfig_17: any = cloneDeep(marketingConfig_17);
let _marketingConfig_18: any = cloneDeep(marketingConfig_18);
let _marketingConfig_19: any = cloneDeep(marketingConfig_19);
if (appConfig?.specialOffer) {
// 特价促销
const _details = appConfig?.specialOffer?.details;
_marketingConfig_1['11-1-1'].props.title = _details.title
_marketingConfig_1['11-1-1'].props.explain = _details.explain
_marketingConfig_1['11-1-1'].props.icon = _details.icon;
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-1-2-${Number(index) + 1}`;
!_marketingConfig_1['11-1-2'].childNodes.includes(_newKey) && _marketingConfig_1['11-1-2'].childNodes.push(_newKey)
_marketingConfig_1[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._marketingConfig_1 };
!_mallLayoutConfig['0'].childNodes.includes('11-1') && _mallLayoutConfig['0'].childNodes.push('11-1');
}
if (appConfig?.plummet) {
// 直降促销
const _details = appConfig?.plummet?.details;
_marketingConfig_2['11-2-1'].props.title = _details.title
_marketingConfig_2['11-2-1'].props.explain = _details.explain
_marketingConfig_2['11-2-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-2-2-${Number(index) + 1}`;
!_marketingConfig_2['11-2-2'].childNodes.includes(_newKey) && _marketingConfig_2['11-2-2'].childNodes.push(_newKey)
_marketingConfig_2[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '直降60元',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_2 };
!_mallLayoutConfig['0'].childNodes.includes('11-2') && _mallLayoutConfig['0'].childNodes.push('11-2');
}
if (appConfig?.fullQuantitySub) {
// 满量促销--满量减
const _details = appConfig?.fullQuantitySub?.details;
_marketingConfig_3['11-3-1'].props.title = _details.title
_marketingConfig_3['11-3-1'].props.explain = _details.explain
_marketingConfig_3['11-3-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-3-2-${Number(index) + 1}`;
!_marketingConfig_3['11-3-2'].childNodes.includes(_newKey) && _marketingConfig_3['11-3-2'].childNodes.push(_newKey)
_marketingConfig_3[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '满3件减50',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_3 };
!_mallLayoutConfig['0'].childNodes.includes('11-3') && _mallLayoutConfig['0'].childNodes.push('11-3');
}
if (appConfig?.discount) {
// 折扣促销
const _details = appConfig?.discount?.details;
_marketingConfig_4['11-4-1'].props.title = _details.title
_marketingConfig_4['11-4-1'].props.explain = _details.explain
_marketingConfig_4['11-4-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-4-2-${Number(index) + 1}`;
!_marketingConfig_4['11-4-2'].childNodes.includes(_newKey) && _marketingConfig_4['11-4-2'].childNodes.push(_newKey)
_marketingConfig_4[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '5折起',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_4 };
!_mallLayoutConfig['0'].childNodes.includes('11-4') && _mallLayoutConfig['0'].childNodes.push('11-4');
}
if (appConfig?.fullQuantityDiscount) {
// 满量促销--满量折
const _details = appConfig?.fullQuantityDiscount?.details;
_marketingConfig_5['11-5-1'].props.title = _details.title
_marketingConfig_5['11-5-1'].props.explain = _details.explain
_marketingConfig_5['11-5-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-5-2-${Number(index) + 1}`;
!_marketingConfig_5['11-5-2'].childNodes.includes(_newKey) && _marketingConfig_5['11-5-2'].childNodes.push(_newKey)
_marketingConfig_5[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '满3件8折',
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_5 };
!_mallLayoutConfig['0'].childNodes.includes('11-5') && _mallLayoutConfig['0'].childNodes.push('11-5');
}
if (appConfig?.fullMoneySub) {
// 满额促销--满额减
const _details = appConfig?.fullMoneySub?.details;
_marketingConfig_6['11-6-1'].props.title = _details.title
_marketingConfig_6['11-6-1'].props.explain = _details.explain
_marketingConfig_6['11-6-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-6-2-${Number(index) + 1}`;
!_marketingConfig_6['11-6-2'].childNodes.includes(_newKey) && _marketingConfig_6['11-6-2'].childNodes.push(_newKey)
_marketingConfig_6[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '满100减10',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_6 };
!_mallLayoutConfig['0'].childNodes.includes('11-6') && _mallLayoutConfig['0'].childNodes.push('11-6');
}
if (appConfig?.fullMoneyDiscount) {
// 满额促销--满额折
const _details = appConfig?.fullMoneyDiscount?.details;
_marketingConfig_7['11-7-1'].props.title = _details.title
_marketingConfig_7['11-7-1'].props.explain = _details.explain
_marketingConfig_7['11-7-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-7-2-${Number(index) + 1}`;
!_marketingConfig_7['11-7-2'].childNodes.includes(_newKey) && _marketingConfig_7['11-7-2'].childNodes.push(_newKey)
_marketingConfig_7[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '满100打5折',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_7 };
!_mallLayoutConfig['0'].childNodes.includes('11-7') && _mallLayoutConfig['0'].childNodes.push('11-7');
}
if (appConfig?.giveProduct) {
// 赠送促销--赠送商品(满额赠+买商品赠)
const _details = appConfig?.giveProduct?.details;
_marketingConfig_8['11-8-1'].props.title = _details.title
_marketingConfig_8['11-8-1'].props.explain = _details.explain
_marketingConfig_8['11-8-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-8-2-${Number(index) + 1}`;
!_marketingConfig_8['11-8-2'].childNodes.includes(_newKey) && _marketingConfig_8['11-8-2'].childNodes.push(_newKey)
_marketingConfig_8[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: `原价${item.price}元`,
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_8 };
!_mallLayoutConfig['0'].childNodes.includes('11-8') && _mallLayoutConfig['0'].childNodes.push('11-8');
}
if (appConfig?.giveCoupon) {
// 赠送促销--赠送优惠劵(满额赠+买商品赠)
const _details = appConfig?.giveCoupon?.details;
_marketingConfig_9['11-9-1'].props.title = _details.title
_marketingConfig_9['11-9-1'].props.explain = _details.explain
_marketingConfig_9['11-9-1'].props.icon = _details.icon
if (_details.id.length > 0) {
const _couponList = _details.id?.map((item) => { return { couponType: item.belongType, id: item.id } });
const _couponListData = await PublicApi.postMarketingCouponPlatformActivityPageSelectDetail({ couponList: _couponList });
message.destroy();
if (_couponListData.code === 1000) {
_couponListData.data?.forEach((item, index) => {
const _newKey: any = `11-9-2-${Number(index) + 1}`;
!_marketingConfig_9['11-9-2'].childNodes.includes(_newKey) && _marketingConfig_9['11-9-2'].childNodes.push(_newKey)
_marketingConfig_9[_newKey] = {
key: _newKey,
title: item.name,
componentName: 'MarketingCard.CouponsItem',
props: {
...item,
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_9 };
!_mallLayoutConfig['0'].childNodes.includes('11-9') && _mallLayoutConfig['0'].childNodes.push('11-9');
}
if (appConfig?.morePiece) {
// 多件促销
const _details = appConfig?.morePiece?.details;
_marketingConfig_10['11-10-1'].props.title = _details.title
_marketingConfig_10['11-10-1'].props.explain = _details.explain
_marketingConfig_10['11-10-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-10-2-${Number(index) + 1}`;
!_marketingConfig_10['11-10-2'].childNodes.includes(_newKey) && _marketingConfig_10['11-10-2'].childNodes.push(_newKey)
_marketingConfig_10[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: `第2件5折`,
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_10 };
!_mallLayoutConfig['0'].childNodes.includes('11-10') && _mallLayoutConfig['0'].childNodes.push('11-10');
}
if (appConfig?.combination) {
// 组合促销
const _details = appConfig?.combination?.details;
_marketingConfig_11['11-11-1'].props.title = _details.title
_marketingConfig_11['11-11-1'].props.explain = _details.explain
_marketingConfig_11['11-11-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-11-2-${Number(index) + 1}`;
!_marketingConfig_11['11-11-2'].childNodes.includes(_newKey) && _marketingConfig_11['11-11-2'].childNodes.push(_newKey)
_marketingConfig_11[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: `99元4件`,
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_11 };
!_mallLayoutConfig['0'].childNodes.includes('11-11') && _mallLayoutConfig['0'].childNodes.push('11-11');
}
if (appConfig?.secKill) {
// 秒杀
const _details = appConfig?.secKill?.details;
_marketingConfig_12['11-12-1'].props.title = _details.title
_marketingConfig_12['11-12-1'].props.explain = _details.explain
_marketingConfig_12['11-12-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-12-2-${Number(index) + 1}`;
!_marketingConfig_12['11-12-2'].childNodes.includes(_newKey) && _marketingConfig_12['11-12-2'].childNodes.push(_newKey)
_marketingConfig_12[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
direction: 'column',
img: item.productImgUrl,
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_12 };
!_mallLayoutConfig['0'].childNodes.includes('11-12') && _mallLayoutConfig['0'].childNodes.push('11-12');
}
if (appConfig?.groupPurchase) {
// 拼团
const _details = appConfig?.groupPurchase?.details;
_marketingConfig_13['11-13-1'].props.title = _details.title
_marketingConfig_13['11-13-1'].props.explain = _details.explain
_marketingConfig_13['11-13-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-13-2-${Number(index) + 1}`;
!_marketingConfig_13['11-13-2'].childNodes.includes(_newKey) && _marketingConfig_13['11-13-2'].childNodes.push(_newKey)
_marketingConfig_13[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.CollageContainerItem',
props: {
...item,
detail: {
title: item.productName,
img: item.productImgUrl,
info: '打骨折',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
endTime: 1627372487509,
people: 1,
id: 5
},
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_13 };
!_mallLayoutConfig['0'].childNodes.includes('11-13') && _mallLayoutConfig['0'].childNodes.push('11-13');
}
if (appConfig?.fullSwap) {
// 换购-满额换购
const _details = appConfig?.fullSwap?.details;
_marketingConfig_14['11-14-1'].props.title = _details.title
_marketingConfig_14['11-14-1'].props.explain = _details.explain
_marketingConfig_14['11-14-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-14-2-${Number(index) + 1}`;
!_marketingConfig_14['11-14-2'].childNodes.includes(_newKey) && _marketingConfig_14['11-14-2'].childNodes.push(_newKey)
_marketingConfig_14[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '加20元换购',
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_14 };
!_mallLayoutConfig['0'].childNodes.includes('11-14') && _mallLayoutConfig['0'].childNodes.push('11-14');
}
if (appConfig?.buySwap) {
// 换购-买商品换购
const _details = appConfig?.buySwap?.details;
_marketingConfig_15['11-15-1'].props.title = _details.title
_marketingConfig_15['11-15-1'].props.explain = _details.explain
_marketingConfig_15['11-15-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-15-2-${Number(index) + 1}`;
!_marketingConfig_15['11-15-2'].childNodes.includes(_newKey) && _marketingConfig_15['11-15-2'].childNodes.push(_newKey)
_marketingConfig_15[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '加20元换购',
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_15 };
!_mallLayoutConfig['0'].childNodes.includes('11-15') && _mallLayoutConfig['0'].childNodes.push('11-15');
}
if (appConfig?.preSale) {
// 预售
const _details = appConfig?.preSale?.details;
_marketingConfig_16['11-16-1'].props.title = _details.title
_marketingConfig_16['11-16-1'].props.explain = _details.explain
_marketingConfig_16['11-16-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-16-2-${Number(index) + 1}`;
!_marketingConfig_16['11-16-2'].childNodes.includes(_newKey) && _marketingConfig_16['11-16-2'].childNodes.push(_newKey)
_marketingConfig_16[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '10元抵100',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_16 };
!_mallLayoutConfig['0'].childNodes.includes('11-16') && _mallLayoutConfig['0'].childNodes.push('11-16');
}
if (appConfig?.attempt) {
// 试用
const _details = appConfig?.attempt?.details;
_marketingConfig_17['11-17-1'].props.title = _details.title
_marketingConfig_17['11-17-1'].props.explain = _details.explain
_marketingConfig_17['11-17-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-17-2-${Number(index) + 1}`;
!_marketingConfig_17['11-17-2'].childNodes.includes(_newKey) && _marketingConfig_17['11-17-2'].childNodes.push(_newKey)
_marketingConfig_17[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '已送出 186 件',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_17 };
!_mallLayoutConfig['0'].childNodes.includes('11-17') && _mallLayoutConfig['0'].childNodes.push('11-17');
}
if (appConfig?.setMeal) {
// 套餐
const _details = appConfig?.setMeal?.details;
_marketingConfig_18['11-18-1'].props.title = _details.title
_marketingConfig_18['11-18-1'].props.explain = _details.explain
_marketingConfig_18['11-18-1'].props.icon = _details.icon
_marketingConfig_18['11-18-1'].props.id = _details.id
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _details.id })
message.destroy();
if (_detailData.code === 1000 && _detailData?.data[0]) {
const _detailItem: any = _detailData?.data[0];
_marketingConfig_18['11-18-2-1'].title = _detailItem.productName;
_marketingConfig_18['11-18-2-1'].props = {
..._marketingConfig_18['11-18-2-1'].props,
detail: {
img: _detailItem.productImgUrl,
title: _detailItem.productName,
discountPrice: priceFormat(_detailItem.price),
buy: 10
},
isnull: false,
tag: '购买商品'
}
_detailItem?.goodsSubList?.forEach((item: any, index) => {
const _tabKey = `11-18-2-2-${Number(index) + 1}`;
let _groupOriginalPrice = _detailItem.price;
_marketingConfig_18[_tabKey] = {
title: `套餐${item.groupNo}`,
canEdit: false,
canHide: false,
componentName: 'MarketingCard.PackageContainerTabsTabPane',
props: {
title: `套餐${item.groupNo}`,
groupPrice: priceFormat(item.groupPrice),
containerScorll: true,
type: 15,
},
childComponentName: 'MarketingCard.GoodsItem',
childNodes: [],
}
item?.list?.forEach((child, childIndex) => {
_groupOriginalPrice = _groupOriginalPrice + Number(child.price);
const _childKey = `${_tabKey}-${Number(childIndex) + 1}`;
_marketingConfig_18[_childKey] = {
title: child.productName,
canEdit: false,
canHide: false,
componentName: 'MarketingCard.GoodsItem',
props: {
...child,
mode: 'horizontal',
name: item.productName,
img: child.productImgUrl,
title: child.productName,
discountPrice: priceFormat(child.price),
isnull: false
},
}
!_marketingConfig_18[_tabKey].childNodes.includes(_childKey) && _marketingConfig_18[_tabKey].childNodes.push(_childKey);
})
_marketingConfig_18[_tabKey].props.groupOriginalPrice = priceFormat(_groupOriginalPrice);
!_marketingConfig_18['11-18-2-2'].childNodes.includes(_tabKey) && _marketingConfig_18['11-18-2-2'].childNodes.push(_tabKey);
})
}
_other = { ..._other, ..._marketingConfig_18 };
!_mallLayoutConfig['0'].childNodes.includes('11-18') && _mallLayoutConfig['0'].childNodes.push('11-18');
}
if (appConfig?.bargain) {
// 砍价
const _details = appConfig?.bargain?.details;
_marketingConfig_19['11-19-1'].props.title = _details.title
_marketingConfig_19['11-19-1'].props.explain = _details.explain
_marketingConfig_19['11-19-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
const _newKey = `11-19-2-${Number(index) + 1}`;
!_marketingConfig_19['11-19-2'].childNodes.includes(_newKey) && _marketingConfig_19['11-19-2'].childNodes.push(_newKey)
_marketingConfig_19[_newKey] = {
key: _newKey,
title: item.productName,
componentName: 'MarketingCard.GoodsItem',
props: {
...item,
mode: 'horizontal',
name: item.productName,
img: item.productImgUrl,
info: '已送出 186 件',
discountPrice: priceFormat(item.activityPrice),
isnull: false
}
}
})
}
}
_other = { ..._other, ..._marketingConfig_19 };
!_mallLayoutConfig['0'].childNodes.includes('11-19') && _mallLayoutConfig['0'].childNodes.push('11-19');
}
_mallLayoutConfig['0'].childNodes = [..._mallLayoutConfig['0'].childNodes, '8', '9', '10']
const config = {
......
......@@ -279,7 +279,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_1['11-1-1'].props.icon = _details.icon;
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -313,7 +313,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_2['11-2-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -348,7 +348,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_3['11-3-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -383,7 +383,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_4['11-4-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -418,7 +418,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_5['11-5-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -452,7 +452,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_6['11-6-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -487,7 +487,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_7['11-7-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -522,7 +522,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_8['11-8-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -584,7 +584,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_10['11-10-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -619,7 +619,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_11['11-11-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -653,7 +653,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_12['11-12-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -688,7 +688,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_13['11-13-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -727,7 +727,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_14['11-14-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -760,7 +760,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_15['11-15-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -793,7 +793,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_16['11-16-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -828,7 +828,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_17['11-17-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......@@ -862,10 +862,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_18['11-18-1'].props.explain = _details.explain
_marketingConfig_18['11-18-1'].props.icon = _details.icon
_marketingConfig_18['11-18-1'].props.id = _details.id
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _details.id })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _details.id })
message.destroy();
if (_detailData.code === 1000 && _detailData?.data[0]) {
const _detailItem = _detailData?.data[0];
const _detailItem: any = _detailData?.data[0];
_marketingConfig_18['11-18-2-1'].title = _detailItem.productName;
_marketingConfig_18['11-18-2-1'].props = {
..._marketingConfig_18['11-18-2-1'].props,
......@@ -930,7 +930,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
_marketingConfig_19['11-19-1'].props.icon = _details.icon
const _ids = _details.id.join(',');
if (_ids.length > 0) {
const _detailData = await PublicApi.getMarketingAdornGoodsAdorn({ ids: _ids })
const _detailData = await PublicApi.getMarketingAdornActivityGoodsAdorn({ ids: _ids })
message.destroy();
if (_detailData.code === 1000) {
_detailData.data?.forEach((item, index) => {
......
......@@ -29,7 +29,6 @@ import * as EnhanceV2Api from './EnhanceV2Api';
import * as MessageV2 from './MessageV2Api';
import * as LogiticsV2 from './LogiticsV2Api';
import * as MarketingApi from './MarketingApi';
import * as MaketingV2Api from './MaketingV2Api'
import * as AfterServiceV2Api from './AfterServiceV2Api';
......@@ -73,6 +72,5 @@ export const PublicApi = {
...MessageV2,
...LogiticsV2,
...MarketingApi,
...MaketingV2Api,
...AfterServiceV2Api,
}
......@@ -31,7 +31,6 @@ const tokenList = [
{ name: 'MessageV2', token: '69a667ec9861e8bdc25b89238d0b908a2123d9fce26e72fec3cdf6cd0b1f2681', categoryIds: [0], }, // 消息中心v2
{ name: 'LogiticsV2', token: '732fb8e33970ff5dee830423a630e8e85c3ef3293abba7581b16749dfce8608b', categoryIds: [0], }, // 物流能力v2
{ name: 'Marketing', token: 'd952d25c4e8272a6dff69245dbddf983dc886521e2623464e476922fc95f43af', categoryIds: [0], }, // 营销能力
{ name: 'MaketingV2', token: 'f6d5cee2383ca203dfa2882b84dfa02a1d79de3c3ad892b42f030437fdc5ea21', categoryIds: [0] }, // 营销活动v2
{ name: 'AfterServiceV2', token: '58748fc89dcdb33ec5cac520c00293ba92abca362a8ddb979df589effd0db9bd', categoryIds: [0], }, // 售后能力V2
]
......
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