From e5dc9d3001a3a1132ff8bfd2b32bc5ae705f7015 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 17 Jul 2024 17:22:44 +0800 Subject: [PATCH] =?UTF-8?q?v-html=E6=9C=80=E5=A4=A7=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9,=E5=88=86=E4=BA=AB=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/detail.vue | 20 +++++++++++++------- src/views/communityPublicity/detail.vue | 4 +++- src/views/mine/mySatisfaction/index.vue | 4 ++-- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/views/activity/detail.vue b/src/views/activity/detail.vue index 379cc4d..d788af7 100644 --- a/src/views/activity/detail.vue +++ b/src/views/activity/detail.vue @@ -97,20 +97,26 @@ export default { if (wx.updateAppMessageShareData) { wx.ready(function () { wx.updateAppMessageShareData({ - title: 'e智社区', - desc: than.info.activityName, + title: than.info.activityName, + desc: '', link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/activityDetail?id=${than.$route.query.id}&appId=${than.$store.state.app.appId}`, - imgUrl: 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', + imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', + success: function () {} + }) + wx.updateTimelineShareData({ + title: than.info.activityName, + desc: '', + link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/activityDetail?id=${than.$route.query.id}&appId=${than.$store.state.app.appId}`, + imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', success: function () {} }) }); - } else { wx.onMenuShareAppMessage({ - title: 'e智社区', - desc: than.info.activityName, + title: than.info.activityName, + desc: '', link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/activityDetail?id=${than.$route.query.id}&appId=${than.$store.state.app.appId}`, - imgUrl: 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', + imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', success: function () {} }) } diff --git a/src/views/communityPublicity/detail.vue b/src/views/communityPublicity/detail.vue index f955689..0004c04 100644 --- a/src/views/communityPublicity/detail.vue +++ b/src/views/communityPublicity/detail.vue @@ -108,7 +108,9 @@ export default { :deep(.p0>.van-cell) { padding: 0; } - +:deep img{ + max-width: 100%; +} :deep(.van-cell) { padding: 16px 8px; } diff --git a/src/views/mine/mySatisfaction/index.vue b/src/views/mine/mySatisfaction/index.vue index 9fb367f..b425b20 100644 --- a/src/views/mine/mySatisfaction/index.vue +++ b/src/views/mine/mySatisfaction/index.vue @@ -2,7 +2,7 @@