<template>
	<view class="container">
		<!-- 订单列表 -->
		<view v-for="(item, index) in streamlist" :key="index" class="commission flex">
			<view>
				<view class="commission_name">{{ item.message }}</view>
				<view class="commission_time">{{ item.add_time }}</view>
			</view>
			<view class="commission_number">+{{ item.num }}</view>
		</view>
		<!-- 空白页 -->
		<empty v-if="streamlist.length === 0"></empty>
		
		<uni-load-more :status="loadingType"></uni-load-more>
	</view>
</template>
<script>
import { spread_commission } from '@/api/wallet.js';
import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
import empty from '@/components/empty';
export default {
	components: {
		empty,
		uniLoadMore
	},
	data() {
		return {
			id: '',
			tabCurrentIndex: 0,
			page: 1, //当前页数
			limit: 10, //每次信息条数
			streamlist: [
				{
					message:"一级订单：20195465874545",
					add_time:"2019-06-09 13:00:00",
					num:"5.50"
				},
				{
					message:"一级订单：20195465874545",
					add_time:"2019-06-09 13:00:00",
					num:"5.50"
				},
				{
					message:"一级订单：20195465874545",
					add_time:"2019-06-09 13:00:00",
					num:"5.50"
				}
			],
			loadingType: 'more', //加载更多状态
			page: 1, //当前页数
			limit: 10, //每次信息条数
		};
	},
	// 下拉加载
	onReachBottom() {
		this.loadData();
	},
	onLoad() {
		this.loadData();
	},
	methods: {
		
	}
}
</script>

<style lang="scss">
page {
	width: 100%;
	height: 100%;
	.container {
		height: 100%;
	}
}
.commission {
	background-color: #ffffff;
	border-bottom: 2rpx solid #f0f0f0;
	padding: 25rpx 25rpx;
}
.commission_name {
	font-size: 30rpx;
	color: #333333;
}
.commission_time {
	color: #999999;
	font-size: 26rpx;
	padding-top: 10rpx;
}
.commission_number {
	color: #FA2740;
	font-weight: bold;
	font-size: 30rpx;
}
</style>
