Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
4013268c
Commit
4013268c
authored
Jan 05, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商家营销活动新增提交增加商城环境字段
parent
8d5e141b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
add.tsx
...arketingAbility/selfManagement/readySubmitExamine/add.tsx
+2
-0
index.tsx
...ement/readySubmitExamine/components/rulesLayout/index.tsx
+2
-2
index.tsx
...gement/readySubmitExamine/components/shopLayout/index.tsx
+1
-0
No files found.
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/add.tsx
View file @
4013268c
...
...
@@ -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
)
})
})
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/rulesLayout/index.tsx
View file @
4013268c
...
...
@@ -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'
]
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/shopLayout/index.tsx
View file @
4013268c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment