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
16faa68d
Commit
16faa68d
authored
Mar 17, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时免费
parent
4ff9966e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
23 deletions
+1
-23
src/components/Index/index.js
+1
-23
No files found.
src/components/Index/index.js
View file @
16faa68d
...
...
@@ -71,12 +71,6 @@ class Index extends Component {
if
(
res
.
data
.
code
===
200
)
{
const
{
data
}
=
res
.
data
||
{}
const
modules
=
Array
.
isArray
(
data
.
modules
)
?
data
.
modules
:
[]
modules
.
forEach
(
item
=>
{
if
(
item
.
name
===
'限时免费'
)
{
item
.
showMoreButon
=
item
.
list
.
length
&&
item
.
list
.
length
>
4
item
.
list
=
item
.
list
.
slice
(
0
,
4
)
}
})
this
.
setState
({
banner
:
data
.
banner
,
lives
:
data
.
lives
,
...
...
@@ -258,8 +252,7 @@ function CourseList({modules, toDetail}) {
{
modules
.
show_more
===
2
?
modules
.
name
===
'限时免费'
?
modules
.
showMoreButon
&&
<
Link
className
=
"more"
to
=
{
'/free'
}
>
更多
><
/Link
>
?
<
Link
className
=
"more"
to
=
{
'/free'
}
>
更多
><
/Link
>
:
<
Link
className
=
"more"
to
=
{
modules
.
more_page
}
>
更多
><
/Link
>
:
null
}
...
...
@@ -284,21 +277,6 @@ function CourseList({modules, toDetail}) {
<
/div
>
)
/*const bottom = (
<div>
{
item.is_limit_free
? <LimitFree course={item}/>
: item.is_buy
? <a className="isbuy">已购买</a>
: <p className="course-price">
<span className="new">¥{item.discounts_price}</span>
<span className="old">¥{item.price}</span>
</p>
}
</div>
)*/
const
bottom
=
<
Bottom
course
=
{
item
}
/
>
const
status
=
item
.
is_limit_free
?
null
:
<
div
>
...
...
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