Commit f0531dc1 by xuzhenghua

绑定手机号

parent a6579647
...@@ -94,7 +94,7 @@ class Anniversary2020 extends Component { ...@@ -94,7 +94,7 @@ class Anniversary2020 extends Component {
isShowUserAddress: false, isShowUserAddress: false,
isShowPrizesRecords: false, isShowPrizesRecords: false,
isWinPrize: false, //抽中奖品弹框 isWinPrize: false, //抽中奖品弹框
isReLogin: true, isReLogin: false,
isShowTeamMember: false, isShowTeamMember: false,
isShowFollow: false, isShowFollow: false,
//抽奖 //抽奖
...@@ -107,6 +107,7 @@ class Anniversary2020 extends Component { ...@@ -107,6 +107,7 @@ class Anniversary2020 extends Component {
prizeRecords: [], prizeRecords: [],
prizeRecordsPagination: 0, prizeRecordsPagination: 0,
bulletScreenList: [], bulletScreenList: [],
prizeType: '',
} }
componentDidMount() { componentDidMount() {
...@@ -452,6 +453,7 @@ class Anniversary2020 extends Component { ...@@ -452,6 +453,7 @@ class Anniversary2020 extends Component {
setTimeout(() => { setTimeout(() => {
this.setState({ this.setState({
drawResult: data, drawResult: data,
prizeType: data.prize_type
}); });
}, 3000) }, 3000)
} else { } else {
...@@ -553,18 +555,9 @@ class Anniversary2020 extends Component { ...@@ -553,18 +555,9 @@ class Anniversary2020 extends Component {
}); });
} }
winPrizeClose=() => {
this.setState({
isWinPrize: false,
drawResult: {},
isReLogin: true
});
}
reLogin=()=>{ reLogin=()=>{
console.log(2,this.props) this.props.logout()
// this.props.logout() this.props.history.push('/passport')
// this.props.history.push('/passport')
} }
render() { render() {
...@@ -589,6 +582,7 @@ class Anniversary2020 extends Component { ...@@ -589,6 +582,7 @@ class Anniversary2020 extends Component {
isReLogin, isReLogin,
drawingItemId, drawingItemId,
drawResult, drawResult,
prizeType,
isShowTeamMember, isShowTeamMember,
bulletScreenList, bulletScreenList,
rankList, rankList,
...@@ -1244,7 +1238,13 @@ class Anniversary2020 extends Component { ...@@ -1244,7 +1238,13 @@ class Anniversary2020 extends Component {
</div> </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={() => { isReLogin && <ReLogin reLogin={this.reLogin} close={() => {
...@@ -1343,6 +1343,7 @@ export default connect( ...@@ -1343,6 +1343,7 @@ export default connect(
({user}) => ({user}), ({user}) => ({user}),
dispatch => ({ dispatch => ({
addData: data => dispatch(addData(data)), addData: data => dispatch(addData(data)),
logout: data => dispatch(logout(data)),
}), }),
)(Anniversary2020); )(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