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
024c09d4
Commit
024c09d4
authored
Dec 17, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享页返回
parent
55148ed3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
src/components/activity/newyear-2019/landing/index.js
+7
-1
src/components/activity/newyear-2019/landing/landing.scss
+1
-0
src/components/activity/newyear-2019/treasure-box/team.js
+1
-0
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
024c09d4
...
@@ -17,8 +17,10 @@ class Landing extends Component {
...
@@ -17,8 +17,10 @@ class Landing extends Component {
closeIcon
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'
closeIcon
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'
createTeamSuccessPopup
=
null
createTeamSuccessPopup
=
null
joinSuccessPopup
=
null
joinSuccessPopup
=
null
shareTipPopup
=
null
swiper
=
null
swiper
=
null
state
=
{
state
=
{
teamData
:
{
teamData
:
{
member
:
[]
member
:
[]
...
@@ -42,6 +44,10 @@ class Landing extends Component {
...
@@ -42,6 +44,10 @@ class Landing extends Component {
}
}
}
}
componentWillUnmount
()
{
this
.
shareTipPopup
&&
this
.
shareTipPopup
.
remove
()
}
fetchPageData
=
({
origin
=
this
.
state
.
origin
,
treasure_code
=
this
.
state
.
treasure_code
}
=
{})
=>
{
fetchPageData
=
({
origin
=
this
.
state
.
origin
,
treasure_code
=
this
.
state
.
treasure_code
}
=
{})
=>
{
const
{
location
}
=
this
.
props
const
{
location
}
=
this
.
props
...
@@ -304,7 +310,7 @@ class Landing extends Component {
...
@@ -304,7 +310,7 @@ class Landing extends Component {
})
})
}
else
{
}
else
{
Popup
({
this
.
shareTipPopup
=
Popup
({
title
:
<
div
>
还差
<
span
>
{
this
.
state
.
teamData
.
lack_member
}
<
/span>名队友即可获得宝箱 快分享给好友吧~</
div
>
,
title
:
<
div
>
还差
<
span
>
{
this
.
state
.
teamData
.
lack_member
}
<
/span>名队友即可获得宝箱 快分享给好友吧~</
div
>
,
className
:
`landing-share-tip
${
browser
.
isWeixin
?
'wechat'
:
''
}
`
,
className
:
`landing-share-tip
${
browser
.
isWeixin
?
'wechat'
:
''
}
`
,
closable
:
false
,
closable
:
false
,
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
024c09d4
...
@@ -109,6 +109,7 @@
...
@@ -109,6 +109,7 @@
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
border-radius
:
50%
;
border-radius
:
50%
;
border
:
1px
solid
#fff
;
}
}
}
}
...
...
src/components/activity/newyear-2019/treasure-box/team.js
View file @
024c09d4
...
@@ -96,6 +96,7 @@ class TeamInfo extends Component {
...
@@ -96,6 +96,7 @@ class TeamInfo extends Component {
if
(
this
.
props
.
user
.
hasError
)
{
if
(
this
.
props
.
user
.
hasError
)
{
this
.
toLogin
();
this
.
toLogin
();
}
else
{
}
else
{
sessionStorage
.
setItem
(
'showShareTip'
,
'1'
)
const
{
is_my_team
,
my_team
:
{
treasure_code
}}
=
this
.
state
;
const
{
is_my_team
,
my_team
:
{
treasure_code
}}
=
this
.
state
;
if
(
is_my_team
)
{
// 有自己的队伍
if
(
is_my_team
)
{
// 有自己的队伍
// 直接跳转
// 直接跳转
...
...
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