<template>
	<!-- 20221108 -->
	<view class="page">
		<!-- 页面内容 -->
		<view class="pageMain">
			<ty-list-list :status="load_status">
				<view class="padding-30 bg-ff border-bottom-e6" v-for="(item, index) in list" :key="index">
					<view class="flex align-center justify-between">
						<view class="flex flex-direction">
							<view class="text-28 text-33">
								{{item.status_text}}
								<!-- -{{item.withdraw_type_text}} -->
							</view>
							<view class="margin-top-10 text-24 text-98">{{item.show_create_time}}</view>
						</view>
						<view class="text-28 text-33">{{item.money}}</view>
					</view>
				</view>
			</ty-list-list>
		</view>

		<!-- 页面浮层 -->
		<view class="page-layer">

		</view>
	</view>
</template>

<script>
	import distribution from "./api/distribution.js"
	export default {
		data() {
			return {
				// 列表加载状态
				load_status: '',
				// 列表
				list: []
			}
		},

		onReady() {
			this.loadList(1)
		},

		onReachBottom() {
			this.loadList(0)
		},

		methods: {
			/**
			 * 获取提现记录列表
			 * @param {int} isFirstPage 是否第一页 0--不是 1--是
			 * @date 2022-11-08
			 */
			loadList(isFirstPage) {
				distribution.listWithdraw(this, isFirstPage)
			}
		}
	}
</script>

<style scoped>
	.pageMain {
		width: 100vw;
		min-height: 100vh;
		background: #fff;
		padding-bottom: calc(30rpx + env(safe-area-inset-bottom));
		box-sizing: border-box;
	}
</style>
