fix:拼团分享海报时,拼团人数不正确的问题

This commit is contained in:
YunaiV
2025-04-26 19:18:15 +08:00
parent 50973a9a30
commit 70f9c004ea
2 changed files with 6 additions and 3 deletions
@@ -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,