From e1a665730eb1172ac52cb534dac0a70c7325f049 Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 8 Oct 2022 15:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=95=E5=AF=BC=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/guideBox.vue | 31 ++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue index fab31d75..c620b844 100644 --- a/src/components/Portal/guideBox.vue +++ b/src/components/Portal/guideBox.vue @@ -2,7 +2,7 @@
@@ -20,8 +20,8 @@
- -
+ +

{{description}}

进入首页 @@ -65,22 +65,25 @@ navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', - }, + }, }, } }, created() { + //这里必须放在当前的Session存储中,不能每次都调用 apiGuide.hasUser().then(res=>{ if(res.result) { - this.guideCollection = true; - } else { this.guideCollection = false; + } else { + this.guideCollection = true; + //只是在显示时才调用 + this.getlist(); } - }) - this.getlist(); + }); + }, mounted() { - + }, methods:{ goHome() { @@ -94,14 +97,14 @@ } }) }, - + showImg(item) { this.resonimg = []; if(item){ this.description = item.description; this.resonimg = item.images; } - + // this.swiper.update(); }, notYet() { @@ -110,7 +113,7 @@ }, }, watch:{ - + }, computed:{ swiper() { @@ -135,7 +138,7 @@ right:-136px; top:45px; } - + ::v-deep .swiper-wrapper{ padding-bottom: 60px; } @@ -213,7 +216,7 @@ } } ::v-deep .el-dialog{ - // background: #fff url('/images/homeWu/interest.png') no-repeat; + // background: #fff url('/images/homeWu/interest.png') no-repeat; border-radius: 10px; .el-dialog__header{ display: none;