<template>
	<view class="details">
		<z-paging ref="paging" v-model="list" @query="queryList">
		<div class="info">
			<div class="info-item">
				<div class="label">客户<div class="tag">私人医院</div>
				</div>
				<div style="color:#21BBF3">待回款</div>
			</div>

			<div class="info-item">
				<div class="label">北京市好大夫诊所</div>
				<div style="color:#999">
					<u-icon name="map" color="#999999" size="16" style="margin-right: 12rpx;"></u-icon>北京市朝阳区
				</div>
			</div>

			<div class="info-item">
				<div class="label">张三 18273849905</div>
			</div>
		</div>


		<div class="info">
			<div class="info-item">
				<div class="label">订单编号
				</div>
				<div>20221220/0001</div>
			</div>
			<div class="info-item">
				<div class="label">期数
				</div>
				<div>5期（剩余0期） <u-icon name="arrow-right" color="#999999" size="14"></u-icon>
				</div>
			</div>
			<div class="info-item" v-for="(item,index) in 5" :key="index">
				<div class="label">回款日期（第一期）<div class="tag">已回款</div>
				</div>
				<div>2022-12-20 <u-icon name="arrow-right" color="#999999" size="14"></u-icon>
				</div>
			</div>
			<div class="info-item">
				<div class="label">备注
				</div>
				<!-- <div>备注的文本文案 <u-icon name="arrow-right" color="#999999" size="14"></u-icon>
				</div> -->
				<div class="input">
					<u-input placeholder="备注的文本文案">
						<div class="prefix" slot="prefix">
							<image :src="$util.img(`/upload/weapp/user/you.png`)" mode=""></image>
						</div>
					</u-input>
				</div>
			</div>
		</div>



		<div class="title">回款记录</div>
		<div class="info">
			<div class="info-item">
				<div class="label" style="color:#222">支付方式：<span style="color:#585858">微信支付</span>
				</div>
				<div style="font-weight: bold;">已确认</div>
			</div>
			<div class="info-item">
				<div class="label">2022-09-12 18:23:21
				</div>
				<div style="font-weight: bold;">¥500.00</div>
			</div>


			<div class="detail">
				<div @click="showDetail=!showDetail">收起详情 <u-icon :name="showDetail?'arrow-up':'arrow-down'"
						color="#999999" size="14" style="margin-left: 10rpx;"></u-icon>
				</div>
				<div class="revoke">撤销收款</div>
			</div>


			<div class="detail-data" v-if="showDetail">
				<u-line color="#F2F2F2" style="margin-bottom: 28rpx;"></u-line>
				<div>
					<div class="label">订单编号</div>
					<div>12441231233</div>
				</div>
				<div>
					<div class="label">支付金额</div>
					<div>¥500.00</div>
				</div>
				<div>
					<div class="label">收款账号</div>
					<div>--</div>
				</div>
				<div>
					<div class="label">帐号名称</div>
					<div>--</div>
				</div>
				<div>
					<div class="label">开户银行</div>
					<div>--</div>
				</div>
				<div>
					<div class="label">提交支付时间</div>
					<div>2022-09-12 18:12:21</div>
				</div>
				<div>
					<div class="label">审核确认时间</div>
					<div>2022-09-12 18:12:21</div>
				</div>
			</div>
		</div>

		<template #bottom>
			<div class="bottom">
				<div class="btn1">完成回款</div>
				<div class="btn1">编辑</div>
				<div class="btn2">保存</div>
			</div>
		</template>
		
		</z-paging>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showDetail: true,
				list:[1]
			};
		},
		methods:{
			queryList(pageNo, pageSize) {
				// this.$refs.paging.complete(this.list);
			},
		}
	}
</script>

<style lang="scss" scoped>
	.input {
		
		.prefix {
			position: absolute;
			image {
				width: 36rpx;
				height: 36rpx;
				position: relative !important;
				top: -16rpx;
				right: -320rpx;
				margin-right: 5rpx;
			}
		}
		::v-deep {
			.u-input--radius{
				border-radius: 16rpx;	
				border: 2rpx solid #E8E8E8;
			}
		}
		
	}
	.details {
		padding: 32rpx 32rpx 130rpx;

		.bottom {
			background-color: #fff;
			padding: 12rpx 32rpx 32rpx;
			box-sizing: border-box;
			position: fixed;
			bottom: 0;
			width: 100%;
			left: 0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			z-index: 10;
			.btn1 {
				width: 192rpx;
				height: 72rpx;
				border-radius: 40rpx;
				border: 2rpx solid #E8E8E8;
				font-size: 28rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: bold;
				color: #333333;
				line-height: 72rpx;
				text-align: center;
			}

			.btn2 {
				width: 192rpx;
				height: 72rpx;
				border-radius: 40rpx;
				font-size: 28rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: bold;
				color: #fff;
				line-height: 72rpx;
				text-align: center;

				background: #21BBF3;
			}
		}

		.detail-data {
			margin-top: 28rpx;

			>div {
				display: flex;
				align-items: center;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #222222;
				line-height: 60rpx;

				.label {

					color: #999999;
					width: 170rpx;
					margin-right: 60rpx;
				}
			}
		}

		.detail {
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: #999999;

			>div {
				display: flex;
				align-items: center;
			}

			.revoke {
				font-size: 24rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #222222;
				padding: 0 20rpx;
				height: 48rpx;
				line-height: 48rpx;
				background: #FFFFFF;
				border-radius: 28rpx;
				border: 2rpx solid #E8E8E8;

			}
		}

		.title {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: bold;
			color: #333333;
			margin-bottom: 24rpx;
		}

		.info {
			padding: 32rpx;
			background-color: #fff;
			border-radius: 24rpx;
			margin-bottom: 32rpx;

			.info-item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				line-height: 60rpx;
				color: #333333;

				>div {
					display: flex;
					align-items: center;
				}

				.label {
					color: #333333;

					.tag {
						font-size: 20rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #FF7D02;
						padding: 0 16rpx;
						text-align: center;
						line-height: 40rpx;
						height: 40rpx;
						background: #FFF0E2;
						border-radius: 4rpx;
						margin-left: 20rpx;
					}
				}
			}
		}
	}
</style>
