notice.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view v-if="noticelist.length">
  3. <view class="hswip flexc" >
  4. <image :src="tztip"></image>
  5. <swiper class="swiper" circular :autoplay="autoplay" :interval="interval" :duration="duration" vertical='true'>
  6. <swiper-item v-for="(ite,idx) in noticelist" :key="">
  7. <view class="flexc swipers">
  8. <view class="tit over" v-if="ite.noticeContent">
  9. <rich-text :nodes="ite.noticeContent"></rich-text>
  10. </view>
  11. <view class="time">{{ite.updateTime}}</view>
  12. </view>
  13. </swiper-item>
  14. <!-- <swiper-item>
  15. <view class="flexc swipers">
  16. <view class="tit over">2《关于优化我市惠企利民政策“免审即…</view>
  17. <view class="time">02-27</view>
  18. </view>
  19. </swiper-item> -->
  20. </swiper>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. props:{
  27. autoplay: {
  28. type: Boolean,
  29. default () {
  30. return false
  31. }
  32. },
  33. confdat:{},
  34. noticelist:{
  35. type: Array,
  36. default () {
  37. return []
  38. }
  39. }
  40. },
  41. data(){
  42. return{
  43. tztip:require('@/static/images/home/tztip.png'),
  44. interval: 2000,
  45. duration: 500
  46. }
  47. },
  48. methods:{
  49. getRoad(){
  50. console.log(1)
  51. },
  52. },
  53. onLoad: function() {
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .hswip{width: 100%;background: #F4F7FF;border-radius: 10rpx;height: 88rpx;padding: 0 20rpx 0 24rpx;box-sizing: border-box;
  59. image{width: 66rpx;height: 30rpx;flex: 0 0 auto;margin-right: 30rpx;}
  60. .swiper{flex: 1;height: 88rpx;
  61. .swipers{height: 88rpx;}
  62. .tit{flex: 1;font-weight: 500;font-size: 26rpx;color: #666666;}
  63. .time{font-size: 24rpx;color: #666666;flex: 0 0 auto;margin-left: 40rpx;}
  64. }
  65. }
  66. </style>