You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
4.5 KiB

3 years ago
<template>
<top>
3 years ago
<view slot="content" class="content">
<view class="swipers">
<u-swiper
:title="true"
border-radius="15"
duration="1500"
mode="dot"
height="300"
:list="imglist"></u-swiper>
</view>
<menu-bar :tabs="list" :currentPage="menuIndex"></menu-bar>
3 years ago
3 years ago
<tab-bar :currentPage="2"></tab-bar>
3 years ago
</view>
</top>
</template>
<script>
export default {
3 years ago
onload(val){
console.log(val)
that.menuIndex = val.index
// location.reload()
},
onShow() {
var that = this
console.log('before',that.menuIndex)
that.menuIndex = uni.getStorageSync('menuIndex')?uni.getStorageSync('menuIndex'):0
console.log('after',that.menuIndex)
uni.removeStorageSync('menuIndex')
},
created() {
},
3 years ago
data() {
return {
3 years ago
menuIndex:0,
imglist: [
],
3 years ago
list:[[{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
3 years ago
}],[{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
},{
title:"于贵平主持召开第9次周调度例会",
times:"2022-08-21",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
}],[],[''],[''],[''],[],[]]
3 years ago
}
},
methods: {
}
}
</script>
<style scoped>
3 years ago
.swipers{
padding:40rpx;
padding-bottom:0
}
.content{
background-color: #fff;
}
.u-swiper-wrap{
height:360rpx
}
/deep/ .swipers .u-swiper-title{
padding-bottom: 10rpx !important;
}
/* /deep/ .u-swiper-indicator{
bottom: -40rpx !important;;
} */
/deep/ .u-indicator-item-dot{
background-color: #fff;
border: 1px solid #DB1B29;
width:20rpx;
height:20rpx;
}
/deep/ .u-indicator-item-dot-active{
background-color: #DB1B29;
}
3 years ago
</style>