<template>
	<view class="wrapper">
		<view class="list">
			<view class="item">
				<view class="head">
					<view class="name">
						<image :src="`${$imgUrl}common/icon-business.png`" class="icon"></image>
						<text class="title">交易提醒</text>
					</view>
					<view class="status text-grey">今日20:00</view>
				</view>
				<view class="detail">
					<view class="orders">
						<view class="text-tip">您的爱车于2023-01-22日20:00分产生一笔通行交易</view>
						<view class="order-text">
							<text class="type">交易前卡内金额：</text>
							<text class="value">1200.08</text>
						</view>
						<view class="order-text">
							<text class="type">交易金额：</text>
							<text class="value">1100</text>
						</view>
						<view class="order-text">
							<text class="type">交易后卡面金额：</text>
							<text class="value">0</text>
						</view>
						<view class="order-text">
							<text class="type">交易后卡账金额：</text>
							<text class="value">-100</text>
						</view>
					</view>
				</view>
			</view>

			<view class="item">
				<view class="head">
					<view class="name">
						<image :src="`${$imgUrl}common/icon-arrears.png`" class="icon"></image>
						<text class="title">欠费补缴</text>
					</view>
					<view class="status text-grey">今日20:30</view>
				</view>
				<view class="detail">
					<view class="orders">
						<view class="text-tip">您的爱车于2023-01-22日20:00分产生一笔欠费待补缴 流水，请及时处理</view>
					</view>
				</view>
				<view class="btns">
					<view class="btn btn-primary">去处理</view>
				</view>
			</view>
			
			<view class="item">
				<view class="head">
					<view class="name">
						<image :src="`${$imgUrl}common/icon-notice.png`" class="icon"></image>
						<text class="title">业务提醒</text>
					</view>
					<view class="status text-grey">今日20:30</view>
				</view>
				<view class="detail">
					<view class="orders">
						<view class="text-tip">您申请的圈存退费已有新进度，请前去查看</view>
					</view>
				</view>
				<view class="btns">
					<view class="btn btn-primary">去查看</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">

</script>

<style>
	page {
		background: #EEF7F7;
	}

	.list {
		padding: 0 30rpx;
		display: flex;
		flex-direction: column;
		margin-top: 30rpx;
	}

	.list .item {
		background: #ffffff;
		box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
		border-radius: 20rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		margin-bottom: 30rpx;
	}

	.list .item .head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx 28rpx;
		border-bottom: 1px solid #dcdcdc;
	}

	.list .item .head .icon {
		width: 48rpx;
		height: 48rpx;
	}

	.list .item .head .name {
		display: flex;
		align-items: center;
	}

	.list .order-text {
		padding-top: 20rpx;
	}

	.list .text-green {
		font-size: 26rpx;
		color: #00b38b;
	}

	.list .text-orange {
		font-size: 26rpx;
		color: #ff8000;
	}

	.list .text-grey {
		font-size: 26rpx;
		color: #999999;
	}

	.list .text-tip {
		font-size: 26rpx;
		color: #333333;
		line-height: 36rpx;
	}

	.list .title {
		font-size: 30rpx;
		color: #333;
	}

	.list .detail {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx 32rpx;
	}

	.list .detail .type {
		font-size: 26rpx;
		color: #999;
	}

	.list .detail .value {
		font-size: 26rpx;
		color: #333;
	}

	.list .btns {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		border-top: 1px solid #dcdcdc;
		margin: 0 30rpx;
		padding: 20rpx 0;
	}

	.list .btn {
		height: 60rpx;
		line-height: 60rpx;
		border-radius: 30rpx;
		padding: 0 24rpx;
		font-size: 26rpx;
		box-sizing: border-box;
		margin-right: 20rpx;
	}

	.list .btns .btn:last-child {
		margin: 0;
	}

	.list .btn-primary {
		border: 1px solid #00b38b;
		color: #00b38b;
	}

	.list .btn-normal {
		border: 1px solid #dcdcdc;
		color: #333;
	}
</style>
