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
3f2f71a9
Commit
3f2f71a9
authored
Mar 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费
parent
3316cba4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/components/detail/index.scss
+1
-0
src/components/limit-free/index.js
+4
-4
src/components/limit-free/index.scss
+1
-0
No files found.
src/components/detail/index.scss
View file @
3f2f71a9
...
@@ -305,6 +305,7 @@
...
@@ -305,6 +305,7 @@
color
:
#333
;
color
:
#333
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
0
0
5px
5px
;
border-radius
:
0
0
5px
5px
;
font-size
:
15px
;
}
}
&
button
:first-child
{
&
button
:first-child
{
...
...
src/components/limit-free/index.js
View file @
3f2f71a9
...
@@ -70,9 +70,9 @@ class LimitFree extends Component {
...
@@ -70,9 +70,9 @@ class LimitFree extends Component {
}
}
}
}
getCourse
=
id
=>
{
getCourse
=
(
courseId
,
vCourseId
)
=>
{
http
.
post
(
`
${
API
.
home
}
/sys/limitFree/receive`
,
{
http
.
post
(
`
${
API
.
home
}
/sys/limitFree/receive`
,
{
course_id
:
i
d
course_id
:
courseI
d
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
code
,
msg
}
=
res
.
data
const
{
code
,
msg
}
=
res
.
data
...
@@ -93,7 +93,7 @@ class LimitFree extends Component {
...
@@ -93,7 +93,7 @@ class LimitFree extends Component {
}}
>
知道了
}}
>
知道了
<
/button
>
<
/button
>
<
button
onClick
=
{()
=>
{
<
button
onClick
=
{()
=>
{
this
.
toPlay
(
i
d
)
this
.
toPlay
(
vCourseI
d
)
instance
.
close
()
instance
.
close
()
}}
>
立即学习
}}
>
立即学习
<
/button
>
<
/button
>
...
@@ -175,7 +175,7 @@ class LimitFree extends Component {
...
@@ -175,7 +175,7 @@ class LimitFree extends Component {
<
span
className
=
{
'origin-price'
}
>
¥
{
item
.
price0
}
<
/span
>
<
span
className
=
{
'origin-price'
}
>
¥
{
item
.
price0
}
<
/span
>
<
button
onClick
=
{
e
=>
{
<
button
onClick
=
{
e
=>
{
e
.
stopPropagation
()
e
.
stopPropagation
()
this
.
getCourse
(
item
.
course_id
)
this
.
getCourse
(
item
.
course_id
,
item
.
v_course_id
)
}}
>
免费领取
}}
>
免费领取
<
/button
>
<
/button
>
<
/div
>
<
/div
>
...
...
src/components/limit-free/index.scss
View file @
3f2f71a9
...
@@ -213,6 +213,7 @@
...
@@ -213,6 +213,7 @@
color
:
#333
;
color
:
#333
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
0
0
5px
5px
;
border-radius
:
0
0
5px
5px
;
font-size
:
15px
;
}
}
&
button
:first-child
{
&
button
:first-child
{
...
...
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