feat: banner支持外链

This commit is contained in:
wangsongsole 2023-08-30 16:41:53 +08:00
parent 821d11ce94
commit c0cf51f6b5
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@
</div>
</div>
<div class="fictitious" v-if="viewConfig.search.iswitch==='1'"></div>
<img class="banner" :src="viewConfig.top_image" alt="">
<img class="banner" :src="viewConfig.top_image" alt="" @click="location.href=viewConfig.bannerUrl">
</div>
<!-- 配置的图片 -->

View File

@ -48,7 +48,7 @@
<div class="topBanner">
<img class="backpresty" @click="backgoodsFn" v-if="goodsShow&&!iskey"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
<img :src="topImg" alt="">
<img :src="topImg" alt="" @click="location.href=bannerUrl">
</div>
<!-- //轮播 -->
<div class="saleNull" v-if="!goodsNum">
@ -237,6 +237,7 @@
this.layout = productConfig.list;
this.iskey = localStorage.getItem('haskey');
this.describe = productConfig.describe;
this.bannerUrl = productConfig.bannerUrl;
},
methods: {
closeTip () {