Commit beda2cb9 by FE

帮好友领取后无法领取自己的红包问题

parent e0fec30e
...@@ -289,8 +289,15 @@ class RedPacket extends PureComponent { ...@@ -289,8 +289,15 @@ class RedPacket extends PureComponent {
history.push(`/detail?id=${getParam('id')}&wechat=1`); history.push(`/detail?id=${getParam('id')}&wechat=1`);
}else { }else {
if(userInfo && userInfo.uid) { if(userInfo && userInfo.uid) {
this.setState({ // 领取好友的后,再领取自己的 share_code 未更新
type: 1 http.get(`${API.home}/sys/redPacket/shareUrl/${getParam('id')}`).then(res => {
const { code, data } = res.data;
if(code === 200) {
this.setState({
shareInfo: data,
type: 1
});
}
}); });
}else { }else {
history.push('/passport/login'); history.push('/passport/login');
......
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