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
bed0b0bf
Commit
bed0b0bf
authored
Dec 18, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动结束
parent
d3ada8c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
src/components/activity/newyear-2019/box-container/box-container.scss
+3
-3
src/components/activity/newyear-2019/landing/index.js
+7
-1
src/components/activity/newyear-2019/landing/landing.scss
+7
-5
No files found.
src/components/activity/newyear-2019/box-container/box-container.scss
View file @
bed0b0bf
.box-container
{
.box-container
{
position
:
relative
;
position
:
relative
;
background
:
#327443
;
background
:
#327443
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png")
repeat-y
;
background-size
:
100%
auto
;
padding
:
14px
0
;
padding
:
14px
0
;
.image-box
{
.image-box
{
height
:
100%
;
height
:
100%
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png")
repeat-y
;
background-size
:
100%
auto
;
}
}
@mixin
common-deco
(
$bg
)
{
@mixin
common-deco
(
$bg
)
{
...
...
src/components/activity/newyear-2019/landing/index.js
View file @
bed0b0bf
...
@@ -39,6 +39,12 @@ class Landing extends Component {
...
@@ -39,6 +39,12 @@ class Landing extends Component {
this
.
fetchPageData
()
this
.
fetchPageData
()
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
'create'
)
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
'create'
)
document
.
title
=
'七月在线年终大回馈,幸运宝箱随你开,100%有奖!'
document
.
title
=
'七月在线年终大回馈,幸运宝箱随你开,100%有奖!'
const
landing
=
document
.
querySelector
(
'#landing'
)
const
boxContainer
=
document
.
querySelector
(
'.box-container'
)
if
(
boxContainer
.
offsetHeight
<
window
.
innerHeight
){
landing
.
style
.
minHeight
=
`
${
window
.
innerHeight
}
px`
boxContainer
.
style
.
minHeight
=
`
${
window
.
innerHeight
}
px`
}
}
}
componentDidUpdate
(
prevProps
)
{
componentDidUpdate
(
prevProps
)
{
...
@@ -420,7 +426,7 @@ class Landing extends Component {
...
@@ -420,7 +426,7 @@ class Landing extends Component {
<
/div
>
<
/div
>
}
}
<
BoxContainer
>
<
BoxContainer
>
<
i
className
=
{
`snow-deco
${
standby_plan
?
'standby'
:
''
}
`
}
/
>
<
i
className
=
{
`snow-deco
${
standby_plan
&&
browser
.
isWeixin
?
'standby'
:
''
}
`
}
/
>
{
{
standby_plan
&&
browser
.
isWeixin
&&
standby_plan
&&
browser
.
isWeixin
&&
<>
<>
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
bed0b0bf
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#landing
{
#landing
{
background
:
#BC2A18
;
background
:
#BC2A18
;
text-align
:
center
;
text-align
:
center
;
min-height
:
100%
;
#to-square
{
#to-square
{
position
:
fixed
;
position
:
fixed
;
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png")
no-repeat
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png")
no-repeat
;
background-size
:
contain
;
background-size
:
contain
;
&
.standby
{
&
.standby
{
top
:
0
;
top
:
0
;
}
}
}
}
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
height
:
49px
;
height
:
49px
;
border-radius
:
50%
;
border-radius
:
50%
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
margin-top
:
37
.
5px
;
margin-top
:
5
5px
;
object-fit
:
cover
;
object-fit
:
cover
;
}
}
...
@@ -73,7 +74,7 @@
...
@@ -73,7 +74,7 @@
}
}
}
}
.standby-space
{
.standby-space
{
height
:
25px
;
height
:
25px
;
}
}
...
@@ -83,12 +84,13 @@
...
@@ -83,12 +84,13 @@
height
:
32px
;
height
:
32px
;
background
:
#FFDE00
;
background
:
#FFDE00
;
border-radius
:
5px
;
border-radius
:
5px
;
margin
:
0
auto
-
2
0px
;
margin
:
0
auto
-
4
0px
;
line-height
:
32px
;
line-height
:
32px
;
text-align
:
center
;
text-align
:
center
;
color
:
#202426
;
color
:
#202426
;
font-size
:
15px
;
font-size
:
15px
;
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
...
...
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