Commit 4013268c authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 商家营销活动新增提交增加商城环境字段

parent 8d5e141b
......@@ -52,6 +52,7 @@ const AddedMarketing = () => {
shopId: item.id,
shopName: item.name,
logo: item.logoUrl,
environment: item.environment
}
})
form.setFieldsValue({
......@@ -154,6 +155,7 @@ const AddedMarketing = () => {
setLoading(false)
return
}
setUnsaved(false);
history.goBack();
}).catch(_e => { setLoading(false) })
})
......
......@@ -240,7 +240,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
noStyle
shouldUpdate={(prevValues, currentValues) => prevValues.activityDefined !== currentValues.activityDefined}
>
{({ getFieldValue }) => getFieldValue(['activityDefined', 'type']) === 1 ? (
{({ getFieldValue }) => getFieldValue(['activityDefined', 'type']) === RANDOM_AMOUNT ? (
<Space style={{ display: 'flex' }}>{intl.formatMessage({ id: 'selfManagement.aRandomAmountRange' })}<Form.Item
style={{ margin: 0 }}
name={['activityDefined', 'randomStartPrice']}
......@@ -287,7 +287,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
<Input style={{ width: '160px' }} addonAfter={intl.formatMessage({ id: 'selfManagement.yuan' })} />
</Form.Item>
</Space>
) : getFieldValue(['activityDefined', 'type']) === 2 ? (
) : getFieldValue(['activityDefined', 'type']) === FIXATION_AMOUNT ? (
<Space style={{ display: 'flex' }}>{intl.formatMessage({ id: 'selfManagement.amountBargaining' })}<Form.Item
style={{ margin: 0 }}
name={['activityDefined', 'restrictPrice']}
......
......@@ -46,6 +46,7 @@ const ShopLayout: React.FC<shopListProps> = (props: any) => {
let mall = [...mallList]
const newData = mall.map((_item, _i) => {
if (_i === index) {
console.log(_item, 10086)
return {
..._item,
checked: !_item.checked
......
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