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
64305829
Commit
64305829
authored
Mar 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'limit-free' into dev
parents
81040e79
3316cba4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/components/detail/btnstatus/index.js
+5
-2
src/components/detail/index.js
+3
-3
No files found.
src/components/detail/btnstatus/index.js
View file @
64305829
...
...
@@ -298,7 +298,6 @@ class BtnStatus extends Component {
// 隐藏弹窗
handleToHide
=
(
key
)
=>
{
console
.
log
(
key
);
this
.
setState
({
[
key
]:
false
});
...
...
@@ -525,6 +524,10 @@ class BtnStatus extends Component {
}
{
/*
*
* limit_free_status: 0 未领取 1已领取未过期 2已过期
* */
info
.
is_limit_free
&&
info
.
limit_free_status
==
0
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-m'
onClick
=
{()
=>
this
.
qimoChatClick
()}
>
<
i
className
=
'iconfont iconerji'
><
/i
>
...
...
@@ -536,7 +539,7 @@ class BtnStatus extends Component {
if
(
user
.
hasError
){
history
.
push
(
'/passport'
)
}
else
{
getCourse
(
info
.
course_id
)
getCourse
(
info
.
course_id
,
info
.
v_course_id
)
}
}}
>
立即领取
<
/button
>
<
/div
>
...
...
src/components/detail/index.js
View file @
64305829
...
...
@@ -498,10 +498,10 @@ class Detail extends Component {
m
:
Math
.
floor
(
seconds
/
60
%
60
).
toString
().
padStart
(
2
,
'0'
)
})
getCourse
=
id
=>
{
getCourse
=
(
courseId
,
vCourseId
)
=>
{
const
{
history
}
=
this
.
props
http
.
post
(
`
${
API
.
home
}
/sys/limitFree/receive`
,
{
course_id
:
i
d
course_id
:
courseI
d
})
.
then
(
res
=>
{
const
{
code
,
msg
}
=
res
.
data
...
...
@@ -522,7 +522,7 @@ class Detail extends Component {
}}
>
知道了
<
/button
>
<
button
onClick
=
{()
=>
{
history
.
push
(
`/play/video?id=
${
i
d
}
`
)
history
.
push
(
`/play/video?id=
${
vCourseI
d
}
`
)
instance
.
close
()
}}
>
立即学习
<
/button
>
...
...
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