<template>
	<view >
		<car-common  mytitle="消息" :noback="false" ref="common"></car-common>
 		  <scroll-view  v-show="recordList.length" :style="'height: '+clientHeight+'px;'"   scroll-y="true"     @scrolltolower="lower">
			  <template  v-for="item in recordList">
				  

			  <view class="new-time">
			  	{{item.sendTime}}
			  </view>
			  <view class="new-item" @click="gotoInfo(item)">
			  	<view class="new-head">
			  		<h4>补缴车票通知</h4>
			  		<p>已经过您的预定下车站点，请重新选择下车站点并补缴车票。</p>
			  	</view>
			  	<view class="new-main">
			  		<view class="new-main-row">
			  			<p>站点：</p><span>{{item.stationName}}</span>
			  		</view>
			  		<view class="new-main-row">
			  			<p>线路：</p><span>{{item.routeName}}</span>
			  		</view>
			  		<view class="new-main-row">
			  			<p>状态：</p><span>{{item.statusName}}</span>
			  		</view>
			  	</view>
			  	<view class="new-foot" >
			  		<p style="color: red;">点击补票</p>
			  		<u-icon name="arrow-right" color="#999" size="28"></u-icon>
			  	</view>
			  </view>
			  
			    </template>
		  </scroll-view>
		 <view  v-show="isLoading&&recordList.length==0" style="text-align:center;margin-top: 80px;" >
		 		<img src="static/img/blankpage.png" style="width: 50%;" alt="" >
		 		<view>暂无信息</view>
		 	</view>
		
	</view>
</template>

<script>
	import api from './index.js'
	export default  api;
</script>
<style>
	page{
		background-color: #f7f7f7;
	}
</style>
<style scoped lang="scss">
	.new-time{
		text-align: center;
		margin-top:10px;
		color:#999;
	}
	.new-item{
		 box-shadow:3px 3px 3px rgba(0,0,0,0.1);
		background-color: #fff;
		margin: 10px;
		border-radius: 10px;
		border: 1px solid #eee;
		.new-head{
			padding: 10px;
			h4{
				font-size: 16px;
			}
			p{
				color:#999;
				margin-top: 3px;
			}
		}
		.new-main{
			padding: 10px;
			.new-main-row{
				display: flex;
				align-items: center;
				margin-bottom: 10px;
				p{
					width: 60px;
					color:#999;
				}
			}
		}
		.new-foot{
			padding: 10px;
			border-top: 1px solid #eee;
			display: flex;
			justify-content: space-between;
			align-items: center;
			
		}
	}
</style>
