Commit f1ed13a1 authored by beisir's avatar beisir

fix:提交编码测试

parent 4ea34b31
...@@ -149,11 +149,13 @@ export default { ...@@ -149,11 +149,13 @@ export default {
activityId: shareInfo.activityId, activityId: shareInfo.activityId,
templateId: shareInfo.templateId, templateId: shareInfo.templateId,
templateDetailId: shareInfo.templateDetailId, templateDetailId: shareInfo.templateDetailId,
vccToken: '{token}' vccToken: encodeURIComponent('{token}')
}; };
switch (type) { switch (type) {
case 0: case 0:
linkPath = `${config.localHost}/groupBuy/list?activityId=${shareInfo.activityId}&vccToken={token}`; linkPath = `${config.localHost}/groupBuy/list?activityId=${
shareInfo.activityId
}&vccToken=${encodeURIComponent('{token}')}`;
break; break;
case 1: case 1:
case 2: case 2:
...@@ -180,7 +182,7 @@ export default { ...@@ -180,7 +182,7 @@ export default {
// const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath })); // const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath }));
// return `${linkPrve}&extraInfo=${linkParams}`; // return `${linkPrve}&extraInfo=${linkParams}`;
// } // }
return encodeURIComponent(linkPath); return linkPath;
}, },
shareOpenWechat() { shareOpenWechat() {
this.showShare = true; this.showShare = true;
...@@ -250,7 +252,6 @@ export default { ...@@ -250,7 +252,6 @@ export default {
} }
} }
}; };
alert(link);
this.nativeBridge.showShareView(data); this.nativeBridge.showShareView(data);
}, },
tipDialogMessage() { tipDialogMessage() {
......
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