<template>
	<view class="wallet">
		<view class="a">
			<view class="fl">总资产(元)<text>30000.00</text></view>
			<view class="fr" @click="openPage()">提现</view>
		</view>
		<view class="b">
			<view class="title">收入明细</view>
			<view class="list">
				<view class="item" v-for="i in 10" :key="i">
					<view class="hd">用户查看事件<text>+5.00</text></view>
					<view class="bd">
						<view class="dd">
							<view class="l">事件标题</view>
							<view class="r">王某某欠钱不还，已起诉</view>
						</view>
						<view class="dd">
							<view class="l">支付时间</view>
							<view class="r">2024-08-02 16:22:20</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			openPage() {
				uni.navigateTo({
					url: "/pages/user/withdrawal"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
.wallet{
	padding: 0 25rpx 25rpx;
	overflow: hidden;
	.b{
		.title{
			padding: 25rpx 0;
			font-weight: 500;
			font-size: 32rpx;
			color: #222222;
		}
		.item{
			width: 100%;
			height: 210rpx;
			background: #FFFFFF;
			box-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);
			border-radius: 20rpx;
			padding: 30rpx;
			box-sizing: border-box;
			margin-top: 20rpx;
			&:first-child{
				margin-top: 0;
			}
			.hd{
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-weight: 500;
				font-size: 28rpx;
				color: #333333;
				text{
					font-weight: 500;
					font-size: 28rpx;
					color: #D80C0C;
				}
			}
			.bd{
				margin-top: 10rpx;
				overflow: hidden;
				.dd{
					padding: 13rpx 0;
					display: flex;
					align-items: center;
					.l{
						width: 160rpx;
						font-weight: 500;
						font-size: 28rpx;
						color: #999999;
					}
					.r{
						flex: 1;
						font-weight: 500;
						font-size: 28rpx;
						color: #333333;
					}
				}
			}
		}
	}
	.a{
		width: 100%;
		height: 180rpx;
		background: #00C6A9;
		border-radius: 20rpx;
		padding: 40rpx 50rpx;
		box-sizing: border-box;
		margin-top: 20rpx;
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		.fl{
			font-weight: 400;
			font-size: 24rpx;
			color: #FFFFFF;
			text-align: left;
			line-height: 50rpx;
			text{
				display: block;
				font-weight: 400;
				font-size: 48rpx;
				color: #FFFFFF;
				margin-top: 10rpx;
			}
		}
		.fr{
			width: 160rpx;
			line-height: 50rpx;
			text-align: center;
			background: #FFFFFF;
			border-radius: 50px;
			border: 1px solid #FFFFFF;
			font-weight: 400;
			font-size: 24rpx;
			color: #00C6A9;
			text-align: center;
		}
	}
}
</style>
