<template>
	<view class="container">
		<view class="page">
			<view class="property">
				<view class="list">
					<view class="item" @click="toDetail()">
						<view class="title gray">
							<view class="name">退款金额：<view class="cost">¥100.00</view>
							</view>
							<view class="tag">退款成功</view>
						</view>
						<view class="content">
							<view class="text">
								<view class="name">退款单号</view>
								<view class="detail">61312313213</view>
							</view>
							<view class="text">
								<view class="name">退款时间</view>
								<view class="detail">2023年3月1日 12:12</view>
							</view>
						</view>
					</view>
					<view class="item" @click="toDetail()">
						<view class="title yellow">
							<view class="name">退款金额：<view class="cost">¥100.00</view>
							</view>
							<view class="tag">待审核</view>
						</view>
						<view class="content">
							<view class="text">
								<view class="name">退款单号</view>
								<view class="detail">61312313213</view>
							</view>
							<view class="text">
								<view class="name">退款时间</view>
								<view class="detail">2023年3月1日 12:12</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			toDetail() {
				// uni.navigateTo({
				// 	url: '/pages/payCostDetails/index',
				// });
			}
		},
		onLoad() {

		},
		onShow() {

		}
	}
</script>
<style>
	page {
		background-color: #F8F6F9;
	}
</style>
<style lang="scss" scoped>
	.page {
		padding: 30rpx 30rpx 90rpx;
		background-color: #F8F6F9;
	}

	.property {

		.list {
			.item {
				background-color: #ffffff;
				border-radius: 16rpx;
				padding: 30rpx;
				margin-bottom: 30rpx;

				.title {
					height: 40rpx;
					line-height: 40rpx;
					margin-bottom: 30rpx;
					display: flex;
					justify-content: space-between;

					.name {
						font-size: 28rpx;
						color: #9D9CA6;
						display: flex;

						.cost {
							font-size: 36rpx;
							color: #6A59F2;
							font-weight: bold;
						}

					}

					.tag {
						height: 36rpx;
						line-height: 36rpx;
						font-size: 22rpx;
						padding: 4rpx 20rpx;
						border-radius: 36rpx;
					}


				}

				.gray {
					.tag {
						color: #B6B6BA;
						border: 1px solid #B6B6BA;
						background-color: #F8F8F8;
					}
				}

				.yellow {

					.tag {
						color: #F1BE51;
						border: 1px solid #F1BE51;
						background-color: #FFFCF6;
					}
				}

				.content {
					border-top: 1px solid #F0F0F2;
					padding-top: 20rpx;

					.text {
						display: flex;
						height: 60rpx;
						line-height: 60rpx;

						.name {
							width: 180rpx;
							font-size: 28rpx;
							color: #9D9CA6;
						}

						.detail {
							font-size: 28rpx;
							color: #373737;
						}
					}
				}

			}
		}
	}
</style>