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
5141c2b6
Commit
5141c2b6
authored
Dec 17, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00'
parents
86bd0806
fe4ce263
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
4 deletions
+46
-4
src/components/activity/newyear-2019/common/prizes/prizes.scss
+28
-1
src/components/activity/newyear-2019/myTreasure/index.js
+0
-0
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/common/prizes/prizes.scss
View file @
5141c2b6
...
...
@@ -116,7 +116,7 @@
}
}
&
li
:last-child
{
&
li
:last-child
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -173,6 +173,7 @@
height
:
2px
;
background
:
#fff
;
border-radius
:
1px
;
.progress
{
position
:
absolute
;
right
:
0
;
...
...
@@ -194,3 +195,29 @@
}
}
}
.landing-treasure-rules
{
width
:
320px
;
&
.popup-container
{
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
.title
{
font-size
:
18px
;
color
:
#111111
;
}
}
.content
{
padding
:
0
19px
15px
;
margin-top
:
22px
;
color
:
#666666
;
font-size
:
14px
;
li
{
margin-bottom
:
5px
;
}
}
}
src/components/activity/newyear-2019/myTreasure/index.js
View file @
5141c2b6
This diff is collapsed.
Click to expand it.
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
View file @
5141c2b6
...
...
@@ -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 @
5141c2b6
...
...
@@ -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 @
5141c2b6
...
...
@@ -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 @
5141c2b6
...
...
@@ -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