notice.vue 1.5 KB

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