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
a3bd2252
Commit
a3bd2252
authored
Dec 17, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP内登陆状态导致的问题
parent
aa788728
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
+7
-0
src/components/activity/newyear-2019/preheat/index.js
+2
-2
src/components/activity/newyear-2019/treasure-box/index.js
+1
-1
src/components/activity/newyear-2019/treasure-box/team.js
+8
-0
No files found.
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
View file @
a3bd2252
...
...
@@ -25,6 +25,13 @@ class LiveRoom extends Component {
componentDidMount
()
{
this
.
getLiveInfo
();
}
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
if
(
this
.
props
.
isAppUpdate
!==
nextProps
.
isAppUpdate
)
{
this
.
getLiveInfo
();
return
false
}
return
true
}
getLiveInfo
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/activity/get_live_info`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
;
...
...
src/components/activity/newyear-2019/preheat/index.js
View file @
a3bd2252
...
...
@@ -133,11 +133,11 @@ export default class index extends Component {
<
/div
>
{
/* 大咖直播 */
}
<
LiveRoom
/>
<
LiveRoom
isAppUpdate
=
{
this
.
state
.
isAppUpdate
}
/
>
{
/* 组队开宝箱 */
}
{
treasure_stage
===
1
&&
<
TreasureBox
getRemovable
=
{
this
.
getRemovable
}
/
>
treasure_stage
===
1
&&
<
TreasureBox
isAppUpdate
=
{
this
.
state
.
isAppUpdate
}
getRemovable
=
{
this
.
getRemovable
}
/
>
}
{
/*课程*/
}
...
...
src/components/activity/newyear-2019/treasure-box/index.js
View file @
a3bd2252
...
...
@@ -16,7 +16,7 @@ class TreasureBox extends Component {
<
div
style
=
{{
textAlign
:
'center'
,
fontSize
:
'12px'
,
color
:
'#FFDC1E'
,
marginTop
:
'10px'
}}
>
邀请好友组队一起开宝箱,满
5
人后将随机获得以下奖品
~<
/div
>
<
Prizes
showSystemNotices
=
{
true
}
/
>
<
UserBulletScreen
/>
<
TeamInfo
getRemovable
=
{
this
.
props
.
getRemovable
}
/
>
<
TeamInfo
isAppUpdate
=
{
this
.
state
.
isAppUpdate
}
getRemovable
=
{
this
.
props
.
getRemovable
}
/
>
<
TreasureRank
history
=
{
this
.
props
.
history
}
/
>
<
/CommonContainer
>
)
...
...
src/components/activity/newyear-2019/treasure-box/team.js
View file @
a3bd2252
...
...
@@ -83,6 +83,14 @@ class TeamInfo extends Component {
}
}
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
if
(
this
.
props
.
isAppUpdate
!==
nextProps
.
isAppUpdate
)
{
this
.
getTeamInfo
();
return
false
}
return
true
}
// 邀请好友组队
createTeam
=
()
=>
{
if
(
this
.
props
.
user
.
hasError
)
{
...
...
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