|
|
@ -2,6 +2,15 @@ |
|
|
|
<view class="bg"> |
|
|
|
<headerVue /> |
|
|
|
|
|
|
|
<view class="start-swiper" v-show="isShow" @click="this.isShow = false"> |
|
|
|
<swiper class="start-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500" |
|
|
|
@change="onSwiperChange"> |
|
|
|
<swiper-item v-for="(item, index) in startSwiper" :key="index"> |
|
|
|
<image :src="showImg(item.head_img)" mode="aspectFill"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view class="top-box"> |
|
|
|
<swiper class="carousel-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500" |
|
|
|
@change="onSwiperChange"> |
|
|
@ -73,10 +82,21 @@ |
|
|
|
categories: [], |
|
|
|
readingList: [], |
|
|
|
readingType: [{title: '2025', id: 3}, {title: '2026', id: 6}, {title: '全部', id: ''},], |
|
|
|
readingIndex: 0 |
|
|
|
readingIndex: 0, |
|
|
|
startSwiper: [], |
|
|
|
isShow: true |
|
|
|
} |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
this.Post({ |
|
|
|
type_id: 3, |
|
|
|
position: 4, |
|
|
|
}, '/api/adv/getAdv').then(res => { |
|
|
|
if(res.data) { |
|
|
|
this.startSwiper = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.sendRequest() |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -277,4 +297,18 @@ |
|
|
|
margin-bottom: 30rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.start-swiper { |
|
|
|
width: 100vw; |
|
|
|
height: calc(100vh - 123rpx); |
|
|
|
position: fixed; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
z-index: 100; |
|
|
|
|
|
|
|
image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |