From 70f9c004ea7e5a64bd37c259ce7dbbe9d2e7df67 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 26 Apr 2025 19:18:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=8B=BC=E5=9B=A2=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E6=B5=B7=E6=8A=A5=E6=97=B6=EF=BC=8C=E6=8B=BC=E5=9B=A2?= =?UTF-8?q?=E4=BA=BA=E6=95=B0=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/groupon/detail.vue | 2 +- .../s-share-modal/canvas-poster/poster/groupon.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/activity/groupon/detail.vue b/pages/activity/groupon/detail.vue index 0d691887..456bf7b4 100644 --- a/pages/activity/groupon/detail.vue +++ b/pages/activity/groupon/detail.vue @@ -193,7 +193,6 @@ @close="state.showSelectSku = false" /> - @@ -244,6 +243,7 @@ title: state.data.headRecord.spuName, // 商品标题 image: sheep.$url.cdn(state.data.headRecord.picUrl), // 商品主图 price: fen2yuan(state.data.headRecord.combinationPrice), // 商品价格 + grouponNum: state.data.headRecord.userSize, // 拼团人数 }, ); }); diff --git a/sheep/components/s-share-modal/canvas-poster/poster/groupon.js b/sheep/components/s-share-modal/canvas-poster/poster/groupon.js index 8eb7bfa9..c182d3fe 100644 --- a/sheep/components/s-share-modal/canvas-poster/poster/groupon.js +++ b/sheep/components/s-share-modal/canvas-poster/poster/groupon.js @@ -2,13 +2,16 @@ import sheep from '@/sheep'; import { formatImageUrlProtocol, getWxaQrcode } from './index'; const groupon = async (poster) => { + debugger; const width = poster.width; const userInfo = sheep.$store('user').userInfo; const wxa_qrcode = await getWxaQrcode(poster.shareInfo.path, poster.shareInfo.query); return [ { type: 'image', - src: formatImageUrlProtocol(sheep.$url.cdn(sheep.$store('app').platform.share.posterInfo.groupon_bg)), + src: formatImageUrlProtocol( + sheep.$url.cdn(sheep.$store('app').platform.share.posterInfo.groupon_bg), + ), css: { width, position: 'fixed', @@ -80,7 +83,7 @@ const groupon = async (poster) => { }, { type: 'text', - text: '2人团', + text: poster.shareInfo.poster.grouponNum + '人团', css: { color: '#fff', fontSize: 12,