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
3fc3f840
Commit
3fc3f840
authored
Aug 29, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更名
parent
86a5e33e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.tsx
src/pages/member/components/SincerityInfo/index.tsx
+5
-5
No files found.
src/pages/member/components/SincerityInfo/index.tsx
View file @
3fc3f840
...
@@ -67,10 +67,10 @@ const ContentBox: React.FC<ContentBoxProps> = ({
...
@@ -67,10 +67,10 @@ const ContentBox: React.FC<ContentBoxProps> = ({
);
);
interface
MoodProps
{
interface
MoodProps
{
type
:
'smile'
|
'noBad'
|
'sad'
;
type
:
'smile'
|
'no
t
Bad'
|
'sad'
;
};
};
const
Mood
:
React
.
FC
<
MoodProps
>
=
({
type
=
'smile'
})
:
React
.
ReactNode
=>
{
const
Mood
:
React
.
FC
<
MoodProps
>
=
({
type
=
'smile'
})
=>
{
let
node
=
null
;
let
node
=
null
;
switch
(
type
)
{
switch
(
type
)
{
...
@@ -78,7 +78,7 @@ const Mood: React.FC<MoodProps> = ({ type = 'smile' }): React.ReactNode => {
...
@@ -78,7 +78,7 @@ const Mood: React.FC<MoodProps> = ({ type = 'smile' }): React.ReactNode => {
node
=
<><
SmileFilled
style=
{
{
color
:
'#41CC9E'
,
marginRight
:
4
}
}
/>
好评
</>;
node
=
<><
SmileFilled
style=
{
{
color
:
'#41CC9E'
,
marginRight
:
4
}
}
/>
好评
</>;
break
;
break
;
case
'noBad'
:
case
'no
t
Bad'
:
node
=
<><
MehFilled
style=
{
{
color
:
'#FFC400'
,
marginRight
:
4
}
}
/>
中评
</>;
node
=
<><
MehFilled
style=
{
{
color
:
'#FFC400'
,
marginRight
:
4
}
}
/>
中评
</>;
break
;
break
;
...
@@ -289,7 +289,7 @@ const SincerityInfo: React.FC<{}> = props => {
...
@@ -289,7 +289,7 @@ const SincerityInfo: React.FC<{}> = props => {
},
},
{
{
id
:
2
,
id
:
2
,
title
:
(<
Mood
type=
"noBad"
/>),
title
:
(<
Mood
type=
"no
t
Bad"
/>),
day7
:
10
,
day7
:
10
,
day30
:
10
,
day30
:
10
,
day180
:
10
,
day180
:
10
,
...
@@ -424,7 +424,7 @@ const SincerityInfo: React.FC<{}> = props => {
...
@@ -424,7 +424,7 @@ const SincerityInfo: React.FC<{}> = props => {
extra=
{
(
extra=
{
(
<
Radio
.
Group
onChange=
{
()
=>
{}
}
>
<
Radio
.
Group
onChange=
{
()
=>
{}
}
>
<
Radio
.
Button
value=
"good"
>
好评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"good"
>
好评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"noBad"
>
中评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"no
t
Bad"
>
中评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"bad"
>
差评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"bad"
>
差评
</
Radio
.
Button
>
<
Radio
.
Button
value=
"all"
>
全部
</
Radio
.
Button
>
<
Radio
.
Button
value=
"all"
>
全部
</
Radio
.
Button
>
</
Radio
.
Group
>
</
Radio
.
Group
>
...
...
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