From 1ff8890d58aa5c4b2bcc78501c16453ae100f17d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 29 Nov 2024 11:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E3=80=91=E5=88=86=E4=BA=AB=E8=B5=9A=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/commission/goods.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pages/commission/goods.vue b/pages/commission/goods.vue index 7435e402..0e02d08b 100644 --- a/pages/commission/goods.vue +++ b/pages/commission/goods.vue @@ -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();