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
8a0f5775
Commit
8a0f5775
authored
Dec 21, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 支付页面未显示出支付错误信息的问题
parent
ffe6d9b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
index.tsx
src/pages/lxMall/pay/index.tsx
+16
-13
No files found.
src/pages/lxMall/pay/index.tsx
View file @
8a0f5775
...
...
@@ -120,6 +120,21 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
window
.
location
.
href
=
'/'
}
const
renderError
=
()
=>
{
return
(
<
div
>
<
CommonHeader
logoUrl=
{
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
?
shopInfo
?.
logo
:
mallInfo
.
logoUrl
}
title=
"支付错误"
/>
<
div
className=
{
styles
.
errmsg
}
>
<
p
>
{
errMsg
}
</
p
>
<
Button
type=
"primary"
className=
{
styles
.
backbtn
}
onClick=
{
()
=>
backHome
()
}
>
返回首页
</
Button
>
</
div
>
</
div
>
)
}
return
payInfo
?
!
payState
?
(
<
div
className=
{
styles
.
pay
}
>
<
CommonHeader
...
...
@@ -132,19 +147,7 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
}
</
div
>
</
div
>
)
:
loading
?
null
:
(
<
div
>
<
CommonHeader
logoUrl=
{
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
?
shopInfo
?.
logo
:
mallInfo
.
logoUrl
}
title=
"支付错误"
/>
<
div
className=
{
styles
.
errmsg
}
>
<
p
>
{
errMsg
}
</
p
>
<
Button
type=
"primary"
className=
{
styles
.
backbtn
}
onClick=
{
()
=>
backHome
()
}
>
返回首页
</
Button
>
</
div
>
</
div
>
):
null
)
:
loading
?
null
:
renderError
():
renderError
()
}
export
default
PayPage
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