处理问题
This commit is contained in:
parent
79307a0495
commit
9d096d69ae
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user