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;