Commit 8c6a042f by wangshuo

活动结束

parent 048b43f3
...@@ -298,9 +298,13 @@ class BlessingPreheat extends Component { ...@@ -298,9 +298,13 @@ class BlessingPreheat extends Component {
fetchUserBlessing = () => { fetchUserBlessing = () => {
const {userInfo} = this.state const {userInfo} = this.state
const {history} = this.props;
http.get(`${API.home}/sys/user/blessing`).then(res => { http.get(`${API.home}/sys/user/blessing`).then(res => {
const {code, data} = res.data const {code, data} = res.data
if (code === 200) { if (code === 200) {
if(data.is_over) {
history.push('/');
}
this.setState({ this.setState({
isSign: !!data.today_signed, isSign: !!data.today_signed,
isFormal: data.is_activity, isFormal: data.is_activity,
......
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