From 47a81a5f0ace4a05d0aef9d826e70d17fcdab388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?21=E4=B8=96=E7=BA=AA=E5=B0=8F=E5=85=AB=E8=B7=AF?= <2529156631@qq.com> Date: Sun, 8 Dec 2024 17:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90uniapp=E3=80=91:?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=9C=AA=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E4=B9=9F=E5=8F=AF=E4=BB=A5=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods-detail-info/goods-detail-info.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/components/goods-detail/components/goods-detail-info/goods-detail-info.vue b/CoreCms.Net.Uni-App/CoreShop/pages/components/goods-detail/components/goods-detail-info/goods-detail-info.vue index 4e0232c7..8c0d4302 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/components/goods-detail/components/goods-detail-info/goods-detail-info.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/components/goods-detail/components/goods-detail-info/goods-detail-info.vue @@ -26,7 +26,8 @@ - + + {{ props.goodsDetailData?.name }} @@ -80,7 +81,7 @@ import { ShareEnum } from '@/core/enum'; import Point from '@/pages/components/custom-page/components/home-goods/point.vue'; import { handleShowToast } from '@/core/utils'; - import CoreshopShare from '@/components/coreshop-share/coreshop-share.vue'; + import CoreshopShare from '@/components/coreshop-share/coreshop-share.vue'; import { useLoginStore } from '@/core/store'; /** 登录store */ @@ -102,7 +103,7 @@ }>({ isFav: false, showShare: false, - }); + }); watch(() => props.goodsDetailData, (newVla : any) => { if (newVla) { @@ -124,9 +125,7 @@ /** 分享弹框显示与否 */ const handleToggleShowShare = () => { - _useLoginStore.checkLogin(() => { - state.showShare = !state.showShare; - }); + state.showShare = !state.showShare; }