notice.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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" @click="getDetail(ite.zxNoticeId)">
  8. <view class="tit over">{{ite.noticeTitle}}</view>
  9. <view class="time">{{ite.issuerTime}}</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. noticelist:{
  33. type: Array,
  34. default () {
  35. return []
  36. }
  37. }
  38. },
  39. data(){
  40. return{
  41. tztip:require('@/static/images/home/tztip.png'),
  42. interval: 2000,
  43. duration: 500
  44. }
  45. },
  46. methods:{
  47. getRoad(){
  48. console.log(1)
  49. },
  50. getDetail(e){
  51. this.$emit('getNoticeDet',e)
  52. }
  53. },
  54. onLoad: function() {
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .hswip{width: 100%;background: #F4F7FF;border-radius: 10rpx;height: 88rpx;padding: 0 20rpx 0 24rpx;box-sizing: border-box;
  60. image{width: 66rpx;height: 30rpx;flex: 0 0 auto;margin-right: 30rpx;}
  61. .swiper{flex: 1;height: 88rpx;
  62. .swipers{height: 88rpx;}
  63. .tit{flex: 1;font-weight: 500;font-size: 26rpx;color: #666666;}
  64. .time{font-size: 24rpx;color: #666666;flex: 0 0 auto;margin-left: 40rpx;}
  65. }
  66. }
  67. </style>