123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <view v-if="noticelist.length">
- <view class="hswip flexc" >
- <image :src="tztip"></image>
- <swiper class="swiper" circular :autoplay="autoplay" :interval="interval" :duration="duration" vertical='true'>
- <swiper-item v-for="(ite,idx) in noticelist" :key="">
- <view class="flexc swipers">
- <view class="tit over" v-if="ite.noticeContent">
- <rich-text :nodes="ite.noticeContent"></rich-text>
- </view>
- <view class="time">{{ite.updateTime}}</view>
- </view>
- </swiper-item>
- <!-- <swiper-item>
- <view class="flexc swipers">
- <view class="tit over">2《关于优化我市惠企利民政策“免审即…</view>
- <view class="time">02-27</view>
- </view>
- </swiper-item> -->
- </swiper>
-
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- autoplay: {
- type: Boolean,
- default () {
- return false
- }
- },
- confdat:{},
- noticelist:{
- type: Array,
- default () {
- return []
- }
- }
- },
- data(){
- return{
- tztip:require('@/static/images/home/tztip.png'),
- interval: 2000,
- duration: 500
- }
- },
- methods:{
- getRoad(){
- console.log(1)
- },
- },
- onLoad: function() {
- }
- }
- </script>
- <style lang="scss" scoped>
- .hswip{width: 100%;background: #F4F7FF;border-radius: 10rpx;height: 88rpx;padding: 0 20rpx 0 24rpx;box-sizing: border-box;
- image{width: 66rpx;height: 30rpx;flex: 0 0 auto;margin-right: 30rpx;}
- .swiper{flex: 1;height: 88rpx;
- .swipers{height: 88rpx;}
- .tit{flex: 1;font-weight: 500;font-size: 26rpx;color: #666666;}
- .time{font-size: 24rpx;color: #666666;flex: 0 0 auto;margin-left: 40rpx;}
- }
- }
- </style>
|