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
shenshaokai
jinfa-platform
Commits
5671e1de
Commit
5671e1de
authored
Jan 14, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改活动页校验以及翻译bug
parent
f262b256
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
schema.tsx
...y/marketingActivitiesManagement/activePage/add/schema.tsx
+9
-1
tabFooter.tsx
...e/fixtures/components/Layouts/CommodityList/tabFooter.tsx
+3
-2
index.less
...ility/marketingActivitiesManagement/activePage/index.less
+1
-1
index.tsx
...bility/marketingActivitiesManagement/activePage/index.tsx
+4
-7
No files found.
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/add/schema.tsx
View file @
5671e1de
...
...
@@ -27,7 +27,15 @@ const schema: ISchema = {
name
:
{
type
:
'string'
,
title
:
`
${
intl
.
formatMessage
({
id
:
'activePage.activityPageName'
})}
`
,
required
:
true
,
"x-rules"
:
[
{
required
:
true
},
{
limitByte
:
true
,
maxByte
:
60
,
}
]
},
environment
:
{
type
:
'string'
,
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/fixtures/components/Layouts/CommodityList/tabFooter.tsx
View file @
5671e1de
import
React
,
{
useMemo
}
from
'react'
;
import
styles
from
'./tabFooter.less'
;
import
{
useIntl
}
from
'umi'
import
{
getIntl
}
from
'umi'
const
intl
=
getIntl
()
interface
Iprops
{
originalPrice
:
number
,
...
...
@@ -9,7 +10,7 @@ interface Iprops {
}
const
TabFooter
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
intl
=
useIntl
();
//
const intl = useIntl();
const
{
discountPrice
,
originalPrice
}
=
props
;
const
cacheDiscountPrice
=
useMemo
(()
=>
discountPrice
?.
toString
().
split
(
"."
),
[
discountPrice
])
return
(
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/index.less
View file @
5671e1de
...
...
@@ -5,7 +5,7 @@
flex-direction: row;
.searchPannel {
width:
320
px;
width:
236
px;
background-color: #fff;
border-radius: 8px;
}
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/index.tsx
View file @
5671e1de
...
...
@@ -65,14 +65,14 @@ const ActivePage = () => {
};
useEffect
(()
=>
{
getData
({
...
debouncedValue
,
name
:
searchInput
});
getData
({
...
debouncedValue
,
name
:
searchInput
}
as
unknown
as
GetTemplateWebActivityPagePageRequest
);
},
[
debouncedValue
]);
const
handleRemove
=
async
(
id
:
number
)
=>
{
const
{
data
,
code
}
=
await
postTemplateWebActivityPageDelete
({
id
});
if
(
code
===
1000
)
{
getData
({
...
debouncedValue
,
name
:
searchInput
});
getData
({
...
debouncedValue
,
name
:
searchInput
}
as
unknown
as
GetTemplateWebActivityPagePageRequest
);
}
};
...
...
@@ -82,7 +82,7 @@ const ActivePage = () => {
status
,
});
if
(
code
===
1000
)
{
getData
({
...
debouncedValue
,
name
:
searchInput
});
getData
({
...
debouncedValue
,
name
:
searchInput
}
as
unknown
as
GetTemplateWebActivityPagePageRequest
);
}
};
...
...
@@ -91,7 +91,7 @@ const ActivePage = () => {
};
const
handleSearch
=
()
=>
{
getData
({
...
debouncedValue
,
name
:
searchInput
});
getData
({
...
debouncedValue
,
name
:
searchInput
}
as
any
);
};
return
(
...
...
@@ -104,12 +104,9 @@ const ActivePage = () => {
<
div
className=
{
styles
.
search
}
>
<
Search
placeholder=
{
intl
.
formatMessage
({
id
:
'activityPage.searchshousuo'
})
}
onChange=
{
(
e
)
=>
onChange
(
e
.
target
.
value
)
}
onSearch=
{
handleSearch
}
/>
</
div
>
<
Link
to=
'/memberCenter/marketingAbility/activityPages/management/add'
>
<
Button
icon=
{
<
PlusOutlined
/>
}
type=
"primary"
>
{
intl
.
formatMessage
({
id
:
'activityPage.add'
})
}
</
Button
>
</
Link
>
</
div
>
<
Spin
spinning=
{
loading
}
wrapperClassName=
{
styles
.
body
}
>
<
div
className=
{
styles
.
table
}
>
...
...
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