...
|
...
|
@@ -12,15 +12,15 @@ function h5Path(shareUid, actPrizeId) { |
|
|
return location.protocol + `//m.yohobuy.com/activity/yoluck/${actPrizeId}.html?shareUid=${shareUid}`;
|
|
|
}
|
|
|
|
|
|
function shareName(userName) {
|
|
|
return `${userName || ''}邀请你参加0元抽奖活动`;
|
|
|
function shareName(name) {
|
|
|
return `【0元抽奖】点一下,免费拿走${name}`;
|
|
|
}
|
|
|
|
|
|
function shareDesc(name) {
|
|
|
return `奖品:${name}`;
|
|
|
}
|
|
|
|
|
|
function shareData({name, imgUrl, price, shareUid, userName, actPrizeId}) {
|
|
|
function shareData({name, imgUrl, price, shareUid, actPrizeId}) {
|
|
|
let link = h5Path(shareUid, actPrizeId);
|
|
|
let urls = imgUrl.split('?');
|
|
|
let shareImg = urls[0] || imgUrl;
|
...
|
...
|
@@ -29,12 +29,10 @@ function shareData({name, imgUrl, price, shareUid, userName, actPrizeId}) { |
|
|
shareImg = `${shareImg}?imageView2/2/w/375/h/235/q/60`;
|
|
|
}
|
|
|
|
|
|
userName = userName || '';
|
|
|
|
|
|
return {
|
|
|
app: {
|
|
|
shareType: 'yoluck',
|
|
|
title: shareName(userName),
|
|
|
title: shareName(name),
|
|
|
imgUrl: shareImg,
|
|
|
market_price: price,
|
|
|
miniProgramUrl: miniPath(shareUid, actPrizeId),
|
...
|
...
|
@@ -44,7 +42,7 @@ function shareData({name, imgUrl, price, shareUid, userName, actPrizeId}) { |
|
|
hideType: ['7', '8', '9']
|
|
|
},
|
|
|
h5: {
|
|
|
title: shareName(userName),
|
|
|
title: shareName(name),
|
|
|
imgUrl: imgUrl,
|
|
|
link: link,
|
|
|
desc: shareDesc(name),
|
...
|
...
|
|