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
3d747862
Commit
3d747862
authored
Oct 21, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定金支付页
parent
72e83e79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/components/deposit-pay-order/index.js
+5
-6
No files found.
src/components/deposit-pay-order/index.js
View file @
3d747862
...
...
@@ -55,12 +55,12 @@ class PayOrder extends Component {
})
}
}
print
=
(...
e
)
=>
{
console
.
log
(
e
)
}
// 确定购买
pay
=
()
=>
{
const
{
payType
,
orderId
}
=
this
.
state
if
(
!
this
.
state
.
agree
){
return
}
if
(
payType
===
0
)
{
this
.
alipayPay
(
orderId
)
}
else
if
(
payType
===
1
)
{
...
...
@@ -113,7 +113,7 @@ class PayOrder extends Component {
if
(
res
.
data
.
errno
===
401
)
{
clearInterval
(
_this
.
intervalPayStatus
)
_this
.
intervalPayStatus
=
null
_this
.
props
.
history
.
replace
(
`/expand/callback`
)
_this
.
props
.
history
.
replace
(
`/expand/callback
?order_id=
${
getParam
(
'oid'
)}
`
)
}
})
},
1000
)
...
...
@@ -183,7 +183,6 @@ class PayOrder extends Component {
// 支付宝支付
alipayPay
=
(
orderId
)
=>
{
http
.
get
(
`
${
API
[
'base-api'
]}
/pay/alipay/wap_charge_new/oid/
${
orderId
}
`
).
then
((
res
)
=>
{
console
.
log
(
JSON
.
stringify
(
res
.
data
.
data
))
if
(
res
.
data
.
errno
===
0
)
{
this
.
payCallback
()
window
.
location
=
res
.
data
.
data
.
url
...
...
@@ -262,7 +261,7 @@ class PayOrder extends Component {
<
/div
>
)
return
(
<
VList
handleClick
=
{
this
.
print
}
key
=
{
index
}
img
=
{
item
.
image_name
}
<
VList
key
=
{
index
}
img
=
{
item
.
image_name
}
id
=
{
item
.
course_id
}
info
=
{
Info
}
><
/VList
>
)
...
...
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