Commit 465caaec by wangshuo

未登录跳转

parent 4066361e
...@@ -31,8 +31,8 @@ class BlessingGetPrize extends Component { ...@@ -31,8 +31,8 @@ class BlessingGetPrize extends Component {
const _this = this; const _this = this;
setTimeout(function(){ setTimeout(function(){
const {history, uid} = _this.props; const {history, uid} = _this.props;
if(!uid && !jsCookie.get('uid')) { if(!uid) {
history.push('/passport') window.location.href = `${API.m}/passport`;
}else{ }else{
http.get(`${API.home}/sys/lottery_result?id=${getParam('id')}`).then(res => { http.get(`${API.home}/sys/lottery_result?id=${getParam('id')}`).then(res => {
const {code, msg, data} = res.data; const {code, msg, data} = res.data;
...@@ -46,7 +46,7 @@ class BlessingGetPrize extends Component { ...@@ -46,7 +46,7 @@ class BlessingGetPrize extends Component {
} }
}); });
} }
}, 100); }, 300);
} }
showAddress = (bool) => { showAddress = (bool) => {
......
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