修改引导页的显示判断

This commit is contained in:
daihh
2022-10-08 15:31:06 +08:00
parent e64b06b30d
commit e1a665730e

View File

@@ -2,7 +2,7 @@
<el-dialog
:close-on-click-modal="false"
:visible.sync="guideCollection"
:append-to-body="true"
:append-to-body="true"
top="90px"
width="900px">
<div class="gui-box">
@@ -20,8 +20,8 @@
<img class="banner-img" style=" margin: 0 auto;" :src="fileBaseUrl + item.img" alt="">
</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</div>
</swiper>
</div>
<p class="gui-text">{{description}}</p>
<el-button type="primary" class="btn-one" @click="goHome()">进入首页</el-button>
</div>
@@ -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;