<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 >活动通知</view>
				<view >
					<text>你关注的活动已经开始了</text>
					<image src="/static/icon/right.png" ></image>
				</view>
				<view >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 {};
		},
		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;
		}
	}

	// 消息列表
	.msgListBox {
		padding: 0 30rpx;
		margin-top: 24rpx;
		background: $bgColor;
		box-shadow: 0rpx 4rpx 24rpx -10rpx rgba(101, 95, 90, 0.3);
		border-radius: 12rpx;

		.childBox {
			width: 690rpx;
			height: 202rpx;
			border-bottom: 1rpx solid #F0F0F0;
			padding-top: 40rpx;
			box-sizing: border-box;
			view:nth-child(n+0) {
				font-size: 32rpx;
				font-family: PingFang-SC-Bold, PingFang-SC;
				font-weight: bold;
				color: #333333;
				margin-bottom: 24rpx;
			}

			view:nth-child(n+1) {
				margin-bottom: 12rpx;
				position: relative;
				text{
					font-size: 28rpx;
					font-family: PingFang-SC-Medium, PingFang-SC;
					font-weight: 500;
					color: #333333;
				}
				image{
					width:12rpx ;
					height:20rpx;
					position: absolute;
					top:12rpx;
					right:24rpx;
				}
			}

			view:nth-child(n+2) {
				font-size: 26rpx;
				font-family: PingFang-SC-Medium, PingFang-SC;
				font-weight: 500;
				color: #999999;
			}
		}

	}
</style>
