<template>

	<view class="msg">
		<!-- 搜索框 -->
		<view class="search">
			<u-input placeholder="搜索" border='none'>
				<template slot="suffix" style='margin-right:40rpx;'>
					<u-image :showLoading="true" :showError='true' src="/static/icon/search.png" width="40rpx"
						height="32rpx"></u-image>
				</template>
			</u-input>
		</view>

		<!-- 消息列表 -->
		<view class="msgListBox">
			<view class="childBox" v-for="item in 4">
				<view class="childBox-top" >活动通知</view>
				<view  class="childBox-content" >
					<text>你关注的活动已经开始了</text>
					<image style="width: 12rpx;height: 20rpx;" src="/static/icon/right.png" ></image>
				</view>
				<view class="childBox-bom">028-329230</view>
			</view>
		</view>
		
		<!-- 底部导航栏 -->
		<view style="height: 140rpx; width: 100%;"></view>
		<tab-bar checked="msg"></tab-bar>

	</view>
</template>

<script>
	import TabBar from '../../components/TabBar/tabbar.vue'
	export default {
		components: {
			TabBar
		},
		data() {
			return {};
		},
		onLoad(){
		},
		methods: {

		},
	}
</script>

<style lang="scss" scoped>
	$pageColor:#F9F9F9;
	$bgColor:#FFFFFF;

	// flex布局居中对齐
	@mixin flexlayout {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.msg {
		height: 100%;
		background-color: $pageColor;
	}

	// 搜索
	.search {
		padding: 0 30rpx;
		height: 124rpx;
		background-color: $bgColor;
		box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.04);
		@include flexlayout;

		::v-deep .u-input {
			width: 690rpx !important;
			height: 68rpx !important;
			background: #F1F1F1;
			border-radius: 74rpx;
		}

		::v-deep .u-input__content__field-wrapper {
			padding-left: 36rpx;
		}
		::v-deep .u-input__content__field-wrapper__field{
			color:#999999 !important;
			font-size: 28rpx !important;
		}
	}

	// 消息列表
	.msgListBox {
		padding: 48rpx 30rpx;
		padding-top: 0;
		margin-top: 24rpx;
		background: $bgColor;
		box-shadow: 0rpx 4rpx 24rpx -10rpx rgba(101, 95, 90, 0.3);
		border-radius: 12rpx;
		.childBox {
			padding-top: 40rpx;
			padding-bottom: 40rpx;
			border-bottom:2rpx solid rgba(240, 240, 240, .7) ;
			&:last-child{
				padding-bottom: 0;
				border-bottom: none;
			}
			&:first-child{
				padding-top: 48rpx;
			}
			.childBox-top{
				font-weight: bold;
				color: #333333;
				font-size: 32rpx;
			}
			.childBox-content{
				padding-right: 24rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #333333;
				font-size: 28rpx;
				margin: 24rpx 0 12rpx;
			}
			.childBox-bom{
				color: #999999;
				font-size: 26rpx;

			}
			
		}

	}
</style>
