<template>
	<!-- 个人用户信息 -->
	<view class="wrapper">
		<!-- 背景颜色充满屏 -->
		<view class="bg-color"></view>
		<view class="card-img-wrap">
			<view class="border-line">
				<image class="card-img" :src="`${$imgUrl}search/card3.png`"></image>
			</view>
			<view class="border-line space">
				<image class="card-img" :src="`${$imgUrl}search/card4.png`"></image>
			</view>	
			
		</view>
		<view class="detail-box">
			<view class="detail-header">
				<image class="d-img" :src="`${$imgUrl}search/userInfo.png`"></image>
				<text class="detail-name">用户信息</text>
			</view>
			<view class="detail-content">
				<view class="d-row">
					<text class="d-label">用户姓名:</text>
					<text class="d-value">李某</text>
				</view>
				<view class="d-row">
					<text class="d-label">用户性别:</text>
					<text class="d-value">男</text>
				</view>
				<view class="d-row">
					<text class="d-label">身份证号:</text>
					<text class="d-value">440305200101129001</text>
				</view>
				<view class="d-row">
					<text class="d-label">详细地址:</text>
					<text class="d-value">昆明市XX区XX路001号</text>
				</view>
				<view class="d-row">
					<text class="d-label">联系方式:</text>
					<text class="d-value">17391273128</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import {
		reactive
	} from "vue";
	const state = reactive({
		// 1待支付 2待发货 3待收货 4待激活 5 订单已结束 6订单已取消 7订单已完成 8订单售后
		orderInfo: {
			status: 5,
			status1: 1, // 售后信息
			type: "换货",
			statusName: "待收货"
		}
	})
</script>
<style lang="scss" scoped>
	.bg-color {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #F3F3F3;
		z-index: -1;
	}
	.card-img-wrap {
		display: flex;
		margin: 32rpx 30rpx 0 30rpx;
		.space {
			margin-left: 32rpx;
		}
		.border-line {
			flex:1;
			border: 1px dashed #DCDCDC;
			background: #FFFFFF;
		}
		.card-img {
			height: 220rpx;
			width: 100%;
		}
	}
	.detail-box {
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
		border-radius: 20rpx;
		margin: 30rpx;
		.detail-header {
			display: flex;
			border-bottom: 1rpx solid #DCDCDC;
			padding: 30rpx;
			align-items: center;

			.d-img {
				width: 48rpx;
				height: 48rpx;
			}

			.detail-name {
				font-size: 30rpx;
				font-weight: 400;
				color: #333333;
				margin-left: 12rpx;
			}
		}

		.detail-content {
			padding: 28rpx 29rpx 10rpx 29rpx;

			.post-sale {
				border-top: 1rpx solid #DCDCDC;
				padding-top: 38rpx
			}

			.d-row {
				display: flex;
				margin-bottom: 32rpx;

				.d-label {
					font-size: 26rpx;
					//width: 178rpx;
					color: #999999;
					text-align: right;
				}

				.d-value {
					font-size: 26rpx;
					color: #333333;
					flex: 1;
					overflow: hidden;
					margin-left: 25rpx;
					word-wrap : normal;
					word-wrap: break-word;
				}
			}
		}
	}
</style>
