...
|
...
|
@@ -76,7 +76,16 @@ export default class ProductDetail extends Component { |
|
|
'snapshoot-share' : '../../components/shareSheet/snapshootShare/snapshootShare'
|
|
|
}
|
|
|
}
|
|
|
componentDidMount() {
|
|
|
|
|
|
componentDidShow() {
|
|
|
let that = this;
|
|
|
let {id} = this.state;
|
|
|
event.emit('judge-user-is-login', function () {}, function () {
|
|
|
that.getFavoriteState(id);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
componentWillMount() {
|
|
|
let options = this.$router.params;
|
|
|
|
|
|
console.log('============111111==================');
|
...
|
...
|
@@ -116,23 +125,22 @@ export default class ProductDetail extends Component { |
|
|
productId = scene;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
this.setState({
|
|
|
id: productId
|
|
|
});
|
|
|
|
|
|
this.getProductData(productId);
|
|
|
this.getRecommendGoods(productId);
|
|
|
this.getFavoriteState(productId);
|
|
|
|
|
|
let that = this;
|
|
|
event.on(SHARE_CANCEL, () => {
|
|
|
this.onCancelSharesheetCallback();
|
|
|
that.onCancelSharesheetCallback();
|
|
|
});
|
|
|
event.on(SHARE_MOMENTS, () => {
|
|
|
this.shareMomentsCallback();
|
|
|
that.shareMomentsCallback();
|
|
|
});
|
|
|
event.on(SHARE_CANCEL_MOMENTS, () => {
|
|
|
this.hiddenSnaphotSheet();
|
|
|
that.hiddenSnaphotSheet();
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|