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; flex-direction: column;
} }
.content{ .content{
flex: 1; height: calc(100vh - 123rpx);
height: 200rpx;
width: 100%; width: 100%;
} }
.top-banner { .top-banner {
width: 100%; width: 100%;
height: 100%; height: calc(100vh - 123rpx);
} }
</style> </style>

7
pages/index/intelligentAgent.vue

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

36
pages/index/readingBody.vue

@ -1,6 +1,15 @@
<template> <template>
<view class="bg"> <view class="bg">
<headerVue /> <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"> <!-- <view class="top-box">
<swiper class="carousel-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500" <swiper class="carousel-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500"
@ -73,10 +82,21 @@
categories: [], categories: [],
readingList: [], readingList: [],
readingType: [{title: '2025', id: 3}, {title: '2026', id: 6}, {title: '全部', id: ''},], readingType: [{title: '2025', id: 3}, {title: '2026', id: 6}, {title: '全部', id: ''},],
readingIndex: 0 readingIndex: 0,
startSwiper: [],
isShow: true
} }
}, },
onReady() { onReady() {
this.Post({
type_id: 3,
position: 4,
}, '/api/adv/getAdv').then(res => {
if(res.data) {
this.startSwiper = res.data;
}
});
this.sendRequest() this.sendRequest()
}, },
methods: { methods: {
@ -277,4 +297,18 @@
margin-bottom: 30rpx; 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> </style>
Loading…
Cancel
Save