Browse Source

提交

dev_xrcc
chenkainan 4 months ago
parent
commit
d5de04962b
  1. 5
      pages/index/index.vue
  2. 7
      pages/index/intelligentAgent.vue
  3. 36
      pages/index/readingBody.vue

5
pages/index/index.vue

@ -75,13 +75,12 @@
flex-direction: column;
}
.content{
flex: 1;
height: 200rpx;
height: calc(100vh - 123rpx);
width: 100%;
}
.top-banner {
width: 100%;
height: 100%;
height: calc(100vh - 123rpx);
}
</style>

7
pages/index/intelligentAgent.vue

@ -84,7 +84,6 @@
</script>
<style lang="scss" scoped>
.bg {
min-height: 100vh;
background: #FFFFFF;
@ -93,13 +92,11 @@
}
.content{
flex: 1;
height: 200rpx;
height: calc(100vh - 123rpx);
width: 100%;
}
.top-banner {
width: 100%;
height: 100%;
height: calc(100vh - 123rpx);
}
</style>

36
pages/index/readingBody.vue

@ -1,6 +1,15 @@
<template>
<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"
@ -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>
Loading…
Cancel
Save