Commit b235feff authored by GuanHua's avatar GuanHua

feat: 装修相关翻译添加

parent 436cf342
......@@ -136,8 +136,12 @@ export default {
'editor.template.add.category': '添加分类',
'editor.template.add.coupons': '添加优惠券',
'editor.own.edit.title': '自营商城装修-首页',
'editor.own.preview.title': '自营商城预览-首页',
'editor.channel.edit.title': '渠道装修-渠道主页',
'editor.channel.preview.title': '渠道装修-渠道主页',
'editor.shop.edit.title': '店铺装修-店铺主页',
'editor.shop.preview.title': '店铺预览-店铺主页',
'editor.marketing.meal': '套餐',
'editor.marketing.activity': '活动',
'editor.marketing.activity_title': '标题栏',
......
import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { FormattedMessage } from 'umi'
import { getIntl } from 'umi'
const intl = getIntl()
export const ActivitySchema1: ISchema = {
type: 'object',
......@@ -9,7 +11,7 @@ export const ActivitySchema1: ISchema = {
type: 'string',
'x-component': 'ModalSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
allowClear: true,
align: 'flex-start',
},
......@@ -31,7 +33,7 @@ export const ActivitySchema1: ISchema = {
type: 'array',
'x-component': 'DateRangePickerUnix',
'x-component-props': {
placeholder: [<FormattedMessage id='common.form.startTime.placeholder' />, <FormattedMessage id='common.form.endTime.placeholder' />],
placeholder: [intl.formatMessage({ id: 'common.form.startTime.placeholder' }), intl.formatMessage({ id: 'common.form.endTime.placeholder' })],
allowClear: true,
},
},
......@@ -41,7 +43,7 @@ export const ActivitySchema1: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.button.query' />,
children: intl.formatMessage({ id: 'common.button.query' }),
},
},
},
......@@ -56,7 +58,7 @@ export const ActivitySchema2: ISchema = {
type: 'string',
'x-component': 'ModalSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
allowClear: true,
align: 'flex-start',
},
......@@ -77,7 +79,7 @@ export const ActivitySchema2: ISchema = {
memberName: {
type: 'string',
'x-component-props': {
placeholder: <FormattedMessage id='common.table.columns.memberName' />,
placeholder: intl.formatMessage({ id: 'common.table.columns.memberName' }),
allowClear: true,
},
},
......@@ -85,7 +87,7 @@ export const ActivitySchema2: ISchema = {
type: 'array',
'x-component': 'DateRangePickerUnix',
'x-component-props': {
placeholder: [<FormattedMessage id='common.form.startTime.placeholder' />, <FormattedMessage id='common.form.endTime.placeholder' />],
placeholder: [intl.formatMessage({ id: 'common.form.startTime.placeholder' }), intl.formatMessage({ id: 'common.form.endTime.placeholder' })],
allowClear: true,
},
},
......@@ -95,7 +97,7 @@ export const ActivitySchema2: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.button.query' />,
children: intl.formatMessage({ id: 'common.button.query' }),
},
},
},
......
......@@ -47,22 +47,22 @@ const columns: ColumnsType<GetMarketingAdornMerchantActivityListAdornResponseDet
},
{
title: <FormattedMessage id='editor.drawer.activity.columns.category' />,
title: <FormattedMessage id='editor.columns.category' />,
dataIndex:'category',
render: (_text) => {
return <StatusTag title={_text} type="default" />;
}
},
{
title: <FormattedMessage id='editor.drawer.activity.columns.brand' />,
title: <FormattedMessage id='editor.columns.brand' />,
dataIndex: 'brand'
},
{
title: <FormattedMessage id='editor.drawer.activity.columns.memberName' />,
title: <FormattedMessage id='editor.columns.memberName' />,
dataIndex: 'memberName',
},
{
title: <FormattedMessage id='editor.drawer.activity.columns.unit' />,
title: <FormattedMessage id='editor.columns.unit' />,
dataIndex: 'unit',
render: (_text, _record) => {
return (
......@@ -74,7 +74,7 @@ const columns: ColumnsType<GetMarketingAdornMerchantActivityListAdornResponseDet
}
},
{
title: <FormattedMessage id='editor.drawer.activity.columns.activityPrice' />,
title: <FormattedMessage id='editor.columns.activityPrice' />,
dataIndex: 'activityPrice',
render: (_text, _record) => {
return (
......
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { ISchema } from '@formily/antd';
import { FormattedMessage } from 'umi'
import { getIntl } from 'umi'
const intl = getIntl()
const schema: ISchema = {
type: 'object',
......@@ -13,9 +15,9 @@ const schema: ISchema = {
type: 'string',
'x-component': 'Search',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
align: 'flex-left',
tip: <FormattedMessage id='editor.drawer.activity.product.search.id' />,
tip: intl.formatMessage({ id: 'editor.drawer.activity.product.search.id' }),
},
},
[FORM_FILTER_PATH]: {
......@@ -30,14 +32,14 @@ const schema: ISchema = {
activityName: {
type: 'string',
"x-component-props": {
placeholder: <FormattedMessage id='editor.drawer.activity.columns.activityName' />
placeholder: intl.formatMessage({ id: 'editor.drawer.activity.columns.activityName' })
}
},
activityType: {
type: 'string',
enum: [],
"x-component-props": {
placeholder: <FormattedMessage id='editor.drawer.activity.columns.activityType' />
placeholder: intl.formatMessage({ id: 'editor.drawer.activity.columns.activityType' })
}
},
'[startTime, endTime]': {
......@@ -46,19 +48,19 @@ const schema: ISchema = {
},
type: 'daterange',
'x-component-props': {
placeholder: [<FormattedMessage id='common.form.activity.startTime.placeholder' />, <FormattedMessage id='common.form.activity.endTime.placeholder' />]
placeholder: [intl.formatMessage({ id: 'common.form.activity.startTime.placeholder' }), intl.formatMessage({ id: 'common.form.activity.endTime.placeholder' })]
}
},
product: {
type: 'string',
"x-component-props": {
placeholder: <FormattedMessage id='editor.drawer.activity.columns.activityName' />
placeholder: intl.formatMessage({ id: 'editor.drawer.activity.columns.activityName' })
}
},
merchantName: {
type: 'string',
"x-component-props": {
placeholder: <FormattedMessage id='common.table.columns.memberName' />
placeholder: intl.formatMessage({ id: 'common.table.columns.memberName' })
}
},
submit: {
......@@ -67,7 +69,7 @@ const schema: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.text.query' />,
children: intl.formatMessage({ id: 'common.text.query' }),
},
},
},
......
import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { FormattedMessage } from 'umi'
import { getIntl } from 'umi'
const intl = getIntl()
const CommoditySchema: ISchema = {
type: 'object',
......@@ -9,7 +11,7 @@ const CommoditySchema: ISchema = {
type: 'string',
'x-component': 'ModalSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
allowClear: true,
align: 'flex-start',
},
......@@ -30,14 +32,14 @@ const CommoditySchema: ISchema = {
idInList: {
type: 'string',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.commodityId' />,
placeholder: intl.formatMessage({ id: 'common.text.commodityId' }),
allowClear: true,
},
},
memberName: {
type: 'string',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.memberName' />,
placeholder: intl.formatMessage({ id: 'common.text.memberName' }),
allowClear: true,
},
},
......@@ -45,7 +47,7 @@ const CommoditySchema: ISchema = {
type: 'string',
'x-component': 'CustomInputSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.brand' />,
placeholder: intl.formatMessage({ id: 'common.text.brand' }),
showSearch: true,
showArrow: true,
defaultActiveFirstOption: false,
......@@ -61,7 +63,7 @@ const CommoditySchema: ISchema = {
type: 'string',
'x-component': 'CustomCategorySearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.category' />,
placeholder: intl.formatMessage({ id: 'common.text.category' }),
showSearch: true,
notFoundContent: null,
style: { width: '174px' },
......@@ -73,7 +75,7 @@ const CommoditySchema: ISchema = {
type: 'array',
'x-component': 'DateRangePickerUnix',
'x-component-props': {
placeholder: [<FormattedMessage id='common.form.startTime.placeholder' />,<FormattedMessage id='common.form.endTime.placeholder' />],
placeholder: [intl.formatMessage({ id: 'common.form.startTime.placeholder' }), intl.formatMessage({ id: 'common.form.endTime.placeholder' })],
allowClear: true,
},
},
......@@ -83,7 +85,7 @@ const CommoditySchema: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.button.query' />,
children: intl.formatMessage({ id: 'common.button.query' }),
},
},
},
......
import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { FormattedMessage } from 'umi'
import { getIntl } from 'umi'
const intl = getIntl()
export const CouponSchema1: ISchema = {
type: 'object',
......@@ -9,7 +11,7 @@ export const CouponSchema1: ISchema = {
type: 'string',
'x-component': 'ModalSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
allowClear: true,
align: 'flex-start',
},
......@@ -30,7 +32,7 @@ export const CouponSchema1: ISchema = {
name: {
type: 'string',
'x-component-props': {
placeholder: <FormattedMessage id='editor.drawer.coupons.columns.name' />,
placeholder: intl.formatMessage({ id: 'editor.drawer.coupons.columns.name' }),
allowClear: true,
},
},
......@@ -40,7 +42,7 @@ export const CouponSchema1: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.button.query' />,
children: intl.formatMessage({ id: 'common.button.query' }),
},
},
},
......@@ -55,7 +57,7 @@ export const CouponSchema2: ISchema = {
type: 'string',
'x-component': 'ModalSearch',
'x-component-props': {
placeholder: <FormattedMessage id='common.text.search' />,
placeholder: intl.formatMessage({ id: 'common.text.search' }),
allowClear: true,
align: 'flex-start',
},
......@@ -76,7 +78,7 @@ export const CouponSchema2: ISchema = {
name: {
type: 'string',
'x-component-props': {
placeholder: <FormattedMessage id='editor.drawer.coupons.columns.name' />,
placeholder: intl.formatMessage({ id: 'editor.drawer.coupons.columns.name' }),
allowClear: true,
},
},
......@@ -86,7 +88,7 @@ export const CouponSchema2: ISchema = {
span: 1,
},
'x-component-props': {
children: <FormattedMessage id='common.button.query' />,
children: intl.formatMessage({ id: 'common.button.query' }),
},
},
},
......
import { getIntl } from 'umi'
import icon1 from '@/assets/couponIcons/marketing-1.svg';
import icon2 from '@/assets/couponIcons/marketing-2.svg';
import icon3 from '@/assets/couponIcons/marketing-3.svg';
import icon4 from '@/assets/couponIcons/marketing-4.svg';
import icon5 from '@/assets/couponIcons/marketing-5.svg';
import icon6 from '@/assets/couponIcons/marketing-6.svg';
import icon7 from '@/assets/couponIcons/marketing-7.svg';
import icon8 from '@/assets/couponIcons/marketing-8.svg';
import icon9 from '@/assets/couponIcons/marketing-9.svg';
import icon10 from '@/assets/couponIcons/marketing-10.svg';
import icon11 from '@/assets/couponIcons/marketing-11.svg';
import icon12 from '@/assets/couponIcons/marketing-12.svg';
import icon13 from '@/assets/couponIcons/marketing-13.svg';
import icon14 from '@/assets/couponIcons/marketing-14.svg';
import icon15 from '@/assets/couponIcons/marketing-15.svg';
import icon16 from '@/assets/couponIcons/marketing-16.svg';
import icon17 from '@/assets/couponIcons/marketing-17.svg';
import icon18 from '@/assets/couponIcons/marketing-18.svg';
import icon19 from '@/assets/couponIcons/marketing-19.svg';
const intl = getIntl()
const ICON_CONFIGS = [
{type : 1, title: intl.formatMessage({ id: 'editor.marketing.type_title_1' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_1' }),icon: icon1},
{type : 2, title: intl.formatMessage({ id: 'editor.marketing.type_title_2' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_2' }),icon: icon2},
{type : 3, title: intl.formatMessage({ id: 'editor.marketing.type_title_3' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_3' }),icon: icon3},
{type : 4, title: intl.formatMessage({ id: 'editor.marketing.type_title_4' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_4' }),icon: icon4},
{type : 5, title: intl.formatMessage({ id: 'editor.marketing.type_title_5' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_5' }),icon: icon5},
{type : 6, title: intl.formatMessage({ id: 'editor.marketing.type_title_6' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_6' }),icon: icon6},
{type : 7, title: intl.formatMessage({ id: 'editor.marketing.type_title_7' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_7' }),icon: icon7},
{type : 8, title: intl.formatMessage({ id: 'editor.marketing.type_title_8' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_8' }),icon: icon8},
{type : 9, title: intl.formatMessage({ id: 'editor.marketing.type_title_9' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_9' }),icon: icon9},
{type : 10, title: intl.formatMessage({ id: 'editor.marketing.type_title_10' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_10' }),icon: icon10},
{type : 11, title: intl.formatMessage({ id: 'editor.marketing.type_title_11' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_11' }),icon: icon11},
{type : 12, title: intl.formatMessage({ id: 'editor.marketing.type_title_12' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_12' }),icon: icon12},
{type : 13, title: intl.formatMessage({ id: 'editor.marketing.type_title_13' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_13' }),icon: icon13},
{type : 14, title: intl.formatMessage({ id: 'editor.marketing.type_title_14' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_14' }),icon: icon14},
{type : 15, title: intl.formatMessage({ id: 'editor.marketing.type_title_15' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_15' }),icon: icon15},
{type : 16, title: intl.formatMessage({ id: 'editor.marketing.type_title_16' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_16' }),icon: icon16},
{type : 17, title: intl.formatMessage({ id: 'editor.marketing.type_title_17' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_17' }),icon: icon17},
{type : 18, title: intl.formatMessage({ id: 'editor.marketing.type_title_18' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_18' }),icon: icon18},
{type : 19, title: intl.formatMessage({ id: 'editor.marketing.type_title_19' }),explain: intl.formatMessage({ id: 'editor.marketing.type_explain_19' }),icon: icon19},
]
export default ICON_CONFIGS;
import { FormattedMessage } from 'umi'
import icon1 from '@/assets/couponIcons/marketing-1.svg';
import icon2 from '@/assets/couponIcons/marketing-2.svg';
import icon3 from '@/assets/couponIcons/marketing-3.svg';
import icon4 from '@/assets/couponIcons/marketing-4.svg';
import icon5 from '@/assets/couponIcons/marketing-5.svg';
import icon6 from '@/assets/couponIcons/marketing-6.svg';
import icon7 from '@/assets/couponIcons/marketing-7.svg';
import icon8 from '@/assets/couponIcons/marketing-8.svg';
import icon9 from '@/assets/couponIcons/marketing-9.svg';
import icon10 from '@/assets/couponIcons/marketing-10.svg';
import icon11 from '@/assets/couponIcons/marketing-11.svg';
import icon12 from '@/assets/couponIcons/marketing-12.svg';
import icon13 from '@/assets/couponIcons/marketing-13.svg';
import icon14 from '@/assets/couponIcons/marketing-14.svg';
import icon15 from '@/assets/couponIcons/marketing-15.svg';
import icon16 from '@/assets/couponIcons/marketing-16.svg';
import icon17 from '@/assets/couponIcons/marketing-17.svg';
import icon18 from '@/assets/couponIcons/marketing-18.svg';
import icon19 from '@/assets/couponIcons/marketing-19.svg';
const ICON_CONFIGS = [
{type : 1, title: <FormattedMessage id='editor.marketing.type_title_1' />,explain: <FormattedMessage id='editor.marketing.type_explain_1' />,icon: icon1},
{type : 2, title: <FormattedMessage id='editor.marketing.type_title_2' />,explain: <FormattedMessage id='editor.marketing.type_explain_2' />,icon: icon2},
{type : 3, title: <FormattedMessage id='editor.marketing.type_title_3' />,explain: <FormattedMessage id='editor.marketing.type_explain_3' />,icon: icon3},
{type : 4, title: <FormattedMessage id='editor.marketing.type_title_4' />,explain: <FormattedMessage id='editor.marketing.type_explain_4' />,icon: icon4},
{type : 5, title: <FormattedMessage id='editor.marketing.type_title_5' />,explain: <FormattedMessage id='editor.marketing.type_explain_4' />,icon: icon5},
{type : 6, title: <FormattedMessage id='editor.marketing.type_title_6' />,explain: <FormattedMessage id='editor.marketing.type_explain_3' />,icon: icon6},
{type : 7, title: <FormattedMessage id='editor.marketing.type_title_7' />,explain: <FormattedMessage id='editor.marketing.type_explain_4' />,icon: icon7},
{type : 8, title: <FormattedMessage id='editor.marketing.type_title_8' />,explain: <FormattedMessage id='editor.marketing.type_explain_8' />,icon: icon8},
{type : 9, title: <FormattedMessage id='editor.marketing.type_title_9' />,explain: <FormattedMessage id='editor.marketing.type_explain_9' />,icon: icon9},
{type : 10, title: <FormattedMessage id='editor.marketing.type_title_10' />,explain: <FormattedMessage id='editor.marketing.type_explain_10' />,icon: icon10},
{type : 11, title: <FormattedMessage id='editor.marketing.type_title_11' />,explain: <FormattedMessage id='editor.marketing.type_explain_11' />,icon: icon11},
{type : 12, title: <FormattedMessage id='editor.marketing.type_title_12' />,explain: <FormattedMessage id='editor.marketing.type_explain_12' />,icon: icon12},
{type : 13, title: <FormattedMessage id='editor.marketing.type_title_13' />,explain: <FormattedMessage id='editor.marketing.type_explain_13' />,icon: icon13},
{type : 14, title: <FormattedMessage id='editor.marketing.type_title_14' />,explain: <FormattedMessage id='editor.marketing.type_explain_14' />,icon: icon14},
{type : 15, title: <FormattedMessage id='editor.marketing.type_title_15' />,explain: <FormattedMessage id='editor.marketing.type_explain_15' />,icon: icon15},
{type : 16, title: <FormattedMessage id='editor.marketing.type_title_16' />,explain: <FormattedMessage id='editor.marketing.type_explain_16' />,icon: icon16},
{type : 17, title: <FormattedMessage id='editor.marketing.type_title_17' />,explain: <FormattedMessage id='editor.marketing.type_explain_17' />,icon: icon17},
{type : 18, title: <FormattedMessage id='editor.marketing.type_title_18' />,explain: <FormattedMessage id='editor.marketing.type_explain_18' />,icon: icon18},
{type : 19, title: <FormattedMessage id='editor.marketing.type_title_19' />,explain: <FormattedMessage id='editor.marketing.type_explain_19' />,icon: icon19},
]
export default ICON_CONFIGS;
......@@ -254,7 +254,6 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
direction: 'column',
name: item.productName,
img: item.productImgUrl,
mode: 'horizontal',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
......
......@@ -243,7 +243,6 @@ const mobileShopTempletePreview: React.FC<ShopPreviewPropsType> = (props) => {
direction: 'column',
name: item.productName,
img: item.productImgUrl,
mode: 'horizontal',
originalPrice: priceFormat(item.price),
discountPrice: priceFormat(item.activityPrice),
isnull: false
......
......@@ -251,7 +251,6 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
direction: 'column',
name: item.productName,
img: item.productImgUrl,
mode: 'horizontal',
originalPrice: item.activityPrice ? priceFormat(item.price) : undefined,
discountPrice: priceFormat(item.activityPrice ? item.activityPrice : item.price),
isnull: false
......@@ -1089,12 +1088,12 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
return (!loading && brickConfig) ? (
<BrickProvider config={brickConfig}>
<Helmet>
<title>自营商城装修-首页</title>
<title>{intl.formatMessage({ id: 'editor.own.edit.title' })}</title>
</Helmet>
<div className={styles['wrapper']}>
<ToolBar
type={1}
title="自营商城装修-首页"
title={intl.formatMessage({ id: 'editor.own.edit.title' })}
showActions={true}
layoutType={LAYOUT_TYPE.own}
templateId={id}
......
......@@ -29,7 +29,7 @@ export const shopLayoutConfig : PageConfigType = {
title: intl.formatMessage({ id: 'editor.template.shop.backdrop' }),
},
'2': {
title: '分类导航',
title: intl.formatMessage({ id: 'editor.template.channel.nav.title' }),
canDelete: false,
hideAction: true,
componentName: 'MobileNavCard',
......@@ -49,7 +49,7 @@ export const shopLayoutConfig : PageConfigType = {
},
childNodes: ['3'],
childComponentName: 'MobileNavCard.NavItem',
addBtnText: '添加导航',
addBtnText: intl.formatMessage({ id: 'editor.template.add.nav' }),
},
'3': {
loop: '${navList}',
......@@ -65,7 +65,7 @@ export const shopLayoutConfig : PageConfigType = {
},
},
'4': {
title: '广告图',
title: intl.formatMessage({ id: 'editor.template.channel.banner.title' }),
canDelete: false,
componentName: 'Banner',
props: {
......@@ -75,7 +75,7 @@ export const shopLayoutConfig : PageConfigType = {
},
childNodes: ['5'],
childComponentName: 'Banner.Items',
addBtnText: '添加广告',
addBtnText: intl.formatMessage({ id: 'editor.template.add.advert' }),
},
'5': {
loop: '${advert}',
......@@ -94,12 +94,12 @@ export const shopLayoutConfig : PageConfigType = {
export const defaultConfig: PageConfigType = {
'6': {
componentName: 'MobileShopCommodity',
title: '推荐商品',
title: intl.formatMessage({ id: 'editor.template.channel.product.title' }),
canDelete: false,
props: {},
childNodes: ['7'],
childComponentName: 'MobileShopCommodity.Item',
addBtnText: '添加商品区',
addBtnText: intl.formatMessage({ id: 'editor.template.add.product' }),
},
'7': {
loop: '${commodityList}',
......@@ -115,13 +115,13 @@ export const defaultConfig: PageConfigType = {
},
},
'9': {
title: '底部标签栏',
title: intl.formatMessage({ id: 'editor.template.channel.bottom.title' }),
canDelete: false,
componentName: 'BottomNavigation',
props: {},
childNodes: ['10'],
childComponentName: 'BottomNavigation.Items',
addBtnText: '添加标签',
addBtnText: intl.formatMessage({ id: 'editor.template.add.label' }),
maxLength: 5,
},
'10': {
......@@ -141,7 +141,7 @@ export const defaultConfig: PageConfigType = {
export const couponsModalConfig = {
'13': {
title: '优惠券弹窗',
title: intl.formatMessage({ id: 'editor.template.channel.coupons.title' }),
componentName: 'CouponsModal',
props: {
style: {
......@@ -160,7 +160,7 @@ export const couponsModalConfig = {
},
childNodes: [],
childComponentName: 'CouponsModal.CouponsItem',
addBtnText: '添加优惠券',
addBtnText: intl.formatMessage({ id: 'editor.template.add.coupons' }),
canEdit: true,
canHide: false,
canDelete: false,
......
......@@ -255,7 +255,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
bottom: appConfig?.bottom ? appConfig?.bottom.details : [{
defaultIcon: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/grid@2xf2a5b4c6612742759d5fcf322e2d6102.png',
selectIcon: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/Icon@2x(3)06695cb1e9904ae1a7a0b8ec73d29cb0.png',
name: '首页',
name: intl.formatMessage({ id: 'editor.channel.menu.home' }),
type: 1,
isnull: false,
}],
......@@ -1085,10 +1085,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
config={brickConfig}
>
<Helmet>
<title>店铺装修-店铺主页</title>
<title>{intl.formatMessage({ id: 'editor.shop.edit.title' })}</title>
</Helmet>
<div className={styles['wrapper']}>
<ToolBar type={1} title="店铺主页" showActions={true} layoutType={LAYOUT_TYPE.shop} templateId={id} />
<ToolBar type={1} title={intl.formatMessage({ id: 'editor.shop.edit.title' })} showActions={true} layoutType={LAYOUT_TYPE.shop} templateId={id} />
<div className={styles['content']}>
<MobileClientEditLeft layoutType={LAYOUT_TYPE.shop} marketConfigs={MarketingConfigs} />
<div className={styles['app-wrapper']}>
......
......@@ -24,6 +24,7 @@ export const marketingConfig_1 = {
style: {
margin: '8px',
},
shopColorType: 1
},
childNodes: ['11-1-1', '11-1-2'],
},
......@@ -59,6 +60,7 @@ export const marketingConfig_2 = {
style: {
margin: '8px',
},
shopColorType: 2
},
childNodes: ['11-2-1', '11-2-2'],
},
......@@ -94,6 +96,7 @@ export const marketingConfig_3 = {
style: {
margin: '8px',
},
shopColorType: 4
},
childNodes: ['11-3-1', '11-3-2'],
},
......@@ -130,6 +133,7 @@ export const marketingConfig_4 = {
style: {
margin: '8px',
},
shopColorType: 3
},
childNodes: ['11-4-1', '11-4-2'],
},
......
......@@ -251,7 +251,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
bottom: appConfig?.bottom ? appConfig?.bottom.details : [{
defaultIcon: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/grid@2xf2a5b4c6612742759d5fcf322e2d6102.png',
selectIcon: 'https://shushangyun01.oss-cn-shenzhen.aliyuncs.com/Icon@2x(3)06695cb1e9904ae1a7a0b8ec73d29cb0.png',
name: '首页',
name: intl.formatMessage({ id: 'editor.channel.menu.home' }),
type: 1,
isnull: false,
}],
......@@ -1081,10 +1081,10 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
config={config}
>
<Helmet>
<title>店铺装修预览-店铺主页</title>
<title>{intl.formatMessage({ id: 'editor.shop.preview.title' })}</title>
</Helmet>
<div className={styles['wrapper']}>
<ToolBar type={2} title="店铺主页" layoutType={LAYOUT_TYPE.shop} templateId={id} />
<ToolBar type={2} title={intl.formatMessage({ id: 'editor.shop.preview.title' })} layoutType={LAYOUT_TYPE.shop} templateId={id} />
<div className={styles['content']}>
<div className={styles['app-wrapper']}>
<div className={styles['app-canvas-container']}>
......
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