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
d9d91576
Commit
d9d91576
authored
Dec 16, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单通联支付添加发送尾号文字提示
parent
77e2e162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
index.tsx
src/pages/transaction/components/orderPayModal/index.tsx
+19
-1
No files found.
src/pages/transaction/components/orderPayModal/index.tsx
View file @
d9d91576
...
...
@@ -15,6 +15,7 @@ import { getSettleAccountsCommonCorporateAccountDetail } from '@/services/Settle
import
{
getPayAssetAccountBalance
,
getPayCreditGetCredit
,
getPayEAccountAllInPayGetUserBalance
,
getPayEAccountAllInPayReSendPayCode
}
from
'@/services/PayV2Api'
import
useCountDown
from
'@/utils/hooks'
import
{
postPayEAccountAllInPayConfirmPay
}
from
'@/services/PayV2Api/id13209'
import
{
getPayEAccountAllInPayGetAccountDetail
}
from
'@/services/PayV2Api/id13209'
const
intl
=
getIntl
();
export
interface
OrderPayModalProps
{
currentRef
:
any
,
...
...
@@ -61,6 +62,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const
[
fileLists
,
setFileLists
]
=
useState
<
any
>
([])
const
[
tradeCode
,
setTradeCode
]
=
useState
<
string
>
(
''
)
// 交易号
const
[
payResultVisible
,
setPayResultVisible
]
=
useState
<
boolean
>
(
false
)
const
[
phoneEndNumber
,
setPhoneEndNumber
]
=
useState
(
''
)
useEffect
(()
=>
{
if
(
currentRef
)
{
...
...
@@ -272,6 +274,12 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setIsSpin
(
false
)
})
}
// 查询e账户手机尾号
getPayEAccountAllInPayGetAccountDetail
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setPhoneEndNumber
(
res
.
data
.
phone
)
}
})
setCurrent
(
99
)
setPayStep
(
1
)
}
else
if
(
checked
.
id
===
14
)
{
...
...
@@ -800,6 +808,16 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
{
checked
?.
channel
}
</
span
>
</
p
>
{
checked
.
id
===
15
&&
<
p
>
<
span
className=
{
style
.
title
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.zhanghukeyongyueyuan'
})
}
:
</
span
>
<
span
className=
{
style
.
amount
}
>
{
balanceInfo
?.
toFixed
(
2
)
}
</
span
>
</
p
>
}
<
p
>
<
span
className=
{
style
.
title
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.zhifujineyuan'
})
}
:
...
...
@@ -825,7 +843,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
>
<
Form
.
Item
label=
"验证码"
// extra=
{
extra
}
extra=
{
phoneEndNumber
?
`已将验证码发送至您尾号为${phoneEndNumber.substr(7, 4)}的手机号`
:
''
}
style=
{
{
textAlign
:
"left"
}
}
>
<
Row
gutter=
{
8
}
>
...
...
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