NewNotice.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="c-newNoctice l-flex--col">
  3. <div class="c-newNoctice--header l-flex--row">
  4. <div class="l-flex__fill">消息通知</div>
  5. <div class="l-flex__none c-count">{{ count }}s</div>
  6. </div>
  7. <div class="c-block l-flex--col jcenter center l-flex__auto has-padding">
  8. <div class="c-block--time u-bold">{{ notice.happenTime }}</div>
  9. <div class="c-block--info u-bold u-text--center">{{ notice.deviceName }}{{ notice.type }}</div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'NewNotice',
  16. props: {
  17. notice: {
  18. type: Object,
  19. required: true
  20. },
  21. count: {
  22. type: Number,
  23. default: 0
  24. }
  25. },
  26. data () {
  27. return {}
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. .c-newNoctice {
  33. font-size: 32px;
  34. &--header {
  35. padding: 0 1rem;
  36. height: 56px;
  37. background: #2956f0;
  38. color: #fff;
  39. font-size: 28px;
  40. }
  41. }
  42. .c-block {
  43. background: #fff;
  44. &--time {
  45. color: #6a6565;
  46. margin-bottom:30px ;
  47. }
  48. &--info {
  49. color: #000000;
  50. }
  51. }
  52. </style>