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
7dde01da
Commit
7dde01da
authored
Mar 12, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费
parent
8c943d62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/components/detail/btnstatus/index.js
+8
-1
src/components/detail/index.js
+3
-1
No files found.
src/components/detail/btnstatus/index.js
View file @
7dde01da
...
@@ -532,7 +532,14 @@ class BtnStatus extends Component {
...
@@ -532,7 +532,14 @@ class BtnStatus extends Component {
<
span
>
课程咨询
<
/span
>
<
span
>
课程咨询
<
/span
>
<
/a
>
<
/a
>
<
button
className
=
{
'get-course btn'
}
onClick
=
{()
=>
{
this
.
props
.
getCourse
(
info
.
course_id
)}}
>
立即领取
<
/button
>
<
button
className
=
{
'get-course btn'
}
onClick
=
{()
=>
{
const
{
history
,
user
,
getCourse
}
=
this
.
props
if
(
user
.
hasError
){
history
.
push
(
'/passport'
)
}
else
{
getCourse
(
info
.
course_id
)
}
}}
>
立即领取
<
/button
>
<
/div
>
<
/div
>
}
}
...
...
src/components/detail/index.js
View file @
7dde01da
...
@@ -539,6 +539,8 @@ class Detail extends Component {
...
@@ -539,6 +539,8 @@ class Detail extends Component {
render
()
{
render
()
{
const
{
course
:
{
course_info
=
{}},
barInfo
,
singleBox
,
singleType
,
isRedPacket
,
countDownTime
}
=
this
.
state
;
const
{
course
:
{
course_info
=
{}},
barInfo
,
singleBox
,
singleType
,
isRedPacket
,
countDownTime
}
=
this
.
state
;
const
{
d
,
h
,
m
}
=
this
.
formatTime
(
course_info
.
limit_free_time
)
let
courseInfo
=
''
,
let
courseInfo
=
''
,
service
=
''
,
service
=
''
,
number
=
0
,
number
=
0
,
...
@@ -627,7 +629,7 @@ class Detail extends Component {
...
@@ -627,7 +629,7 @@ class Detail extends Component {
:
:
course_info
.
limit_free_status
==
1
course_info
.
limit_free_status
==
1
?
<
div
className
=
{
'time-limit'
}
>
?
<
div
className
=
{
'time-limit'
}
>
<
span
>
有效期
7
天,
05
天
14
时
23
分后过期
<
/span
>
<
span
>
有效期
7
天,
{
d
}
天
{
h
}
时
{
m
}
分后过期
<
/span
>
<
/div
>
<
/div
>
:
null
:
null
:
null
:
null
...
...
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