<template>
	<view class="roll-box">
		<image class="roll-icon" src="../../static/logo.png" mode="aspectFit"></image>
		<view class="roll-list hide_1">
			<u-notice-bar icon='' bgColor="" duration="3000" direction="column" :text="rollMsg.map(el => {
				return el.title || ''
			})">
			</u-notice-bar>
			<!-- <view class="roll-item hide_1">
				币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入
			</view> -->
		</view>

		<image class="roll-more" src="../../static/logo.png" mode="aspectFit"></image>
	</view>
</template>

<script>
	export default {
		name: "rollMessage",
		props: {
			rollMsg: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {

				list: [
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入'
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
	.roll-box {
		width: 100%;
		height: 76rpx;
		background-color: $modules-box-bg;
		padding: 0 $pages-padding;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.roll-icon,
		.roll-more {
			width: 30rpx;
			height: 30rpx;
			flex-shrink: 0;

		}

		.roll-list {
			width: calc(100% - 60rpx);
			height: 100%;
			flex-shrink: 0;
			padding: 0 20rpx;
			display: flex;
			align-items: center;
			// .roll-item{
			// 	width: 100%; 

			// 	font-size: 26rpx;
			// 	font-family: PingFang SC, PingFang SC-Regular;
			// 	font-weight: 400;
			// 	text-align: left;
			// 	color: #1a1a1a; 
			// 	letter-spacing: 0.52px;
			// }
			::v-deep .u-notice-bar {
				// width: 100%;
				padding-left: 0;
				padding-right: 0;

				.u-notice__swiper__item__text {
					font-size: 26rpx !important;
					font-family: PingFang SC, PingFang SC-Regular !important;
					font-weight: 400 !important;

					color: #1a1a1a !important;
					letter-spacing: 0.52px !important;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					word-wrap: break-word;
				}
			}
		}
	}
</style>