Commit 3af60d28 authored by beisir's avatar beisir

feat:分享参数设置

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