Commit 839c3e67 by xuzhenghua

pull

parent 326d61b9
...@@ -55,7 +55,8 @@ class CollectBlessing extends Component { ...@@ -55,7 +55,8 @@ class CollectBlessing extends Component {
}; };
} }
qqToShare = () => { qqToShare = (e) => {
e.preventDefault();
const { uid, history } = this.props; const { uid, history } = this.props;
if(getParam('version')) { if(getParam('version')) {
if(!uid) { if(!uid) {
...@@ -70,8 +71,11 @@ class CollectBlessing extends Component { ...@@ -70,8 +71,11 @@ class CollectBlessing extends Component {
} }
}else { }else {
if(!uid) { if(!uid) {
console.log(1,1);
history.push('/passport'); history.push('/passport');
}else { }else {
console.log(2,1);
history.push('/blessingPreheat?utm_source=qq&utm_medium=11&utm_campaign=QQ11&utm_content=11&utm_term=11') history.push('/blessingPreheat?utm_source=qq&utm_medium=11&utm_campaign=QQ11&utm_content=11&utm_term=11')
this.fetchUserBlessing(3, () => { this.fetchUserBlessing(3, () => {
this.handleToAddBlessing(3); this.handleToAddBlessing(3);
...@@ -287,7 +291,7 @@ class CollectBlessing extends Component { ...@@ -287,7 +291,7 @@ class CollectBlessing extends Component {
<a <a
className="collect-blessing__share-button" className="collect-blessing__share-button"
data-type="qq" data-type="qq"
onClick={this.qqToShare} onClick={(e) => this.qqToShare(e)}
></a> ></a>
<a <a
className="collect-blessing__share-button" className="collect-blessing__share-button"
......
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