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
45a3e716
Commit
45a3e716
authored
Apr 27, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 隐藏账期月结到付支付方式
parent
ed8fad19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.tsx
src/pages/transaction/components/orderPayModal/index.tsx
+6
-4
No files found.
src/pages/transaction/components/orderPayModal/index.tsx
View file @
45a3e716
...
...
@@ -84,6 +84,8 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const
{
id
}
=
usePageStatus
()
const
{
data
,
payList
,
currentPayInfoId
}
=
useContext
(
OrderDetailContext
)
const
transformPayList
:
any
=
data
?
formatting
(
payList
,
"payType"
)
:
[]
/** 先隐藏账期月结 */
delete
transformPayList
[
'-1'
]
console
.
log
(
transformPayList
,
'trans'
)
const
[
visible
,
setVisible
]
=
useState
(
false
)
const
[
checked
,
setChecked
]
=
useState
<
any
>
({})
...
...
@@ -446,11 +448,11 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
<
div
className=
{
style
.
radioBox
}
>
{
(
value
as
any
[]).
map
(
v
=>
{
//
if(payOnReceived && v.value === 7)
{
// 过滤到付
//
return null
//
}
else
{
if
(
payOnReceived
&&
v
.
value
===
7
)
{
// 过滤到付
return
null
}
else
{
return
<
div
key=
{
v
.
value
}
className=
{
cx
(
style
.
payRadio
,
(
checked
&&
v
.
value
===
checked
.
id
)
?
style
.
active
:
''
)
}
onClick=
{
()
=>
setChecked
({
id
:
v
.
value
,
channel
:
v
.
channel
})
}
>
{
v
.
label
}
</
div
>
//
}
}
})
}
</
div
>
...
...
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