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
70c3807a
Commit
70c3807a
authored
Aug 22, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
1e6b164e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
src/components/detail/index.js
+7
-1
src/components/detail/single/index.js
+2
-0
No files found.
src/components/detail/index.js
View file @
70c3807a
...
...
@@ -99,6 +99,11 @@ class Detail extends Component {
})
}
}
showSingleBox
=
()
=>
{
this
.
setState
({
singleBox
:
true
})
}
// componentWillReceiveProps(nextProps) {
// let _this = this;
...
...
@@ -303,7 +308,8 @@ class Detail extends Component {
{
/*单集购买弹窗*/
}
<
Single
singleBox
=
{
this
.
state
.
singleBox
}
singleBox
=
{
this
.
state
.
singleBox
}
showSingleBox
=
{
this
.
showSingleBox
}
boxHide
=
{
this
.
boxHide
}
data
=
{
this
.
state
.
singMess
}
vcourseId
=
{
course_info
.
v_course_id
}
...
...
src/components/detail/single/index.js
View file @
70c3807a
...
...
@@ -111,6 +111,7 @@ class Single extends Component {
clearInterval
(
_this
.
intervalPayStatus
);
_this
.
intervalPayStatus
=
null
;
// 获取课程类型
this
.
props
.
showSingleBox
();
http
.
get
(
`
${
API
[
'base-api'
]}
/class_order_status/
${
getParam
(
'oid'
)}
`
).
then
((
res
)
=>
{
Toast
.
info
(
Number
(
res
.
data
.
data
.
errno
));
if
(
Number
(
res
.
data
.
data
.
errno
)
===
200
)
{
...
...
@@ -176,6 +177,7 @@ class Single extends Component {
clearInterval
(
_this
.
intervalPayStatus
);
_this
.
intervalPayStatus
=
null
;
// 获取课程类型
this
.
props
.
showSingleBox
();
http
.
get
(
`
${
API
[
'base-api'
]}
/class_order_status/
${
getParam
(
'oid'
)}
`
).
then
((
res
)
=>
{
if
(
Number
(
res
.
data
.
data
.
errno
)
===
200
)
{
// 正常购买单集成功
...
...
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