Commit f0531dc1 by xuzhenghua

绑定手机号

parent a6579647
......@@ -94,7 +94,7 @@ class Anniversary2020 extends Component {
isShowUserAddress: false,
isShowPrizesRecords: false,
isWinPrize: false, //抽中奖品弹框
isReLogin: true,
isReLogin: false,
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment