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
b5769fff
Commit
b5769fff
authored
Sep 11, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台补充字段对接
parent
d5b3367e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
68 deletions
+96
-68
utils.less
src/global/styles/utils.less
+21
-0
index.less
src/pages/member/components/EquityInfo/index.less
+8
-3
index.tsx
src/pages/member/components/EquityInfo/index.tsx
+29
-30
index.tsx
src/pages/member/components/LevelInfo/index.tsx
+0
-10
index.tsx
src/pages/member/components/SincerityInfo/index.tsx
+36
-25
equityInfo.tsx
src/pages/member/memberMaintain/detailed/equityInfo.tsx
+1
-0
equityInfo.tsx
src/pages/member/memberQuery/detailed/equityInfo.tsx
+1
-0
No files found.
src/global/styles/utils.less
View file @
b5769fff
...
@@ -40,3 +40,23 @@
...
@@ -40,3 +40,23 @@
-webkit-line-clamp: @line;
-webkit-line-clamp: @line;
overflow: hidden;
overflow: hidden;
}
}
.silkyScrollbar() {
&::-webkit-scrollbar {
height: 8px;
width: 6px;
background: #f0f2f5;
border-radius: 5px;
}
&::-webkit-scrollbar-button {
display: none;
}
&::-webkit-scrollbar-thumb {
width: 8px;
min-height: 15px;
background: rgba(0,0,0,.2);
border-radius: 5px;
}
}
\ No newline at end of file
src/pages/member/components/EquityInfo/index.less
View file @
b5769fff
@import '../../../../global/styles/utils.less';
.equityInfo {
.equityInfo {
.container {
.container {
display: flex;
display: flex;
...
@@ -9,7 +11,7 @@
...
@@ -9,7 +11,7 @@
border-radius: 8px;
border-radius: 8px;
&-title {
&-title {
margin-bottom: 2
4
px;
margin-bottom: 2
0
px;
line-height: 24px;
line-height: 24px;
font-size: 16px;
font-size: 16px;
font-weight: 500;
font-weight: 500;
...
@@ -23,11 +25,14 @@
...
@@ -23,11 +25,14 @@
.tofo {
.tofo {
display: flex;
display: flex;
padding: 0;
padding: 0
0 4px
;
margin: 0;
margin: 0;
min-height: 101px;
overflow-x: auto;
.silkyScrollbar();
&-item {
&-item {
flex:
1
;
flex:
0 0 33.333%
;
list-style: none;
list-style: none;
&-logo {
&-logo {
...
...
src/pages/member/components/EquityInfo/index.tsx
View file @
b5769fff
...
@@ -3,6 +3,7 @@ import {
...
@@ -3,6 +3,7 @@ import {
Row
,
Row
,
Col
,
Col
,
Tabs
,
Tabs
,
Tooltip
,
}
from
'antd'
;
}
from
'antd'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
...
@@ -47,12 +48,28 @@ export interface EquityInfoProps {
...
@@ -47,12 +48,28 @@ export interface EquityInfoProps {
sumReturnMoney
?:
number
,
// 累计返现金额
sumReturnMoney
?:
number
,
// 累计返现金额
sumUsedPoint
?:
number
,
// 已用积分
sumUsedPoint
?:
number
,
// 已用积分
sumPoint
?:
number
,
// 累计积分
sumPoint
?:
number
,
// 累计积分
rights
?:
{
acquireWay
:
string
,
id
:
number
,
name
:
string
,
paramWay
:
string
,
parameter
:
string
,
remark
:
string
,
rightTypeEnum
:
number
,
status
:
number
,
}[];
};
};
fetchReceivedList
?:
(
params
:
FetchParams
)
=>
Promise
<
{
data
:
ReceivedData
[]
,
totalCount
:
number
}
>
;
fetchReceivedList
?:
(
params
:
FetchParams
)
=>
Promise
<
{
data
:
ReceivedData
[]
,
totalCount
:
number
}
>
;
fetchUsageList
?:
(
params
:
FetchParams
)
=>
Promise
<
{
data
:
UsageData
[]
,
totalCount
:
number
}
>
;
fetchUsageList
?:
(
params
:
FetchParams
)
=>
Promise
<
{
data
:
UsageData
[]
,
totalCount
:
number
}
>
;
}
}
const
equityTxtMap
=
{
1
:
'折扣'
,
2
:
'返现'
,
3
:
'积分'
,
};
const
EquityInfo
:
React
.
FC
<
EquityInfoProps
>
=
({
const
EquityInfo
:
React
.
FC
<
EquityInfoProps
>
=
({
equityInfo
=
{},
equityInfo
=
{},
fetchReceivedList
,
fetchReceivedList
,
...
@@ -216,44 +233,26 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
...
@@ -216,44 +233,26 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
<
div
className=
{
styles
[
'container-content'
]
}
>
<
div
className=
{
styles
[
'container-content'
]
}
>
<
ul
className=
{
styles
.
tofo
}
>
<
ul
className=
{
styles
.
tofo
}
>
<
li
className=
{
styles
[
'tofo-item'
]
}
>
{
equityInfo
.
rights
?
equityInfo
.
rights
.
map
(
item
=>
(
<
div
className=
{
styles
[
'tofo-item-logo'
]
}
>
<
li
key=
{
item
.
id
}
className=
{
styles
[
'tofo-item'
]
}
>
<
img
src=
{
equity3
}
/>
</
div
>
<
div
className=
{
styles
[
'tofo-item-title'
]
}
>
价格权益
<
QuestionCircleOutlined
/>
</
div
>
<
div
className=
{
styles
[
'tofo-item-extra'
]
}
>
<
span
className=
{
classNames
(
styles
[
'tofo-item-tag'
],
styles
[
'tofo-item-tag-price'
])
}
>
95% 折扣
</
span
>
</
div
>
</
li
>
<
li
className=
{
styles
[
'tofo-item'
]
}
>
<
div
className=
{
styles
[
'tofo-item-logo'
]
}
>
<
div
className=
{
styles
[
'tofo-item-logo'
]
}
>
<
img
src=
{
equity1
}
/>
<
img
src=
{
require
(
`@/assets/imgs/equity-${item.rightTypeEnum}.png`
)
}
/>
</
div
>
</
div
>
<
div
className=
{
styles
[
'tofo-item-title'
]
}
>
<
div
className=
{
styles
[
'tofo-item-title'
]
}
>
返现权益
{
item
.
name
}
<
Tooltip
title=
{
item
.
remark
}
>
<
QuestionCircleOutlined
/>
<
QuestionCircleOutlined
/>
</
Tooltip
>
</
div
>
</
div
>
<
div
className=
{
styles
[
'tofo-item-extra'
]
}
>
<
div
className=
{
styles
[
'tofo-item-extra'
]
}
>
<
span
className=
{
classNames
(
styles
[
'tofo-item-tag'
],
styles
[
'tofo-item-tag-recurrence'
])
}
>
0.1% 返现
</
span
>
<
span
</
div
>
className=
{
classNames
(
styles
[
'tofo-item-tag'
],
styles
[
'tofo-item-tag-price'
])
}
</
li
>
>
{
item
.
parameter
}
{
equityTxtMap
[
item
.
rightTypeEnum
]
||
''
}
<
li
className=
{
styles
[
'tofo-item'
]
}
>
</
span
>
<
div
className=
{
styles
[
'tofo-item-logo'
]
}
>
<
img
src=
{
equity2
}
/>
</
div
>
<
div
className=
{
styles
[
'tofo-item-title'
]
}
>
积分权益
<
QuestionCircleOutlined
/>
</
div
>
<
div
className=
{
styles
[
'tofo-item-extra'
]
}
>
<
span
className=
{
classNames
(
styles
[
'tofo-item-tag'
],
styles
[
'tofo-item-tag-integral'
])
}
>
1% 积分
</
span
>
</
div
>
</
div
>
</
li
>
</
li
>
))
:
null
}
</
ul
>
</
ul
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/member/components/LevelInfo/index.tsx
View file @
b5769fff
...
@@ -119,16 +119,6 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
...
@@ -119,16 +119,6 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
headStyle=
{
{
headStyle=
{
{
borderBottom
:
'none'
,
borderBottom
:
'none'
,
}
}
}
}
extra=
{
(
<
Radio
.
Group
buttonStyle=
"solid"
onChange=
{
()
=>
{
}
}
>
<
Radio
.
Button
value=
"all"
>
天
</
Radio
.
Button
>
<
Radio
.
Button
value=
"day7"
>
周
</
Radio
.
Button
>
<
Radio
.
Button
value=
"day30"
>
月
</
Radio
.
Button
>
</
Radio
.
Group
>
)
}
>
>
<
div
className=
{
styles
.
infoWrap
}
>
<
div
className=
{
styles
.
infoWrap
}
>
<
div
className=
{
styles
[
'infoWrap-left'
]
}
>
<
div
className=
{
styles
[
'infoWrap-left'
]
}
>
...
...
src/pages/member/components/SincerityInfo/index.tsx
View file @
b5769fff
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
Tabs
,
Tabs
,
Card
,
Card
,
Tooltip
,
Tooltip
,
Radio
,
Button
,
Spin
,
Spin
,
}
from
'antd'
;
}
from
'antd'
;
import
{
import
{
...
@@ -425,12 +425,13 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -425,12 +425,13 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
};
};
// 获取交易评价记录列表
// 获取交易评价记录列表
const
getSalesRecordList
=
()
=>
{
const
getSalesRecordList
=
(
extraParams
:
{[
key
:
string
]:
any
}
=
{}
)
=>
{
if
(
fetchSalesList
)
{
if
(
fetchSalesList
)
{
setSalesListLoading
(
true
);
setSalesListLoading
(
true
);
fetchSalesList
({
fetchSalesList
({
current
:
salesPage
,
current
:
salesPage
,
pageSize
:
salesSize
,
pageSize
:
salesSize
,
...
extraParams
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setSalesList
(
data
);
setSalesList
(
data
);
...
@@ -442,12 +443,13 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -442,12 +443,13 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
};
};
// 获取售后评价记录列表
// 获取售后评价记录列表
const
getAfterRecordList
=
()
=>
{
const
getAfterRecordList
=
(
extraParams
:
{[
key
:
string
]:
any
}
=
{}
)
=>
{
if
(
fetchAfterList
)
{
if
(
fetchAfterList
)
{
setAfterListLoading
(
true
);
setAfterListLoading
(
true
);
fetchAfterList
({
fetchAfterList
({
current
:
afterPage
,
current
:
afterPage
,
pageSize
:
afterSize
,
pageSize
:
afterSize
,
...
extraParams
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setAfterList
(
data
);
setAfterList
(
data
);
...
@@ -529,6 +531,20 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -529,6 +531,20 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
getComplaintList
();
getComplaintList
();
};
};
const
handleSalesRadioChange
=
value
=>
{
setSalesPage
(
1
);
getSalesRecordList
({
starLevel
:
value
,
});
};
const
handleAfterRadioChange
=
value
=>
{
setAfterPage
(
1
);
getAfterRecordList
({
starLevel
:
value
,
});
};
return
(
return
(
<
div
className=
{
styles
.
sincerityInfo
}
>
<
div
className=
{
styles
.
sincerityInfo
}
>
<
Row
gutter=
{
[
0
,
24
]
}
>
<
Row
gutter=
{
[
0
,
24
]
}
>
...
@@ -582,12 +598,12 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -582,12 +598,12 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
onChange=
{
handleSalesTabChange
}
onChange=
{
handleSalesTabChange
}
tabBarExtraContent=
{
tabBarExtraContent=
{
salesTabKey
===
'evaluateRecord'
?
(
salesTabKey
===
'evaluateRecord'
?
(
<
Radio
.
Group
onChange=
{
()
=>
{
}
}
>
<>
<
Radio
.
Button
value=
"good"
>
好评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleSalesRadioChange
(
3
)
}
>
好评
</
Button
>
<
Radio
.
Button
value=
"notBad"
>
中评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleSalesRadioChange
(
2
)
}
>
中评
</
Button
>
<
Radio
.
Button
value=
"bad"
>
差评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleSalesRadioChange
(
1
)
}
>
差评
</
Button
>
<
Radio
.
Button
value=
"all"
>
全部
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleSalesRadioChange
(
0
)
}
>
全部
</
Button
>
</
Radio
.
Group
>
</>
)
:
null
)
:
null
}
}
>
>
...
@@ -646,12 +662,12 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -646,12 +662,12 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
onChange=
{
handleAfterTabChange
}
onChange=
{
handleAfterTabChange
}
tabBarExtraContent=
{
tabBarExtraContent=
{
afterTabKey
===
'evaluateRecord'
?
(
afterTabKey
===
'evaluateRecord'
?
(
<
Radio
.
Group
onChange=
{
()
=>
{
}
}
>
<>
<
Radio
.
Button
value=
"good"
>
好评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleAfterRadioChange
(
3
)
}
>
好评
</
Button
>
<
Radio
.
Button
value=
"notBad"
>
中评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleAfterRadioChange
(
2
)
}
>
中评
</
Button
>
<
Radio
.
Button
value=
"bad"
>
差评
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleAfterRadioChange
(
1
)
}
>
差评
</
Button
>
<
Radio
.
Button
value=
"all"
>
全部
</
Radio
.
Button
>
<
Button
type=
"text"
onClick=
{
()
=>
handleAfterRadioChange
(
0
)
}
>
全部
</
Button
>
</
Radio
.
Group
>
</>
)
:
null
)
:
null
}
}
>
>
...
@@ -705,16 +721,11 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
...
@@ -705,16 +721,11 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
MellowCard
title=
"投诉记录"
>
<
MellowCard
title=
"投诉记录"
>
<
div
className=
{
styles
[
'record-btns'
]
}
>
<
div
className=
{
styles
[
'record-btns'
]
}
>
<
Radio
.
Group
<
Button
type=
"text"
>
全部(
{
complaintSumData
?.
sum
}
)
</
Button
>
buttonStyle=
"solid"
<
Button
type=
"text"
>
最近7天(
{
complaintSumData
?.
last7days
}
)
</
Button
>
onChange=
{
()
=>
{
}
}
<
Button
type=
"text"
>
最近30天(
{
complaintSumData
?.
last30days
}
)
</
Button
>
>
<
Button
type=
"text"
>
最近180天(
{
complaintSumData
?.
last180days
}
)
</
Button
>
<
Radio
.
Button
value=
"all"
>
全部(
{
complaintSumData
?.
sum
}
)
</
Radio
.
Button
>
<
Button
type=
"text"
>
180天前(
{
complaintSumData
?.
before180days
}
)
</
Button
>
<
Radio
.
Button
value=
"day7"
>
最近7天(
{
complaintSumData
?.
last7days
}
)
</
Radio
.
Button
>
<
Radio
.
Button
value=
"day30"
>
最近30天(
{
complaintSumData
?.
last30days
}
)
</
Radio
.
Button
>
<
Radio
.
Button
value=
"day180"
>
最近180天(
{
complaintSumData
?.
last180days
}
)
</
Radio
.
Button
>
<
Radio
.
Button
value=
"day180+"
>
180天前(
{
complaintSumData
?.
before180days
}
)
</
Radio
.
Button
>
</
Radio
.
Group
>
</
div
>
</
div
>
<
PolymericTable
<
PolymericTable
...
...
src/pages/member/memberMaintain/detailed/equityInfo.tsx
View file @
b5769fff
...
@@ -66,6 +66,7 @@ const EquityInfo: React.FC<{}> = () => {
...
@@ -66,6 +66,7 @@ const EquityInfo: React.FC<{}> = () => {
sumReturnMoney
:
equityInfo
?.
sumReturnMoney
,
sumReturnMoney
:
equityInfo
?.
sumReturnMoney
,
sumUsedPoint
:
equityInfo
?.
sumUsedPoint
,
sumUsedPoint
:
equityInfo
?.
sumUsedPoint
,
sumPoint
:
equityInfo
?.
sumPoint
,
sumPoint
:
equityInfo
?.
sumPoint
,
rights
:
equityInfo
?.
rights
,
}
}
}
}
fetchReceivedList=
{
getReceivedList
}
fetchReceivedList=
{
getReceivedList
}
fetchUsageList=
{
getUsageList
}
fetchUsageList=
{
getUsageList
}
...
...
src/pages/member/memberQuery/detailed/equityInfo.tsx
View file @
b5769fff
...
@@ -66,6 +66,7 @@ const EquityInfo: React.FC<{}> = () => {
...
@@ -66,6 +66,7 @@ const EquityInfo: React.FC<{}> = () => {
sumReturnMoney
:
equityInfo
?.
sumReturnMoney
,
sumReturnMoney
:
equityInfo
?.
sumReturnMoney
,
sumUsedPoint
:
equityInfo
?.
sumUsedPoint
,
sumUsedPoint
:
equityInfo
?.
sumUsedPoint
,
sumPoint
:
equityInfo
?.
sumPoint
,
sumPoint
:
equityInfo
?.
sumPoint
,
rights
:
equityInfo
?.
rights
,
}
}
}
}
fetchReceivedList=
{
getReceivedList
}
fetchReceivedList=
{
getReceivedList
}
fetchUsageList=
{
getUsageList
}
fetchUsageList=
{
getUsageList
}
...
...
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