Commit 4bd2d265 by xuzhenghua

登录

parent 49aa67e4
......@@ -195,7 +195,8 @@ class BlessingPreheat extends Component {
// H5
}
const { userInfo } = this.state;
const {user, history} = this.props;
const uid = user && user.data && user.data.uid;
http.get(`${API.home}/sys/user/blessing`).then(res => {
const {code, data} = res.data
if (code === 200) {
......@@ -203,7 +204,7 @@ class BlessingPreheat extends Component {
isSign: !!data.today_signed,
isFormal: data.is_activity,
userInfo: Object.assign({}, userInfo, {
isLogin: !!data.is_login,
isLogin: !!uid,
blessingVal: data.user_blessing_value,
})
})
......@@ -316,15 +317,6 @@ class BlessingPreheat extends Component {
}
}
toLogin = () => {
const { history } = this.props;
if(!getParam('version')) {
history.push('/passport');
}else{
SendMessageToApp("toLogin");
}
}
onCopy = () => {
Toast.info('复制成功', 2, null, false)
}
......
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