rollMessage.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="roll-box">
  3. <image class="roll-icon" src="../../static/logo.png" mode="aspectFit"></image>
  4. <view class="roll-list hide_1">
  5. <u-notice-bar icon='' bgColor="" duration="3000" direction="column" :text="rollMsg.map(el => {
  6. return el.title || ''
  7. })">
  8. </u-notice-bar>
  9. <!-- <view class="roll-item hide_1">
  10. 币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入
  11. </view> -->
  12. </view>
  13. <image class="roll-more" src="../../static/logo.png" mode="aspectFit"></image>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: "rollMessage",
  19. props: {
  20. rollMsg: {
  21. type: Array,
  22. default: () => []
  23. }
  24. },
  25. data() {
  26. return {
  27. list: [
  28. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  29. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  30. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  31. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  32. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  33. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  34. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
  35. '币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入'
  36. ]
  37. };
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .roll-box {
  43. width: 100%;
  44. height: 76rpx;
  45. background-color: $modules-box-bg;
  46. padding: 0 $pages-padding;
  47. display: flex;
  48. justify-content: space-between;
  49. align-items: center;
  50. .roll-icon,
  51. .roll-more {
  52. width: 30rpx;
  53. height: 30rpx;
  54. flex-shrink: 0;
  55. }
  56. .roll-list {
  57. width: calc(100% - 60rpx);
  58. height: 100%;
  59. flex-shrink: 0;
  60. padding: 0 20rpx;
  61. display: flex;
  62. align-items: center;
  63. // .roll-item{
  64. // width: 100%;
  65. // font-size: 26rpx;
  66. // font-family: PingFang SC, PingFang SC-Regular;
  67. // font-weight: 400;
  68. // text-align: left;
  69. // color: #1a1a1a;
  70. // letter-spacing: 0.52px;
  71. // }
  72. ::v-deep .u-notice-bar {
  73. // width: 100%;
  74. padding-left: 0;
  75. padding-right: 0;
  76. .u-notice__swiper__item__text {
  77. font-size: 26rpx !important;
  78. font-family: PingFang SC, PingFang SC-Regular !important;
  79. font-weight: 400 !important;
  80. color: #1a1a1a !important;
  81. letter-spacing: 0.52px !important;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. word-wrap: break-word;
  86. }
  87. }
  88. }
  89. }
  90. </style>