announcement.vue 976 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view>
  3. <view v-if="storage" class="margin-tb-sm flex align-center bg-white flex padding-top-xs padding-bottom-sm"
  4. style="width: 1000px;">
  5. <image src="../../../static/index/title.png" mode="aspectFit" class="bg-white"
  6. style="width: 184rpx;height: 43rpx;z-index: 99;padding:0 30rpx;"></image>
  7. <view style="width: 650px;color: #999999;font: 26rpx;" class="padding-left-sm margin-left-sm newtimes text-df">
  8. {{newTimesContent}}
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'Announcement',
  16. props: ['storage', 'newTimesContent']
  17. }
  18. </script>
  19. <style scoped lang="scss">
  20. /* 新鲜时报 */
  21. .newtimes {
  22. overflow: hidden;
  23. white-space: nowrap;
  24. box-sizing: border-box;
  25. animation: marquee 15s linear infinite;
  26. }
  27. @keyframes marquee {
  28. 0% {
  29. -webkit-transform: translateX(184rpx);
  30. }
  31. 100% {
  32. -webkit-transform: translateX(-100%);
  33. }
  34. }
  35. </style>