Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
baiguangyao
mr-julyedu
Commits
72e83e79
Commit
72e83e79
authored
Oct 21, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定金支付页
parent
63a5d142
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/components/deposit-pay-order/index.js
+6
-10
No files found.
src/components/deposit-pay-order/index.js
View file @
72e83e79
...
...
@@ -113,15 +113,7 @@ class PayOrder extends Component {
if
(
res
.
data
.
errno
===
401
)
{
clearInterval
(
_this
.
intervalPayStatus
)
_this
.
intervalPayStatus
=
null
// 获取课程类型
http
.
get
(
`
${
API
[
'base-api'
]}
/m/app_order/detail/
${
getParam
(
'oid'
)}
`
).
then
(
res
=>
{
if
(
Number
(
res
.
data
.
data
.
course_type
)
===
2
)
{
_this
.
props
.
history
.
replace
(
`/togroup?id=
${
getParam
(
'oid'
)}
`
)
}
else
{
// 跳转到已购课程 /purchased 不需要传递任何参数
_this
.
props
.
history
.
replace
(
`/purchased`
)
}
})
_this
.
props
.
history
.
replace
(
`/expand/callback`
)
}
})
},
1000
)
...
...
@@ -203,10 +195,14 @@ class PayOrder extends Component {
componentDidMount
()
{
if
(
getParam
(
'weixinpay'
))
{
if
(
getParam
(
'weixinpay'
))
{
this
.
payCallback
()
}
if
(
browser
.
isWeixin
)
{
this
.
isweixinPay
(
getParam
(
'oid'
))
}
http
.
post
(
`
${
API
[
"base-api"
]}
/m/deposit/detail`
,
{
order_id
:
this
.
state
.
orderId
...
...
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