From fc396021c646f077177c5e5a02703d8822dc7488 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 14 Aug 2024 11:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E6=8B=BC=E5=9B=A2=EF=BC=9A=E5=AE=8C=E5=96=84=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E6=8B=BC=E5=9B=A2=E6=B5=B7=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/groupon/detail.vue | 7 +++---- sheep/components/s-share-modal/canvas-poster/index.vue | 2 +- .../s-share-modal/canvas-poster/poster/groupon.js | 10 +++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/pages/activity/groupon/detail.vue b/pages/activity/groupon/detail.vue index 86daff20..54388bdd 100644 --- a/pages/activity/groupon/detail.vue +++ b/pages/activity/groupon/detail.vue @@ -203,7 +203,7 @@ import { computed, reactive } from 'vue'; import sheep from '@/sheep'; import { onLoad } from '@dcloudio/uni-app'; - import { useDurationTime } from '@/sheep/hooks/useGoods'; + import { fen2yuan, useDurationTime } from '@/sheep/hooks/useGoods'; import { showShareModal } from '@/sheep/hooks/useModal'; import { isEmpty } from 'lodash-es'; import CombinationApi from '@/sheep/api/promotion/combination'; @@ -231,15 +231,14 @@ desc: state.data.goods?.subtitle, params: { page: '5', - query: state.data.id, + query: state.data.headRecord.id, }, }, { type: 'groupon', // 邀请拼团海报 title: state.data.headRecord.spuName, // 商品标题 image: sheep.$url.cdn(state.data.headRecord.picUrl), // 商品主图 - price: state.data.goods?.price, // 商品价格 - original_price: state.data.goods?.original_price, // 商品原价 + price: fen2yuan(state.data.headRecord.combinationPrice), // 商品价格 }, ); }); diff --git a/sheep/components/s-share-modal/canvas-poster/index.vue b/sheep/components/s-share-modal/canvas-poster/index.vue index 87ee562a..9e67943b 100644 --- a/sheep/components/s-share-modal/canvas-poster/index.vue +++ b/sheep/components/s-share-modal/canvas-poster/index.vue @@ -66,7 +66,7 @@ css: { // 根节点若无尺寸,自动获取父级节点 width: sheep.$platform.device.windowWidth * 0.9, - height: 550, + height: 600, }, views: [], }); 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 d1b6b78a..4b33c8ca 100644 --- a/sheep/components/s-share-modal/canvas-poster/poster/groupon.js +++ b/sheep/components/s-share-modal/canvas-poster/poster/groupon.js @@ -82,12 +82,12 @@ const groupon = async (poster) => { type: 'text', text: '2人团', css: { - color: '#ff0000', - fontSize: 30, + color: '#fff', + fontSize: 12, fontFamily: 'OPPOSANS', position: 'fixed', - left: width * 0.3, - top: width * 1.32, + left: width * 0.84, + top: width * 1.3, }, }, // #ifndef MP-WEIXIN @@ -96,7 +96,7 @@ const groupon = async (poster) => { text: poster.shareInfo.link, css: { position: 'fixed', - left: width * 0.75, + left: width * 0.5, top: width * 1.3, width: width * 0.2, height: width * 0.2,