<template>
	<view class="detail">
		<view class="title">
			<view class="title-left">
				<image class="header-img"
					src="https://tse4-mm.cn.bing.net/th/id/OIP-C.uMf5AX3a6yYpIhpEkyDxiQAAAA?rs=1&pid=ImgDetMain"
					mode=""></image>
				<text>张三</text>
				<image class="right-325" src="../../../static/mine/325.png" mode=""></image>
			</view>
			<view class="title-right">
				<u-icon name="chat" color="#f83224" size="28"></u-icon>
				<text>联系团长</text>
			</view>
		</view>
		<view class="commodity-information">
			<view class="commodity-1">
				<image class="commodity-img"
					src="https://img11.360buyimg.com/jdcms/s460x460_jfs/t1/156939/24/43697/126104/6619de23F69802006/8432635baed61875.jpg.webp"
					mode=""></image>
				<view class="">
					<view class="commodity-2">
						<view class="commodity-title">
							OATLY 噢麦力 醇香燕麦…
						</view>
					</view>

					<view class="commodity-3">
						<view class="specifications">
							【醇香】250ml*3
						</view>
						<view style="font-size: 24rpx;">
							x1
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="information">
			<text class="_label">订单编号</text>
			<view style="color: #222;">
				<text style="color: rgba(34, 34, 34, .6);">29819301003001313456</text>
				<text @click="cope('111')" style="color: #f83224;">{{'&nbsp;' + "|" + "&nbsp;" + "复制"}}</text>

			</view>
		</view>
		<view class="information">
			<text class="_label">退款原因</text>
			<view class="_title-right">
				商品问题
			</view>
		</view>
		<view class="information">
			<text class="_label">退款金额</text>
			<view class="_title-right">
				¥134.80
			</view>
		</view>
		<view class="information">
			<text class="_label">申请件数</text>
			<view class="_title-right">1
			</view>
		</view>
		<view class="information">
			<text class="_label">申请时间</text>
			<view class="_title-right">2023-12-02 18:37
			</view>
		</view>

	</view>
</template>

<script>
	import textRight from '../../accountSecurity/component/textRight.vue'
	export default {
		components: {
			textRight
		},
		props: {
			status: {
				typeof: Number,
				default: 0
			}
		},
		data() {
			return {

			}
		},
		methods: {
			application() {
				uni.navigateTo({
					url: "/pageC/applicationRefund/applicationRefund"
				})
			},
			
			//复制
			cope(e) {
				uni.setClipboardData({
					data: e,
					success() {
						uni.showToast({
							title: "复制成功",
							icon: "none"
						})
					}
				})
			},
		},

	}
</script>

<style scoped lang="scss">
	.detail {
		padding: 28rpx 20rpx;
		background-color: #fff;
		border-radius: 16rpx;
		margin-top: 28rpx;

		.title {
			display: flex;
			justify-content: space-between;
			border-bottom: 2rpx solid rgba(151, 151, 151, .1);
			padding-bottom: 20rpx;

			.title-left {
				display: flex;
				font-size: 32rpx;
				align-items: center;

				.header-img {
					width: 36rpx;
					height: 36rpx;
					border-radius: 50%;
					margin-right: 20rpx;
				}

				.right-325 {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.title-right {
				color: #333;
				display: flex;
				align-items: center;
				font-size: 28rpx;
			}

			.order-status {
				color: #f83224;
				font-size: 26rpx;
			}
		}

		.commodity-information {
			margin-top: 28rpx;

			.commodity-1 {
				display: flex;

				.commodity-img {
					width: 180rpx;
					height: 180rpx;
					margin-right: 20rpx;
					border-radius: 10rpx;
				}

				.commodity-2 {
					display: flex;
					justify-content: space-between;

					.commodity-title {
						width: 472rpx;
						max-height: 80rpx;
						overflow: hidden;
						white-space: nowrap;
						text-overflow: ellipsis;
						margin-right: 38rpx;
					}
				}

				.commodity-3 {
					display: flex;
					justify-content: space-between;
					margin-top: 20rpx;
					color: #777;

					.specifications {
						font-size: 28rpx;
						color: #777;
					}
				}
			}
		}

		.last {
			border-bottom: 2rpx solid rgba(151, 151, 151, .1);
			padding-bottom: 20rpx;
		}

		.btn-list {
			display: flex;
			justify-content: flex-end;

			button {
				width: 152rpx;
				height: 58rpx;
				border: 2rpx solid #979797;
				color: #444;
				margin: 0;
				padding: 0;
				font-size: 24rpx;
				background-color: #fff;
				border-radius: 34rpx;
				margin-top: 20rpx;
				margin-left: 20rpx;
			}
		}

		.information {
			display: flex;
			justify-content: space-between;
			font-size: 28rpx;
			align-items: flex-end;
			margin: 34rpx 0;

			._label {
				font-size: 28rpx;
				color: #333;
			}

			._title-right {
				font-size: 28rpx;
				color: rgba(34, 34, 34, .6);
			}
		}

		._bottom {
			display: flex;
			justify-content: flex-end;
			font-size: 28rpx;
			align-items: flex-end;
			margin-top: 34rpx;
		}

	}
</style>