处理问题

This commit is contained in:
TS-QD1 2023-07-14 16:11:17 +08:00
parent 79307a0495
commit 9d096d69ae
3 changed files with 11 additions and 4 deletions

View File

@ -13,7 +13,7 @@ module.exports = {
proxyTable: {},
// Various Dev Server settings
host: '192.168.5.59', // can be overwritten by process.env.HOST
host: '127.0.0.1', // can be overwritten by process.env.HOST
port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,

BIN
dist.zip

Binary file not shown.

View File

@ -34,8 +34,8 @@
</div>
<div class="banner">
<swiper ref="mySwiper" :options="swiperOptions">
<swiper-slide v-for="(banner,idx) in bannerList" :key="idx">
<div class="banner-box">
<swiper-slide v-for="(banner,idx) in bannerList" :key="idx" style="cursor: pointer;">
<div class="banner-box" @click="goDetail(banner.newsContentLink, banner.templateRecordUrl, banner.newsContentType, banner.newsContentContent)">
<img :src="requestUrl + '/news/route/file/downloadfile/true/' + banner.newsContentCoverList" alt="">
</div>
</swiper-slide>
@ -119,6 +119,13 @@ export default {
self.bannerList = res.data.rows
})
},
goDetail: function (link, url, type, outlink) {
if (type === '6') {
window.open(outlink)
} else {
window.location.href = this.requestUrl + '/' +url
}
},
//
getHonorIntro: function () {
var self = this
@ -311,7 +318,7 @@ export default {
left 0
right 0
bottom 0
z-index -1
z-index 2
.swiper-container
height 100% !important
.banner-box