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
72db7bfb
Commit
72db7bfb
authored
Jul 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周年庆
parent
a311a3c7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
16 deletions
+31
-16
src/App.js
+11
-12
src/components/activity/2020-717/activity/index.scss
+8
-3
src/components/activity/2020-717/invitation/index.scss
+5
-0
src/components/activity/2020-717/question/index.scss
+7
-1
No files found.
src/App.js
View file @
72db7bfb
...
@@ -28,7 +28,8 @@ class App extends Component {
...
@@ -28,7 +28,8 @@ class App extends Component {
super
(
props
)
super
(
props
)
this
.
state
=
{
this
.
state
=
{
isShowActivityEntry
:
0
,
isShowActivityEntry
:
0
,
isShowChannel
:
0
,
jumpUrl
:
''
,
entryImage
:
''
,
}
}
}
}
...
@@ -108,16 +109,14 @@ class App extends Component {
...
@@ -108,16 +109,14 @@ class App extends Component {
// 获取宝箱阶段
// 获取宝箱阶段
getStage
=
()
=>
{
getStage
=
()
=>
{
let
ccode
=
cookie
.
get
(
'ccode'
)
let
ccode
=
cookie
.
get
(
'ccode'
)
http
.
get
(
`
${
API
.
home
}
/
activity/stage
?ccode=
${
ccode
}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/
sys/anniversary/floating
?ccode=
${
ccode
}
`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
code
===
200
)
{
if
(
code
===
200
)
{
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this
.
setState
({
this
.
setState
({
isShowActivityEntry
:
data
.
treasure_stage
,
isShowActivityEntry
:
data
.
is_show
,
isShowChannel
:
data
.
is_show_site_window_by_channel
,
jumpUrl
:
data
.
jump_url
,
entryImage
:
data
.
image_path
,
})
})
window
.
sessionStorage
.
setItem
(
'isShowSiteWindowByChannel'
,
data
.
is_show_site_window_by_channel
)
}
else
{
}
else
{
Toast
.
info
(
msg
,
2
)
Toast
.
info
(
msg
,
2
)
}
}
...
@@ -328,16 +327,16 @@ class App extends Component {
...
@@ -328,16 +327,16 @@ class App extends Component {
}
}
render
()
{
render
()
{
const
{
isShowActivityEntry
,
entryImage
,
jumpUrl
}
=
this
.
state
return
<>
return
<>
<
Routes
/>
<
Routes
/>
{
{
!!
this
.
state
.
isShowActivityEntry
&&
!!
this
.
state
.
isShowChannel
&&
isShowActivityEntry
&&
<
div
className
=
"year19-index"
>
<
div
className
=
"year19-index"
>
<
i
className
=
{
'iconfont iconiconfront-2'
}
onClick
=
{
this
.
closeGlobalEntry
}
><
/i
>
<
i
className
=
{
'iconfont iconiconfront-2'
}
onClick
=
{
this
.
closeGlobalEntry
}
><
/i
>
<
Link
to
=
{
'/box/boxActive'
}
>
<
a
href
=
{
jumpUrl
}
>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/global-entry.png"
<
img
src
=
{
entryImage
}
alt
=
""
/>
alt
=
""
/>
<
/a
>
<
/Link
>
<
/div
>
<
/div
>
}
}
<
/
>
<
/
>
...
...
src/components/activity/2020-717/activity/index.scss
View file @
72db7bfb
...
@@ -2,9 +2,13 @@
...
@@ -2,9 +2,13 @@
background-color
:
#2E00DC
;
background-color
:
#2E00DC
;
padding
:
0
10px
75px
;
padding
:
0
10px
75px
;
&
+
.year19-index
{
display
:
none
;
}
.banner
{
.banner
{
position
:
relative
;
position
:
relative
;
height
:
22
0px
;
height
:
30
0px
;
img
{
img
{
width
:
100%
;
width
:
100%
;
...
@@ -829,7 +833,7 @@
...
@@ -829,7 +833,7 @@
.audition
{
.audition
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
h4
{
h4
{
color
:
#fff
;
color
:
#fff
;
font-size
:
12px
;
font-size
:
12px
;
margin
:
10px
0
15px
;
margin
:
10px
0
15px
;
...
@@ -1200,10 +1204,11 @@
...
@@ -1200,10 +1204,11 @@
}
}
.members
{
.members
{
ul
{
ul
{
max-height
:
230px
;
max-height
:
230px
;
overflow
:
auto
;
overflow
:
auto
;
}
}
li
{
li
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
src/components/activity/2020-717/invitation/index.scss
View file @
72db7bfb
...
@@ -8,6 +8,11 @@ html, body, #root {
...
@@ -8,6 +8,11 @@ html, body, #root {
padding-bottom
:
60px
;
padding-bottom
:
60px
;
background
:
#2E00DC
;
background
:
#2E00DC
;
&
+
.year19-index
{
display
:
none
;
}
.banner
{
.banner
{
height
:
67px
;
height
:
67px
;
margin
:
20px
0
;
margin
:
20px
0
;
...
...
src/components/activity/2020-717/question/index.scss
View file @
72db7bfb
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
min-height
:
100%
;
min-height
:
100%
;
padding-bottom
:
55px
;
padding-bottom
:
55px
;
&
+
.year19-index
{
display
:
none
;
}
.banner
{
.banner
{
height
:
94px
;
height
:
94px
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/question-banner.png")
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/question-banner.png")
;
...
@@ -273,6 +278,6 @@
...
@@ -273,6 +278,6 @@
}
}
.captcha-container
{
.captcha-container
{
padding
:
40vh
30px
;
padding
:
40vh
30px
;
}
}
\ No newline at end of file
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