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
6674d66f
Commit
6674d66f
authored
Aug 21, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付
parent
187aa5e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/components/order/payOrder/PayOrder.js
+6
-6
No files found.
src/components/order/payOrder/PayOrder.js
View file @
6674d66f
...
@@ -97,7 +97,8 @@ export default class PayOrder extends Component {
...
@@ -97,7 +97,8 @@ export default class PayOrder extends Component {
pay
=
()
=>
{
pay
=
()
=>
{
const
{
payType
,
orderId
}
=
this
.
state
;
const
{
payType
,
orderId
}
=
this
.
state
;
if
(
payType
===
0
)
{
if
(
payType
===
0
)
{
this
.
alipayPay
(
orderId
)
this
.
alipayPay
(
orderId
);
}
else
if
(
payType
===
1
)
{
}
else
if
(
payType
===
1
)
{
this
.
weixinPay
(
orderId
)
this
.
weixinPay
(
orderId
)
}
}
...
@@ -152,14 +153,13 @@ export default class PayOrder extends Component {
...
@@ -152,14 +153,13 @@ export default class PayOrder extends Component {
clearInterval
(
_this
.
intervalPayStatus
);
clearInterval
(
_this
.
intervalPayStatus
);
_this
.
intervalPayStatus
=
null
;
_this
.
intervalPayStatus
=
null
;
// 获取课程类型
// 获取课程类型
http
.
get
(
`
${
API
.
home
}
/m/app_order/detail/
${
getParam
(
'oid'
)}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
[
'base-api'
]
}
/m/app_order/detail/
${
getParam
(
'oid'
)}
`
).
then
(
res
=>
{
if
(
res
.
data
.
data
.
course_type
===
'2'
)
{
if
(
Number
(
res
.
data
.
data
.
course_type
)
===
2
)
{
this
.
props
.
history
.
replace
(
`/togroup?id=
${
getParam
(
'oid'
)}
`
);
_
this
.
props
.
history
.
replace
(
`/togroup?id=
${
getParam
(
'oid'
)}
`
);
}
else
{
}
else
{
// 跳转到已购课程 /purchased 不需要传递任何参数
// 跳转到已购课程 /purchased 不需要传递任何参数
this
.
props
.
history
.
replace
(
`/purchased`
);
_
this
.
props
.
history
.
replace
(
`/purchased`
);
}
}
});
});
}
}
})
})
...
...
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