<template>
	<view class="" style="text-align: center;">		
	    <view v-for="(item,index) in list" style="border-bottom: solid 1px gainsboro;padding:30rpx 10rpx;color: #fff;font-size:28rpx;line-height: 150%;">
			<view style="width: 100%;display: table;">
				<view style="float: left;">
					<view>
						<text  style="color: #fff;">+{{item.price}}</text>						
					</view>
				</view>
				<view style="float: right;">
					<view>{{item.time}}</view>
				</view>
			</view>			
			<view style="display: table;width: 100%;text-align: left;">{{item.content}}</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				constants: {},
				userinfo: null,
				data:{
					_token:"",
					uid:0,
				},
				num:"",
				mobile:"",
				jymm:"",
				list:[],
				page:1,
				status: 'more',
				contentText: {
					contentdown: '上拉加载更多',
					contentrefresh: '加载中',
					contentnomore: '到底了'
				}
			};
		},		
		onShow() {
			var user = this.$api.getUserinfo();			
			if (user) {
				this.userinfo = user;
				this.data._token=user._token;
				this.data.uid=user.id;
				this.MhMyInteger();
			} else {
				this.userinfo = null;
			}
		},
		methods: {
			zhuanzhang(){
				//手动预约的  要求输入数量
				uni.navigateTo({
					url: 'zrlp'
				});
			},			
			MhMyInteger(){
				var data = this.data;
				//data.uid=1000040
				this.$api
					.MhPostModel(data, 'user/symx')
					.then(res => {
						var shuju = res.data.data.data;
						this.list = this.list.concat(shuju)
						this.status = 'more';
						if (shuju.length == 0) {
							this.status = 'nomore';
						}	
					})
					.catch(err => {
						// console.log('request fail', JSON.stringify(err));
					});
			},
		}
	}
</script>
<style>
	page{padding: 15rpx;background:   #98a737;background-attachment: fixed !important;
	    background-repeat: no-repeat !important;}
	.btn1{background: #f2a50b; width:150rpx;text-align: center;color: #fff;font-size: 30rpx;line-height: 200%;border-radius: 10rpx;}
</style>
