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
4b1e510f
Commit
4b1e510f
authored
Dec 19, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大颗模块二
parent
c40cd6c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/components/activity/newyear-2019/preheat/YearCourse/index.js
+9
-9
No files found.
src/components/activity/newyear-2019/preheat/YearCourse/index.js
View file @
4b1e510f
...
@@ -125,8 +125,8 @@ class YearCourse extends Component {
...
@@ -125,8 +125,8 @@ class YearCourse extends Component {
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
setState
({
this
.
setState
({
bigcourse
:
Object
.
assign
({},
bigcourse
,
{
bigcourse
:
Object
.
assign
({},
bigcourse
,
{
isMore
:
data
.
length
>
4
?
true
:
false
,
isMore
:
false
,
course
:
data
.
length
>
4
?
data
.
filter
((
item
,
index
)
=>
index
<
4
)
:
data
,
course
:
data
,
courseList
:
data
,
courseList
:
data
,
})
})
})
})
...
@@ -493,7 +493,7 @@ class YearCourse extends Component {
...
@@ -493,7 +493,7 @@ class YearCourse extends Component {
{
{
item
.
is_buy
==
0
&&
item
.
is_buy
==
0
&&
<
a
onClick
=
{()
=>
this
.
toQQque
()}
<
a
onClick
=
{()
=>
this
.
toQQque
()}
className
=
"btn big-course"
>
速抢拼团名额
<
/a
>
className
=
"btn big-course"
>
免费试听
<
/a
>
}
}
<
/div
>
<
/div
>
...
@@ -501,12 +501,12 @@ class YearCourse extends Component {
...
@@ -501,12 +501,12 @@ class YearCourse extends Component {
))
))
}
}
<
/div
>
<
/div
>
{
{
/*{*/
}
(
bigcourse
.
courseList
&&
bigcourse
.
courseList
.
length
>
4
)
&&
{
/*(bigcourse.courseList && bigcourse.courseList.length > 4) &&*/
}
<
button
className
=
"more-button"
onClick
=
{()
=>
this
.
handleToMore
(
'bigcourse'
)}
>
{
/*<button className="more-button" onClick={() => this.handleToMore('bigcourse')}>*/
}
{
bigcourse
.
isMore
?
'查看更多'
:
'收起'
}
{
/*{bigcourse.isMore ? '查看更多' : '收起'}*/
}
<
/button
>
{
/*</button>*/
}
}
{
/*}*/
}
<
/
>
<
/
>
}
}
<
/div
>
<
/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