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
5ed26c08
Commit
5ed26c08
authored
Nov 12, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
14号onlyshow
parent
11994b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
src/components/blessingPreheat/index.js
+17
-8
No files found.
src/components/blessingPreheat/index.js
View file @
5ed26c08
...
...
@@ -51,6 +51,7 @@ class BlessingPreheat extends Component {
timelineShareVisible
:
false
,
showRecordList
:
false
,
isFormal
:
false
,
// 1正式 0 预热
onlyShow
:
false
,
// 13号之后要展示内容的控制
isServer
:
false
,
serverUrl
:
''
,
shareMark
:
false
,
...
...
@@ -275,6 +276,7 @@ class BlessingPreheat extends Component {
this
.
setState
({
isSign
:
!!
data
.
today_signed
,
isFormal
:
data
.
is_activity
,
onlyShow
:
data
.
onlyShow
,
testSum
:
parseInt
(
data
.
user_test_total
,
10
)
||
0
,
userInfo
:
Object
.
assign
({},
userInfo
,
{
isFollow
:
data
.
subscribed
,
...
...
@@ -565,6 +567,7 @@ class BlessingPreheat extends Component {
testSum
,
address
,
addressPopupVisible
,
onlyShow
,
}
=
this
.
state
const
{
history
}
=
this
.
props
const
isLogin
=
!
this
.
props
.
user
.
hasError
...
...
@@ -630,14 +633,20 @@ class BlessingPreheat extends Component {
}
{
/* 精品课程特惠专区 */
}
<
ListHeader
id
=
{
'best-courses'
}
text
=
"精品课程特惠专区"
styles
=
{{
margin
:
'30px 0 15px'
}}
/
>
<
CourseList
isApp
=
{
isApp
}
isFormal
=
{
isFormal
}
isLogin
=
{
isLogin
}
history
=
{
this
.
props
.
history
}
toLogin
=
{
this
.
toLogin
}
/
>
{
!
onlyShow
&&
(
<>
<
ListHeader
id
=
{
'best-courses'
}
text
=
"精品课程特惠专区"
styles
=
{{
margin
:
'30px 0 15px'
}}
/
>
<
CourseList
isApp
=
{
isApp
}
isFormal
=
{
isFormal
}
isLogin
=
{
isLogin
}
history
=
{
this
.
props
.
history
}
toLogin
=
{
this
.
toLogin
}
/
>
<
/
>
)
}
{
isRule
&&
...
...
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