<template>
	<view class="app" v-if='Aftersalesorder'>
		<view class="elderly">
			<view class="wait">
				请等待商家处理
			</view>
		</view>
		<view class="content">
			<view class="name">
				退款信息
			</view>
			<view class="details">
				<view class="detailslist">
					<image :src="baseurl+Aftersalesorder.attributePitureUrl" mode=""></image>
					<view class="model">
						<view class="top">
							<span>{{Aftersalesorder.goodsName}}</span>
							<span>￥{{Aftersalesorder.goodsPrice}}</span>
						</view>
						<view class="bottom">
							<span class="box">型号：{{Aftersalesorder.goodsAttributeName}}</span>
							<span class="box">×1</span>
						</view>
					</view>
				</view>
			</view>
			<view class="info">
				<view>订单编号：{{Aftersalesorder.goOrderNo}}</view>
				<view>申请金额：￥{{Aftersalesorder.totalPrice}}</view>
				<view>退款原因：{{Aftersalesorder.dictLabel}}</view>
				<view v-if="Aftersalesorder.appleTime">申请时间：{{Aftersalesorder.appleTime}}</view>
			</view>
		</view>
		<view class="evaluate">
			<!-- <view class="cancelorder">修改申请</view> -->
			<!-- <view class="cancelorder " style="background: #4C7BC9;">撤销申请</view> -->
		</view>
	</view>
</template>

<script>
	import {
		goodsOrder
	} from '@/api/CommodityOrder/index.js'
	import baseurl from '@/api/baseurl.js'
	export default {
		data() {
			return {
				baseurl: '',
				Aftersalesorder: null,
				patientId: '', //用户id
				goodsOrderId: '', //订单id
				orderStatus: '', //状态 不传
				pageSize: 10,
				pageNum: 1,
			}
		},
		methods: {
			goodsOrderinfo() {
				goodsOrder(this.patientId, this.orderStatus, this.goodsOrderId, this.pageSize, this.pageNum).then(
					res => {
						this.Aftersalesorder = res.rows[0]
					})
			},
		},
		onLoad(options) {
			this.goodsOrderId = options.goodsOrderId
			this.baseurl = baseurl
			let that = this
			try {
				const value = uni.getStorageSync('patientId');
				if (value) {
					that.patientId = value
					that.goodsOrderinfo();
				}
			} catch (e) {}
		}
	}
</script>

<style lang="scss">
	@import "./Aftersalesdetails.scss";
</style>
