<template>
	<view class="content">
		<view class="header" v-if="type===1">
			<view class="header-left">
				<view class="text1" >退款中</view>
				<view class="text2">还剩00:56:27确认</view>
			</view>
			<image class="header-right" src="../../static/customerService-simle.png" mode="aspectFill"></image>
		</view>
		<view class="header" v-if="type===2">
			<view class="header-left">
				<view class="text1" >商家处理中</view>
				<view class="text2">还剩00:56:27确认</view>
			</view>
			<image class="header-right" src="../../static/customerService-simle.png" mode="aspectFill"></image>
		</view>
		<view class="header" v-if="type===3">
			<view class="header-left">
				<view class="text1" >卖家已发货</view>
				<view class="text2">还剩 00:56:27 确认</view>
			</view>
			<image class="header-right" src="../../static/customerService-simle.png" mode="aspectFill"></image>
		</view>
		<view class="orderInfoCard">
			<view class="info">
				<image src="../../static/img/detail/d1.png" mode="aspectFill"></image>
				<view class="infoText">
					<view class="orderName">商品名称商品名称商品名称</view>
					<view class="orderDescrib">规格：玫瑰金 / 钛合金 / 防日光防紫外线</view>
					<view class="infoText-bottom">
						<view class="markPrice">￥188</view>
						<view class="buy-num">X 1</view>
					</view>
				</view>
			</view>
			<view class="refund_price">
				<text class="refund_price_title">退款金额</text>
				<text class="refund_price_price">￥110</text>
			</view>
		</view>
		<view class="application">
			<view class="title">申请记录</view>
			<view class="item">
				<text class="text1">服务类型</text>
				<text class="text2">退款</text>
			</view>
			<view class="item">
				<text class="text1">换货原因</text>
				<text class="text2">不想要了</text>
			</view>
			<view class="item">
				<text class="text1">申请时间</text>
				<text class="text2">2020-10-22 17:55:03</text>
			</view>
			<view class="item">
				<text class="text1">货物编号</text>
				<text class="text2">173549842184</text>
			</view>
			<view class="button">
				<image src="../../static/customerService-horn.png" mode="aspectFill" style="width: 38rpx;height: 38rpx;"></image>
				<text>联系客服</text>
			</view>
		</view>
		<view class="btn-bar" v-if="type===1">
			<view class="btn2">
				退款进度
			</view>
		</view>
		<view class="btn1" v-if="type===2">
			修改申请
		</view>
		<view  v-if="type===3"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:3
			};
		}
	}
</script>

<style lang="scss">
	.content{
		background-color: #F2F2F2;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		.header{
			width: 100%;
			height: 142rpx;
			background-color: #4A90E2;
			color: #FFFFFF;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding:  0 60rpx;
			box-sizing: border-box;	
			.header-left{
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				align-items: center;
				height: 92rpx;
				width: 220rpx;
				color: #FFFFFF;
				.text1{
					font-size: 36rpx;
				}
				.text2{
					font-size: 24rpx;
				}
			}
			.header-right{
				height: 48rpx;
				width: 48rpx;
			}
		}
		.orderInfoCard{
			height: 362rpx;
			width: 670rpx;
			background: #FFFFFF;
			box-shadow: 0 0 10px 0 rgba(177,128,128,0.06);
			border-radius: 8px;
			margin-top: 20rpx;
			margin-bottom: 20rpx;
			padding: 40rpx 40rpx 60rpx 40rpx;
			box-sizing: border-box;	
			.info{
				width: 100%;
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 30rpx;
				image{
					height: 188rpx;
					width: 188rpx;
					margin-right: 24rpx;
				}
				.infoText{
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					align-items: flex-start;
					height: 188rpx;
				}
				.orderName{
					font-size: 14px;
					color: #333333;
				}
				.orderDescrib{
					font-size: 12px;
					color: #999999;
				}
				.infoText-bottom{
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					align-items: center;
					width: 100%;
					.markPrice{
						font-size: 14px;
						color: #FF6B4A;
					}
					.buy-num{
						font-size: 12px;
						color: #999999;
					}
				}
			}
			.refund_price{
				text-align: right;
				.refund_price_title{
					font-size: 14px;
					color: #333333;
					margin-right: 40rpx;
				}
				.refund_price_price{
					font-size: 14px;
					color: #FF6B4A;
				}
			}
		}
		.application{
			background: #FFFFFF;
			box-shadow: 0 0 10px 0 rgba(177,128,128,0.06);
			border-radius: 8px;
			height: 532rpx;
			width: 670rpx;
			margin-bottom: 132rpx;
			padding: 40rpx 40rpx 32rpx 36rpx;
			box-sizing: border-box;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			.title{
				font-size: 16px;
				color: #333333;
			}
			.item{
				font-size: 12px;
				color: #999999;
				.text1{
					font-size: 12px;
					color: #999999;
					margin-right: 40rpx;
				}
				.text2{
					font-size: 12px;
					color: #B8B8B8;
				}
			}
			.button{
				display: flex;
				justify-content: flex-start;
				image{
					margin-right: 20rpx;
				}
				font-size: 14px;
				color: #333333;
			}
		}
		.btn1{
			position: fixed;
			height: 112rpx;
			width: 100%;
			background-color: #FF6B4A;
			color: #FFFFFF;
			font-size: 32rpx;
			left: 0;
			bottom: 0;
			font-size: 16px;
			color: #FFFFFF;
			line-height: 112rpx;
			text-align: center;
		}
		.btn-bar{
			position: fixed;
			left: 0;
			bottom: 0;
			height: 112rpx;
			width: 100%;
			background-color: #FFFFFF;
			padding-right: 26rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: flex-end;
			align-items: center;
			.btn2{
				width: 204rpx;
				height: 80rpx;
				border: 1px solid #FF6B4A;
				border-radius: 20px;
				border-radius: 20px;
				background-color: #FFFFFF;
				font-size: 16px;
				color: #FF6B4A;
				line-height: 80rpx;
				text-align: center;
			}
		}
			
	}
</style>
