Commit 48b0a89f by xuzhenghua

pull

parents d7861203 0edee270
......@@ -68,17 +68,15 @@ class Index extends Component {
}
userStatus =()=>{
this.setState({
isShowUserGift: false
})
http.get(`${API['base-api']}/sys/user/new_user_status`).then((res) => {
const {errno, data} = res.data
if (errno === 0) {
if (data.status == 1) {
// 新用户登录之后判断是否是新用户
Toast.info('新人大礼包已领取成功!', 2)
} else {
// 老用户
this.setState({
isShowUserGift: 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