fix:拼团分享海报时,拼团人数不正确的问题
parent
50973a9a30
commit
70f9c004ea
|
@ -193,7 +193,6 @@
|
|||
@close="state.showSelectSku = false"
|
||||
/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<s-empty v-if="!state.data && !state.loading" icon="/static/goods-empty.png" />
|
||||
|
@ -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, // 拼团人数
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue