Commit 026cb0d9 authored by Bill's avatar Bill

merge: 合并冲突

parents 2fa10a6e 0715f844
...@@ -196,7 +196,7 @@ export const GeneralEffect = (int, data) => { ...@@ -196,7 +196,7 @@ export const GeneralEffect = (int, data) => {
col: [ col: [
{ {
label: '优惠规则', extra: <Space direction='vertical'> label: '优惠规则', extra: <Space direction='vertical'>
{!isEmpty(data.ladderList) && data.ladderList.map(item => (<div>{` ${item.num} 件, 打 ${item.discount / 10} 折`}</div>))} {!isEmpty(data.ladderList) && data.ladderList.map(item => (<div>{` ${item.num} 件, 打 ${item.discount / 10} 折`}</div>))}
</Space> </Space>
}, },
{ {
...@@ -292,18 +292,18 @@ export const GeneralEffect = (int, data) => { ...@@ -292,18 +292,18 @@ export const GeneralEffect = (int, data) => {
return [ return [
{ {
col: [ col: [
{ label: '每日秒杀时间段', extra: '' }, { label: '每日秒杀时间段', extra: <>{format(data.startTime, 'HH:mm:ss')}~{format(data.endTime, 'HH:mm:ss')}</> },
{ label: '活动描述', extra: data.describe } { label: '活动描述', extra: data.describe }
] ]
}, },
{ {
col: [ col: [
{ label: '叠加优惠券', extra: '' }, { label: '叠加优惠券', extra: data.allowCoupon ? '允许叠加' : '不允许叠加' },
] ]
}, },
{ {
col: [ col: [
{ label: '超限规则', extra: '' }, { label: '超限规则', extra: data.exceedRule === 1 ? '原价购买' : '不可购买' },
] ]
} }
] ]
...@@ -341,18 +341,18 @@ export const GeneralEffect = (int, data) => { ...@@ -341,18 +341,18 @@ export const GeneralEffect = (int, data) => {
return [ return [
{ {
col: [ col: [
{ label: '定金支付时间', extra: '' }, { label: '定金支付时间', extra: <>{format(data.depositPayStartTime, 'HH:mm:ss')}~{format(data.depositPayEndTime, 'HH:mm:ss')}</> },
{ label: '活动描述', extra: data.describe }, { label: '活动描述', extra: data.describe },
] ]
}, },
{ {
col: [ col: [
{ label: '尾款支付时间', extra: '' }, { label: '尾款支付时间', extra: <>{format(data.balancePaymentPayStartTime, 'HH:mm:ss')}~{format(data.balancePaymentPayEndTime, 'HH:mm:ss')}</> },
] ]
}, },
{ {
col: [ col: [
{ label: '开始发货时间', extra: '' }, { label: '开始发货时间', extra: format(data.deliverTime, 'HH:mm:ss') },
] ]
} }
] ]
......
...@@ -343,7 +343,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => { ...@@ -343,7 +343,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
> >
{fields.map(({ key, name, fieldKey, ...restField }) => ( {fields.map(({ key, name, fieldKey, ...restField }) => (
<Space key={key} style={{ display: 'flex', marginBottom: 8 }} align="center"> <Space key={key} style={{ display: 'flex', marginBottom: 8 }} align="center">
<Form.Item <Form.Item
{...restField} {...restField}
style={{ margin: 0 }} style={{ margin: 0 }}
......
...@@ -138,7 +138,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -138,7 +138,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
} }
break break
case 2: case 2:
const shopDetails = list.filter((item: any) => item.type === type)[0].details || [] const shopDetails = list.filter((item: any) => item.type === type)[0]?.details || []
const shopResList: any[] = [] const shopResList: any[] = []
if (shopDetails && shopDetails.length > 0) { if (shopDetails && shopDetails.length > 0) {
const memberShopInGoodsList: any = [] const memberShopInGoodsList: any = []
...@@ -169,7 +169,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -169,7 +169,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = shopResList listRes = shopResList
break break
case 3: case 3:
const brandDetails = list.filter((item: any) => item.type === type)[0].details || [] const brandDetails = list.filter((item: any) => item.type === type)[0]?.details || []
let brandDetailsIds: any = [] let brandDetailsIds: any = []
const brandResList: any[] = [] const brandResList: any[] = []
brandDetails.forEach((detailsItem) => { brandDetails.forEach((detailsItem) => {
...@@ -198,7 +198,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -198,7 +198,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = brandResList listRes = brandResList
break break
case 4: case 4:
const infoIds = list.filter((item: any) => item.type === type)[0].id || [] const infoIds = list.filter((item: any) => item.type === type)[0]?.id || []
idsRes = infoIds idsRes = infoIds
if (idsRes && idsRes.length > 0) { if (idsRes && idsRes.length > 0) {
const param: any = { const param: any = {
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
.login-form-box { .login-form-box {
background-color: #fff; background-color: #fff;
height: 447px;
h2 { h2 {
line-height: 2; line-height: 2;
...@@ -142,4 +143,4 @@ ...@@ -142,4 +143,4 @@
75% { 75% {
transform: scale(1.5); transform: scale(1.5);
} }
} }
\ No newline at end of file
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