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
3f357618
Commit
3f357618
authored
Aug 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参团下单时,增加参数
parent
cb6577ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
src/components/detail/group/index.js
+7
-1
src/components/order/index.js
+11
-2
No files found.
src/components/detail/group/index.js
View file @
3f357618
...
...
@@ -39,7 +39,13 @@ class Group extends Component {
toPay
=
(
pdd_order_id
)
=>
{
const
{
courseInfo
,
history
}
=
this
.
props
;
if
(
courseInfo
.
group_status
===
3
)
{
history
.
push
(
`/order?id=
${
getParam
(
'id'
)}
`
,
{
group
:
1
});
history
.
push
(
`/order?id=
${
getParam
(
'id'
)}
`
,
{
group
:
1
,
pdd_order_id
}
);
}
else
{
this
.
setState
({
isShowMore
:
false
,
...
...
src/components/order/index.js
View file @
3f357618
...
...
@@ -121,8 +121,17 @@ class Order extends Component {
if
(
!
this
.
state
.
perfect
)
{
Toast
.
info
(
'请完善报名信息!'
);
}
if
(
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
group
===
1
)
{
http
.
post
(
`
${
API
[
'base-api'
]}
/pdd/m`
,
{
course_id
:
getParam
(
"id"
),
ischeck
:
this
.
state
.
useBalance
}).
then
(
res
=>
{
const
{
location
:
{
state
=
{}
}
}
=
this
.
props
;
if
(
state
.
group
===
1
)
{
let
params
=
state
.
pdd_order_id
?
{
course_id
:
getParam
(
"id"
),
ischeck
:
this
.
state
.
useBalance
,
pdd_order_id
:
state
.
pdd_order_id
}
:
{
course_id
:
getParam
(
"id"
),
ischeck
:
this
.
state
.
useBalance
,
}
http
.
post
(
`
${
API
[
'base-api'
]}
/pdd/m`
,
params
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
errno
===
200
)
{
sessionStorage
.
removeItem
(
'orderUseCacheObj'
);
...
...
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