【功能完善】分享赚分享

pull/126/head
puhui999 2024-11-29 11:10:37 +08:00
parent 7be216ea4b
commit 1ff8890d58
1 changed files with 7 additions and 8 deletions

View File

@ -76,13 +76,12 @@
shareInfo: {},
});
// TODO @puhui999
function onShareGoods(goodsInfo) {
state.shareInfo = $share.getShareInfo(
{
title: goodsInfo.title,
image: sheep.$url.cdn(goodsInfo.image),
desc: goodsInfo.subtitle,
title: goodsInfo.name,
image: sheep.$url.cdn(goodsInfo.picUrl),
desc: goodsInfo.introduction,
params: {
page: '2',
query: goodsInfo.id,
@ -90,10 +89,10 @@
},
{
type: 'goods', //
title: goodsInfo.title, //
image: sheep.$url.cdn(goodsInfo.image), //
price: goodsInfo.price[0], //
original_price: goodsInfo.original_price, //
title: goodsInfo.name, //
image: sheep.$url.cdn(goodsInfo.picUrl), //
price: fen2yuan(goodsInfo.price), //
original_price: fen2yuan(goodsInfo.marketPrice), //
},
);
showShareModal();