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
f0531dc1
Commit
f0531dc1
authored
Jul 16, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定手机号
parent
a6579647
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
src/components/activity/2020-717/activity/index.js
+15
-13
No files found.
src/components/activity/2020-717/activity/index.js
View file @
f0531dc1
...
...
@@ -94,7 +94,7 @@ class Anniversary2020 extends Component {
isShowUserAddress
:
false
,
isShowPrizesRecords
:
false
,
isWinPrize
:
false
,
//抽中奖品弹框
isReLogin
:
tru
e
,
isReLogin
:
fals
e
,
isShowTeamMember
:
false
,
isShowFollow
:
false
,
//抽奖
...
...
@@ -107,6 +107,7 @@ class Anniversary2020 extends Component {
prizeRecords
:
[],
prizeRecordsPagination
:
0
,
bulletScreenList
:
[],
prizeType
:
''
,
}
componentDidMount
()
{
...
...
@@ -452,6 +453,7 @@ class Anniversary2020 extends Component {
setTimeout
(()
=>
{
this
.
setState
({
drawResult
:
data
,
prizeType
:
data
.
prize_type
});
},
3000
)
}
else
{
...
...
@@ -553,18 +555,9 @@ class Anniversary2020 extends Component {
});
}
winPrizeClose
=
()
=>
{
this
.
setState
({
isWinPrize
:
false
,
drawResult
:
{},
isReLogin
:
true
});
}
reLogin
=
()
=>
{
console
.
log
(
2
,
this
.
props
)
// this.props.logout()
// this.props.history.push('/passport')
this
.
props
.
logout
()
this
.
props
.
history
.
push
(
'/passport'
)
}
render
()
{
...
...
@@ -589,6 +582,7 @@ class Anniversary2020 extends Component {
isReLogin
,
drawingItemId
,
drawResult
,
prizeType
,
isShowTeamMember
,
bulletScreenList
,
rankList
,
...
...
@@ -1244,7 +1238,13 @@ class Anniversary2020 extends Component {
<
/div
>
}
{
isWinPrize
&&
<
WinPrize
name
=
{
drawResult
.
prize_name
}
info
=
{
drawResult
.
prize_info
}
close
=
{
this
.
winPrizeClose
}
><
/WinPrize
>
isWinPrize
&&
<
WinPrize
name
=
{
drawResult
.
prize_name
}
info
=
{
drawResult
.
prize_info
}
close
=
{()
=>
{
this
.
setState
({
isWinPrize
:
false
,
drawResult
:
{},
isReLogin
:
prizeType
==
3
?
true
:
false
});
}}
><
/WinPrize
>
}
{
isReLogin
&&
<
ReLogin
reLogin
=
{
this
.
reLogin
}
close
=
{()
=>
{
...
...
@@ -1343,6 +1343,7 @@ export default connect(
({user}) => ({user}),
dispatch => ({
addData: data => dispatch(addData(data)),
logout: data => dispatch(logout(data)),
}),
)(Anniversary2020);
\ 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