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 = '';
switch (type) { let detailData = {
case 0:
linkPath = `${config.localHost}/groupBuy/list?h=0&activityId=${shareInfo.activityId}`;
break;
case 1:
linkPath = qs.stringify({
skuNo: shareInfo.skuNo, skuNo: shareInfo.skuNo,
groupBuyGroupId: shareInfo.groupBuyGroupId,
goodsSpecialId: shareInfo.goodsSpecialId, goodsSpecialId: shareInfo.goodsSpecialId,
activityId: shareInfo.activityId, activityId: shareInfo.activityId,
templateId: shareInfo.templateId, templateId: shareInfo.templateId,
templateDetailId: shareInfo.templateDetailId templateDetailId: shareInfo.templateDetailId
}); };
switch (type) {
case 0:
linkPath = `${config.localHost}/groupBuy/list?h=0&activityId=${shareInfo.activityId}`;
break;
case 1:
case 2:
case 3:
if (shareInfo.groupBuyGroupId) {
detailData.groupBuyGroupId = shareInfo.groupBuyGroupId;
}
linkPath = qs.stringify(detailData);
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