notice.vue 710 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="diy-notice"
  3. :style="{ paddingTop: diyitem.base.paddingTop + 'px',paddingBottom: diyitem.base.paddingTop + 'px', paddingLeft: 0, background: diyitem.base.bc }">
  4. <uni-notice-bar :showIcon="false" :scrollable="true" :single="true"
  5. :background-color="diyitem.base.bc" :color="diyitem.text.color"
  6. :fontsize="diyitem.text.fontsize" :text="diyitem.text.txt">
  7. </uni-notice-bar>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'notice',
  13. props: {
  14. diyitem: {
  15. type: Object,
  16. default () {
  17. return {};
  18. }
  19. }
  20. },
  21. computed: {
  22. },
  23. data() {
  24. return {};
  25. },
  26. methods: {
  27. navigateTo: function(e) {
  28. this.sam.diynavigateTo(e)
  29. }
  30. }
  31. };
  32. </script>