<template>
	<view>
		<view class="notice">
			<view class="notice_title">
				<view class="notice_title_icon"></view>
				<view class="notice_title_text">
					<text>{{notice.title}}</text>
				</view>
			</view>
			<view class="notice_content">
				<swiper class="scroll" autoplay vertical circular interval="3000">
					<!-- <swiper-item>
						<view class="swiper-item">
							<text v-html="notice.message"></text>
						</view>
					</swiper-item> -->
					<swiper-item v-for="item in notice.message" :key="item.id">
						<view class="swiper-item">
							<text v-html="item"></text>
						</view>
					</swiper-item>
				</swiper>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:[
			"notice"
		],
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.notice{
		
		margin-top: 22rpx;
		box-sizing: border-box;
		padding-left: 44rpx;
		.notice_title{
			height: 50rpx;
			display: flex;
			
			.notice_title_icon{
				width: 52rpx;
				height: 52rpx;
				background-image: url(icon/notice.png);
				background-size: cover;
				background-repeat: no-repeat;
				margin-right: 20rpx;
			}
			.notice_title_text{
				height: 52rpx;
				font-size: 38rpx;
				font-family:$font-basic;
				font-weight: 500;
				color: #FFFFFF;
				line-height: 52rpx;

			}
		}
		.notice_content{
			margin-top: 12rpx;
			width: 666rpx;
			height: 114rpx;
			font-size: 29rpx;
			font-family: $font-basic;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 50rpx;
			.scroll{
				height: 114rpx;
			}
		}
	}
</style>
