【功能完善】分享赚分享
parent
7be216ea4b
commit
1ff8890d58
|
@ -76,13 +76,12 @@
|
||||||
shareInfo: {},
|
shareInfo: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO @puhui999:【分享】接入
|
|
||||||
function onShareGoods(goodsInfo) {
|
function onShareGoods(goodsInfo) {
|
||||||
state.shareInfo = $share.getShareInfo(
|
state.shareInfo = $share.getShareInfo(
|
||||||
{
|
{
|
||||||
title: goodsInfo.title,
|
title: goodsInfo.name,
|
||||||
image: sheep.$url.cdn(goodsInfo.image),
|
image: sheep.$url.cdn(goodsInfo.picUrl),
|
||||||
desc: goodsInfo.subtitle,
|
desc: goodsInfo.introduction,
|
||||||
params: {
|
params: {
|
||||||
page: '2',
|
page: '2',
|
||||||
query: goodsInfo.id,
|
query: goodsInfo.id,
|
||||||
|
@ -90,10 +89,10 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'goods', // 商品海报
|
type: 'goods', // 商品海报
|
||||||
title: goodsInfo.title, // 商品标题
|
title: goodsInfo.name, // 商品名称
|
||||||
image: sheep.$url.cdn(goodsInfo.image), // 商品主图
|
image: sheep.$url.cdn(goodsInfo.picUrl), // 商品主图
|
||||||
price: goodsInfo.price[0], // 商品价格
|
price: fen2yuan(goodsInfo.price), // 商品价格
|
||||||
original_price: goodsInfo.original_price, // 商品原价
|
original_price: fen2yuan(goodsInfo.marketPrice), // 商品原价
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
showShareModal();
|
showShareModal();
|
||||||
|
|
Loading…
Reference in New Issue