<!--
 * @Author: ch
 * @Date: 2022-04-13 17:59:48
 * @LastEditors: ch
 * @LastEditTime: 2022-04-13 18:45:43
 * @Description: file content
-->
<template>
	<UiWhiteBox>
		<text class="title">退款信息</text>
		<UiGoodsInfo class="goods-info" :data="data.refundProduct"></UiGoodsInfo>
		<view class="info">
			<view class="info--cell">
				<text class="info--cell-label">退款原因：</text>
				<view class="info--cell-value">{{data.refundReason}}</view>
			</view>
			<view class="info--cell">
				<text class="info--cell-label">退款金额：</text>
				<view class="info--cell-value">￥{{data.refundAmount}}</view>
			</view>
			<view class="info--cell">
				<text class="info--cell-label">申请件款：</text>
				<view class="info--cell-value">{{data.refundProduct.quantity}}件</view>
			</view>
			<view class="info--cell">
				<text class="info--cell-label">申请时间：</text>
				<view class="info--cell-value">{{data.applyTime}}</view>
			</view>
			<view class="info--cell">
				<text class="info--cell-label">退款编号：</text>
				<view class="info--cell-value">{{data.refundNo}}</view>
			</view>
		</view>
	</UiWhiteBox>
</template>
<script>
import UiWhiteBox from '@/components/UiWhiteBox.vue'
import UiGoodsInfo from '@/components/UiGoodsInfo.vue'
import UiCell from '@/components/UiCell.vue'
export default {
	components: { UiWhiteBox, UiGoodsInfo, UiCell },
	props : {
		data : {
			type : Object,
			default : ()=>({})
		}
	}
	
}
</script>
<style lang="scss" scoped>
.title{
	display: block;
	height: 100rpx;
	line-height: 100rpx;
	padding-left: 30rpx;
	border-bottom: 1px solid $color-grey2;
}
.goods-info{
	border:0
}
.info{
	padding: 0 30rpx 10rpx;
	&--cell{
		margin: 30rpx 0;
		display: flex;
		justify-content: space-between;
	}
	&--cell-label{
		color: $color-grey4;
		font-size: $font-size-sm;
	}
	&--cell-value{
		font-size: $font-size-sm;
		color: $color-grey5;
	}
}
</style>