Commit d492ac65 by FE

Merge branch 'new-share' into pre

parents 81656c0a beda2cb9
...@@ -289,9 +289,16 @@ class RedPacket extends PureComponent { ...@@ -289,9 +289,16 @@ 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) {
// 领取好友的后,再领取自己的 share_code 未更新
http.get(`${API.home}/sys/redPacket/shareUrl/${getParam('id')}`).then(res => {
const { code, data } = res.data;
if(code === 200) {
this.setState({ this.setState({
shareInfo: data,
type: 1 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