Commit 3af60d28 authored by beisir's avatar beisir

feat:分享参数设置

parent ea3a5ec8
...@@ -127,19 +127,24 @@ export default { ...@@ -127,19 +127,24 @@ export default {
const type = this.type; const type = this.type;
let shareInfo = this.sharePicData; let shareInfo = this.sharePicData;
let linkPath = ''; let linkPath = '';
let detailData = {
skuNo: shareInfo.skuNo,
goodsSpecialId: shareInfo.goodsSpecialId,
activityId: shareInfo.activityId,
templateId: shareInfo.templateId,
templateDetailId: shareInfo.templateDetailId
};
switch (type) { switch (type) {
case 0: case 0:
linkPath = `${config.localHost}/groupBuy/list?h=0&activityId=${shareInfo.activityId}`; linkPath = `${config.localHost}/groupBuy/list?h=0&activityId=${shareInfo.activityId}`;
break; break;
case 1: case 1:
linkPath = qs.stringify({ case 2:
skuNo: shareInfo.skuNo, case 3:
groupBuyGroupId: shareInfo.groupBuyGroupId, if (shareInfo.groupBuyGroupId) {
goodsSpecialId: shareInfo.goodsSpecialId, detailData.groupBuyGroupId = shareInfo.groupBuyGroupId;
activityId: shareInfo.activityId, }
templateId: shareInfo.templateId, linkPath = qs.stringify(detailData);
templateDetailId: shareInfo.templateDetailId
});
linkPath = `${config.localHost}/groupBuy/skuInfo?h=0&${linkPath}`; linkPath = `${config.localHost}/groupBuy/skuInfo?h=0&${linkPath}`;
break; break;
} }
......
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