...
|
...
|
@@ -50,6 +50,7 @@ class GroupPurchaseContainer extends Component { |
|
|
this.shareMiniApp = this.shareMiniApp.bind(this);
|
|
|
this.shareWeiBoApp = this.shareWeiBoApp.bind(this);
|
|
|
this.shareQQApp = this.shareQQApp.bind(this);
|
|
|
this.shareWXSceneTimeline = this.shareWXSceneTimeline.bind(this);
|
|
|
this.showSnapshootShare = this.showSnapshootShare.bind(this);
|
|
|
this.shareSnapshootAction = this.shareSnapshootAction.bind(this);
|
|
|
this.jumpToMinePurchaseOrder = this.jumpToMinePurchaseOrder.bind(this);
|
...
|
...
|
@@ -150,6 +151,32 @@ class GroupPurchaseContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.shareWXMiniProgram(param);
|
|
|
}
|
|
|
|
|
|
shareWXSceneTimeline() {
|
|
|
this.props.actions.showShareView(false);
|
|
|
|
|
|
let fromPage = 'GroupPurchase';
|
|
|
let {
|
|
|
activityId,
|
|
|
shareCodeInfo,
|
|
|
} = this.props.groupPurchase;
|
|
|
let { unionType } = this.props.app;
|
|
|
|
|
|
let bigImage = shareCodeInfo.get('bigImage');
|
|
|
let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
|
|
|
let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool="${activityId}"&type=2&title=&groupPurchase=&union_type="${unionType}"`;
|
|
|
|
|
|
InteractionManager.runAfterInteractions(()=>{
|
|
|
let param = {
|
|
|
isText: 'text',
|
|
|
shareType: 'WXSceneTimeline',
|
|
|
imageUrl: productIcon,
|
|
|
title: shareUrl,
|
|
|
fromPage,
|
|
|
}
|
|
|
ReactNative.NativeModules.YH_CommonHelper.shareImageToWXMini(param);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
shareWeiBoApp() {
|
|
|
this.props.actions.showShareView(false);
|
|
|
|
...
|
...
|
@@ -157,10 +184,11 @@ class GroupPurchaseContainer extends Component { |
|
|
activityId,
|
|
|
shareCodeInfo,
|
|
|
} = this.props.groupPurchase;
|
|
|
let { unionType } = this.props.app;
|
|
|
|
|
|
let bigImage = shareCodeInfo.get('bigImage');
|
|
|
let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
|
|
|
let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool="${activityId}"&type=2&title=&groupPurchase=`;
|
|
|
let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool="${activityId}"&type=2&title=&groupPurchase=&union_type="${unionType}"`;
|
|
|
|
|
|
InteractionManager.runAfterInteractions(()=>{
|
|
|
let param = {
|
...
|
...
|
@@ -180,10 +208,11 @@ class GroupPurchaseContainer extends Component { |
|
|
activityId,
|
|
|
shareCodeInfo,
|
|
|
} = this.props.groupPurchase;
|
|
|
let { unionType } = this.props.app;
|
|
|
|
|
|
let bigImage = shareCodeInfo.get('bigImage');
|
|
|
let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
|
|
|
let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool="${activityId}"&type=2&title=&groupPurchase=`;
|
|
|
let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool="${activityId}"&type=2&title=&groupPurchase=&union_type="${unionType}"`;
|
|
|
|
|
|
InteractionManager.runAfterInteractions(()=>{
|
|
|
let param = {
|
...
|
...
|
@@ -232,7 +261,7 @@ class GroupPurchaseContainer extends Component { |
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
<ShareViewModal show={showShareView} unionType={unionType} showShareView={this.showShareView} shareMiniApp={this.shareMiniApp} shareWeiBoApp={this.shareWeiBoApp} shareQQApp={this.shareQQApp} showSnapshootShare={this.showSnapshootShare}/>
|
|
|
<ShareViewModal show={showShareView} unionType={unionType} showShareView={this.showShareView} shareMiniApp={this.shareMiniApp} shareWeiBoApp={this.shareWeiBoApp} shareQQApp={this.shareQQApp} shareWXSceneTimeline={this.shareWXSceneTimeline} showSnapshootShare={this.showSnapshootShare}/>
|
|
|
<ListSnapshootShare
|
|
|
show={showSnapshootShare}
|
|
|
unionType={unionType}
|
...
|
...
|
|