From 4cfc7023f6e16838e444d7538f08f5930eba9362 Mon Sep 17 00:00:00 2001 From: lanzhihui2020 <503792708@qq.com> Date: Mon, 10 Aug 2026 17:55:31 +0800 Subject: [PATCH] update --- src/views/subDir/shopDetail.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/subDir/shopDetail.vue b/src/views/subDir/shopDetail.vue index 09dead8..9c596a1 100644 --- a/src/views/subDir/shopDetail.vue +++ b/src/views/subDir/shopDetail.vue @@ -80,7 +80,7 @@
- +
{{ title }}
@@ -189,6 +189,8 @@ const id = ref(''); const title = ref(''); const icon = ref(''); + const shareIcon = ref(''); + const sharePosterDesc = ref(''); const policyId = ref(''); const policyTitle = ref(''); const banner = ref([]); // 轮播图 @@ -309,7 +311,7 @@ // 获取库存数据后设置默认选中 getSkuIdStock(); let shareTitle = '' - let shareIcon = '' + shareIcon.value = '' let shareDesc = ''; if (id.value == 118 || id.value == 332) { shareDesc = '核心方案+专业服务团队与 AI 技术全程支持'; @@ -317,12 +319,13 @@ shareDesc = '双证报考,自我提升 + 就业双赢'; } else if (id.value == 489) { shareTitle = '友福同享•体重管理' - shareIcon = 'https://images.health.ufutx.com/202608/10/114e3a0d4d38049b3a0b628bb0db8dbb.jpg' + shareIcon.value = 'https://images.health.ufutx.com/202608/10/114e3a0d4d38049b3a0b628bb0db8dbb.jpg' shareDesc = '轻松减 不反弹'; + sharePosterDesc.value = '轻松减 不反弹' } else { shareDesc = '🌟 友福同享严选好物 →'; } - weXinShare(`${shareIcon || result.spu.icon}`, `https://health.ufutx.cn/go_html/store_common#/shopDetail/${id.value}?from_user_id=${userStore.userID}&from_type=rt_${id.value}`, `${shareTitle || result.spu.title}`, `${shareDesc}`); + weXinShare(`${shareIcon.value || result.spu.icon}`, `https://health.ufutx.cn/go_html/store_common#/shopDetail/${id.value}?from_user_id=${userStore.userID}&from_type=rt_${id.value}`, `${shareTitle || result.spu.title}`, `${shareDesc}`); let text = `https://health.ufutx.cn/go_html/store_common#/shopDetail/${id.value}?from_user_id=${userStore.userID}&from_type=rt_${id.value}`; shareUrl.value = text;