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
bee07508
Commit
bee07508
authored
Mar 10, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费
parent
591fea8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
src/components/limit-free/index.js
+15
-3
src/components/limit-free/index.scss
+11
-1
No files found.
src/components/limit-free/index.js
View file @
bee07508
...
@@ -100,7 +100,7 @@ class LimitFree extends Component {
...
@@ -100,7 +100,7 @@ class LimitFree extends Component {
<
ul
className
=
{
'courses'
}
>
<
ul
className
=
{
'courses'
}
>
{
{
courses
&&
courses
.
length
&&
courses
.
map
((
item
,
index
)
=>
{
courses
&&
courses
.
length
&&
courses
.
map
((
item
,
index
)
=>
{
if
(
item
.
category_id
!=
key
)
{
if
(
item
.
category_id
!=
key
)
{
return
null
return
null
}
}
/*
/*
...
@@ -120,14 +120,26 @@ class LimitFree extends Component {
...
@@ -120,14 +120,26 @@ class LimitFree extends Component {
<
button
>
免费领取
<
/button
>
<
button
>
免费领取
<
/button
>
<
/div
>
<
/div
>
break
break
case
2
:
case
1
:
des
=
<
div
className
=
{
'remain-time'
}
>
des
=
<
div
className
=
{
'remain-time'
}
>
<
i
className
=
{
'iconfont iconiconfront-21'
}
/
>
<
i
className
=
{
'iconfont iconiconfront-21'
}
/
>
<
span
>
12
天
55
时
55
分后过期
<
/span
>
<
span
>
12
天
55
时
55
分后过期
<
/span
>
<
/div
>
<
/div
>
bottom
=
<
div
className
=
{
'bottom'
}
>
<
span
className
=
{
'red'
}
>
限时免费
<
/span
>
<
span
className
=
{
'origin-price'
}
>
¥
{
item
.
price0
}
<
/span
>
<
button
>
立即学习
<
/button
>
<
/div
>
break
break
case
3
:
case
3
:
des
=
<
div
className
=
{
'purchased'
}
>
<
i
className
=
'iconfont iconRectangleCopy4'
/>
<
span
>
{
item
.
play_times
}
人学习
<
/span
>
<
/div
>
bottom
=
<
div
className
=
"bottom"
>
<
span
>
已购买
<
/span
>
<
button
>
立即学习
<
/button
>
<
/div
>
}
}
const
info
=
(
const
info
=
(
...
...
src/components/limit-free/index.scss
View file @
bee07508
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
.red
{
.red
{
color
:
#FF2121
;
color
:
#FF2121
;
font-size
:
15px
;
font-size
:
15px
;
margin-right
:
10px
;
}
}
.origin-price
{
.origin-price
{
...
@@ -140,6 +140,7 @@
...
@@ -140,6 +140,7 @@
button
{
button
{
width
:
68px
;
width
:
68px
;
height
:
24px
;
height
:
24px
;
float
:
right
;
border-radius
:
3px
;
border-radius
:
3px
;
background
:
#09f
;
background
:
#09f
;
border
:
none
;
border
:
none
;
...
@@ -147,10 +148,19 @@
...
@@ -147,10 +148,19 @@
font-size
:
13px
;
font-size
:
13px
;
color
:
#fff
;
color
:
#fff
;
line-height
:
24px
;
line-height
:
24px
;
-webkit-appearance
:
none
;
}
}
.bottom
{
.bottom
{
width
:
100%
;
height
:
24px
;
align-self
:
flex-end
;
align-self
:
flex-end
;
font-size
:
0
;
line-height
:
24px
;
span
{
font-size
:
12px
;
}
}
}
}
}
...
...
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