...
|
...
|
@@ -11,6 +11,8 @@ import GroupPurchase from '../components/GroupPurchase'; |
|
|
import ShareViewModal from '../components/ShareViewModal';
|
|
|
import ListSnapshootShare from '../components/ListSnapshootShare';
|
|
|
import {getSlicedUrl} from '../../classify/utils/Utils';
|
|
|
import Helper from '../utils/Helper';
|
|
|
|
|
|
|
|
|
const actions = [
|
|
|
groupPurchaseActions,
|
...
|
...
|
@@ -56,6 +58,8 @@ class GroupPurchaseContainer extends Component { |
|
|
this.props.actions.showShareView(true);
|
|
|
}
|
|
|
);
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
async componentDidMount() {
|
...
|
...
|
@@ -114,11 +118,14 @@ class GroupPurchaseContainer extends Component { |
|
|
activityId,
|
|
|
resource,
|
|
|
shareCodeInfo,
|
|
|
groupListParams,
|
|
|
} = this.props.groupPurchase;
|
|
|
if (!resource) {
|
|
|
return;
|
|
|
}
|
|
|
let miniProgramPath = '/pages/group/list?activityId=' + activityId;
|
|
|
miniProgramPath = Helper.joinWxProgramPath(miniProgramPath, groupListParams)
|
|
|
|
|
|
let fromPage = 'GroupPurchase';
|
|
|
let bigImage = shareCodeInfo.get('bigImage');
|
|
|
let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
|
...
|
...
|
@@ -153,6 +160,7 @@ class GroupPurchaseContainer extends Component { |
|
|
productList,
|
|
|
resource,
|
|
|
shareCodeInfo,
|
|
|
groupListParams,
|
|
|
} = this.props.groupPurchase;
|
|
|
|
|
|
let {
|
...
|
...
|
@@ -160,7 +168,9 @@ class GroupPurchaseContainer extends Component { |
|
|
unionType,
|
|
|
} = this.props.app;
|
|
|
|
|
|
let groupParams = Helper.excludeParams(groupListParams, false)
|
|
|
let param = {
|
|
|
...groupParams,
|
|
|
activityId,
|
|
|
}
|
|
|
|
...
|
...
|
|