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
e3d8135d
Commit
e3d8135d
authored
Dec 13, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享页
parent
0894f593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/components/activity/newyear-2019/landing/index.js
+9
-4
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
e3d8135d
...
@@ -28,7 +28,8 @@ class Landing extends Component {
...
@@ -28,7 +28,8 @@ class Landing extends Component {
treasure_code
:
getParam
(
'treasure_code'
),
treasure_code
:
getParam
(
'treasure_code'
),
activityEnd
:
false
,
activityEnd
:
false
,
notices
:
[],
notices
:
[],
rule
:
''
rule
:
''
,
isCaptain
:
sessionStorage
.
getItem
(
'status'
)
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -51,6 +52,7 @@ class Landing extends Component {
...
@@ -51,6 +52,7 @@ class Landing extends Component {
let
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
let
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
if
(
searchParams
.
get
(
'origin'
)
===
'1'
&&
!
browser
.
isWeixin
)
{
if
(
searchParams
.
get
(
'origin'
)
===
'1'
&&
!
browser
.
isWeixin
)
{
sessionStorage
.
setItem
(
'isCaptain'
,
'1'
)
searchParams
.
set
(
'origin'
,
'2'
)
searchParams
.
set
(
'origin'
,
'2'
)
window
.
history
.
replaceState
(
null
,
''
,
`landing?
${
searchParams
.
toString
()}
`
)
window
.
history
.
replaceState
(
null
,
''
,
`landing?
${
searchParams
.
toString
()}
`
)
}
}
...
@@ -334,7 +336,8 @@ class Landing extends Component {
...
@@ -334,7 +336,8 @@ class Landing extends Component {
prize_info
,
prize_info
,
my_team
my_team
},
},
activityEnd
activityEnd
,
isCaptain
}
=
this
.
state
}
=
this
.
state
/*
/*
...
@@ -466,7 +469,7 @@ class Landing extends Component {
...
@@ -466,7 +469,7 @@ class Landing extends Component {
<
/button
>
<
/button
>
}
}
{
{
prize_info
&&
!
activityEnd
&&
<
div
className
=
"certainly-prompt"
>
!
isCaptain
&&
prize_info
&&
!
activityEnd
&&
<
div
className
=
"certainly-prompt"
>
第
{
prize_info
.
stage_no
}
次必中
{
prize_info
.
name
}
第
{
prize_info
.
stage_no
}
次必中
{
prize_info
.
name
}
<
/div
>
<
/div
>
}
}
...
@@ -482,7 +485,9 @@ class Landing extends Component {
...
@@ -482,7 +485,9 @@ class Landing extends Component {
<
/div
>
<
/div
>
<
/BoxContainer
>
<
/BoxContainer
>
<
WhiteSpace
size
=
{
'xl'
}
/
>
<
WhiteSpace
size
=
{
'xl'
}
/
>
<
YearCourse
><
/YearCourse
>
{
isCaptain
&&
<
YearCourse
/>
}
<
/div
>
<
/div
>
)
)
}
}
...
...
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