<template>
	<view>
		<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="我的盲豆"></u-navbar>
		<view class="bean">
			<view class="bean-balance">500</view>
			<view class="bean-list">
				<view class="flex bean-list-item">
					<view class="flex left">
						<view class="title">商品兑换</view>
						<view class="date">2021-11-29 14:10:22</view>
					</view>
					<view class="flex right">
						<view class="amt">-200</view>
						<view class="balance">余额：234</view>
					</view>
				</view>
				<view class="flex bean-list-item">
					<view class="flex left">
						<view class="title">商品兑换</view>
						<view class="date">2021-11-29 14:10:22</view>
					</view>
					<view class="flex right">
						<view class="amt">-200</view>
						<view class="balance">余额：234</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.bean {
		margin: 20rpx 10rpx;

		&-balance {
			height: 230rpx;
			line-height: 230rpx;
			border-radius: 10rpx;
			background-image: linear-gradient(to right, #eea2a2 0%, #bbc1bf 19%, #57c6e1 42%, #b49fda 79%, #7ac5d8 100%);
			font-size: 50rpx;
			padding-left: 180rpx;
			font-weight: bold;
			margin-bottom: 20rpx;
		}

		&-list {
			background-color: #FFFFFF;
			padding: 0 40rpx;

			&-item {
				justify-content: space-between;
				padding: 24rpx 0;
				border-bottom: 1px solid rgba(236, 236, 236, 100);
				
				.left{
					flex-direction: column;
					justify-content: space-between;
					align-items: flex-start;
				}
				
				.right{
					flex-direction: column;
					justify-content: space-between;
					align-items: flex-end;
				}
				
				.title{
					font-size: 32rpx;
					font-weight: bold;
					margin-bottom: 32rpx;
				}
				
				.amt{
					margin-bottom: 32rpx;
				}
				
				.balance{
					color: #606060;
				}
			}

			&-item:last-child {
				border-bottom: none;
			}
		}
	}
</style>
