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
2e1abc26
Commit
2e1abc26
authored
Dec 16, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app关闭分享弹框
parent
876e71dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
src/components/activity/newyear-2019/landing/index.js
+10
-12
src/components/activity/newyear-2019/landing/landing.scss
+4
-0
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
2e1abc26
...
...
@@ -34,6 +34,7 @@ class Landing extends Component {
componentDidMount
()
{
this
.
fetchPageData
()
window
.
showFollowAlert
=
this
.
remind
(
'create'
)
}
componentDidUpdate
(
prevProps
)
{
...
...
@@ -54,7 +55,8 @@ class Landing extends Component {
this
.
setState
({
teamData
:
data
,
isCaptain
:
sessionStorage
.
getItem
(
'isCaptain'
)
?
sessionStorage
.
getItem
(
'isCaptain'
)
:
getParam
(
'origin'
)
==
1
isCaptain
:
sessionStorage
.
getItem
(
'isCaptain'
)
?
sessionStorage
.
getItem
(
'isCaptain'
)
:
getParam
(
'origin'
)
==
1
,
activityEnd
:
data
.
status
==
5
})
let
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
...
...
@@ -67,12 +69,6 @@ class Landing extends Component {
this
.
showSharePromptWithParam
()
}
else
if
(
code
===
12005
)
{
this
.
setState
({
activityEnd
:
true
})
}
else
{
Toast
.
info
(
msg
,
2
,
null
,
false
)
}
...
...
@@ -235,7 +231,7 @@ class Landing extends Component {
}
remind
=
(
type
=
'create'
,
treasure_code
,
origin
=
1
)
=>
{
const
{
match
,
history
,
user
}
=
this
.
props
const
{
user
}
=
this
.
props
http
.
get
(
`
${
API
[
"base-api"
]}
/wx/user_temporary_qrcode/
${
user
.
data
.
uid
}
`
)
.
then
(
res
=>
{
const
{
data
}
=
res
.
data
...
...
@@ -289,10 +285,12 @@ class Landing extends Component {
closable
:
false
,
close
:
()
=>
{
sessionStorage
.
removeItem
(
'showShareTip'
)
this
.
getFollowStatus
()
.
then
(
isFollow
=>
{
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
),
1
)
})
if
(
!
user
.
hasError
)
{
this
.
getFollowStatus
()
.
then
(
isFollow
=>
{
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
),
1
)
})
}
}
})
}
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
2e1abc26
...
...
@@ -391,3 +391,7 @@
width
:
312px
;
}
}
.year19-index
{
display
:
none
;
}
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