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
linweijiong
jinfa-platform
Commits
d68c0202
Commit
d68c0202
authored
Feb 20, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 展示售后评价内容
parent
4c2f499f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
8 deletions
+21
-8
index.tsx
src/pages/afterService/components/ReturnDetailInfo/index.tsx
+1
-1
index.tsx
src/pages/afterService/components/Score/index.tsx
+12
-1
index.tsx
...rvice/exchangeApplication/components/DetailInfo/index.tsx
+1
-1
index.tsx
...terService/exchangeManage/components/DetailInfo/index.tsx
+1
-1
index.tsx
...Service/repairApplication/components/DetailInfo/index.tsx
+2
-1
index.tsx
...afterService/repairManage/components/DetailInfo/index.tsx
+2
-1
index.tsx
...Service/returnApplication/components/DetailInfo/index.tsx
+1
-1
index.tsx
...afterService/returnManage/components/DetailInfo/index.tsx
+1
-1
No files found.
src/pages/afterService/components/ReturnDetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-02-
09 15:19:39
* @LastEditTime: 2021-02-
20 14:13:26
* @Description: 退款明细
*/
import
React
,
{
useState
}
from
'react'
;
...
...
src/pages/afterService/components/Score/index.tsx
View file @
d68c0202
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-03 14:12:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-11-18 15:48:12
* @LastEditTime: 202
1-02-20 14:28:19
* @Description: 评价
*/
import
React
from
'react'
;
...
...
@@ -29,11 +29,19 @@ const TITLE_MAP = {
};
interface
ScoreProps
{
/**
* 分数
*/
score
:
number
;
/**
* 内容
*/
content
:
string
;
};
const
Score
:
React
.
FC
<
ScoreProps
>
=
({
score
=
0
,
content
,
})
=>
{
return
(
<
MellowCard
...
...
@@ -48,6 +56,9 @@ const Score: React.FC<ScoreProps> = ({
formatContent=
{
(
val
)
=>
`${TITLE_MAP[score]}`
}
color=
{
COLOR_MAP
[
score
]
}
/>
<
p
style=
{
{
color
:
'#909399'
}
}
>
售后评价:
{
content
}
</
p
>
</
MellowCard
>
);
};
...
...
src/pages/afterService/exchangeApplication/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -455,7 +455,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
src/pages/afterService/exchangeManage/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -509,7 +509,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
src/pages/afterService/repairApplication/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -276,8 +276,9 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
{
isFinished
&&
(
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
src/pages/afterService/repairManage/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -287,8 +287,9 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
{
isFinished
&&
(
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
src/pages/afterService/returnApplication/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -483,7 +483,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
src/pages/afterService/returnManage/components/DetailInfo/index.tsx
View file @
d68c0202
...
...
@@ -521,7 +521,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<
Col
span=
{
6
}
>
{
/* 售后评价 */
}
<
Suspense
fallback=
{
null
}
>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
/>
<
Score
score=
{
detailInfo
?.
evaluate
?.
level
}
content=
{
detailInfo
?.
evaluate
?.
content
}
/>
</
Suspense
>
</
Col
>
)
}
...
...
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