s-notice-block.vue 708 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="ss-flex ss-col-center notice-wrap">
  3. <image class="icon-img" :src="sheep.$url.cdn(data.src)" mode="heightFix"></image>
  4. <su-notice-bar
  5. style="flex: 1"
  6. :showIcon="false"
  7. scrollable
  8. single
  9. :text="data.title.text"
  10. :speed="50"
  11. :color="data.title.color"
  12. @tap="sheep.$router.go(data.url)"
  13. ></su-notice-bar>
  14. </view>
  15. </template>
  16. <script setup>
  17. /**
  18. * 装修组件 - 通知栏
  19. *
  20. */
  21. import sheep from '@/sheep';
  22. const props = defineProps({
  23. data: {
  24. type: Object,
  25. default() {},
  26. },
  27. });
  28. </script>
  29. <style lang="scss" scoped>
  30. .notice-wrap {
  31. .icon-img {
  32. height: 60rpx;
  33. }
  34. }
  35. </style>