<template>
  <view>
    <view class="top-direction" v-if="refundDetail.goods[0].refund.status == 2">
      <view class="direction-frist">
        <view class=""> 卖家拒绝了您的退款申请 </view>
      </view>
      <view class="time" v-if="refundDetail.goods[0].refund.reason">
        商家： {{ refundDetail.goods[0].refund.reason }}
      </view>
      <view class="time"> {{ refundDetail.goods[0].refund.updated_at }} </view>
    </view>
    <view class="top-direction" v-else>
      <view class="direction-frist">
        <view class=""> 已申请平台介入 </view>
      </view>
      <view class="time">
        {{ refundDetail.goods[0].refund.reason || "" }}
      </view>
      <view class="time"> {{ refundDetail.goods[0].refund.updated_at }} </view>
    </view>
    <!-- <view class="direction-frist1">
      <view class=""> 退款成功 </view>
      <view class="commodity-price">
        <text style="font-size: 20rpx">￥</text>
        <text>{{
          refundDetail.goods[0].refund.refund_price.split(".")[0]
        }}</text
        >.
        <text style="font-size: 20rpx">{{
          refundDetail.goods[0].refund.refund_price.split(".")[1]
        }}</text>
      </view>
    </view> -->
  </view>
</template>

<script>
export default {
  props: {
    refundDetail: {
      typeof: Object,
      default: () => {
        return {};
      },
    },
  },
};
</script>

<style scoped lang="scss">
.top-direction {
  padding: 36rpx 24rpx;
  border-radius: 16rpx;
  background-color: #fff;

  .direction-frist {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 36rpx;
    font-weight: 500;
    .commodity-price {
      color: #f83224;
    }
  }

  .time {
    color: rgba(34, 34, 34, 0.6);
    font-size: 24rpx;
    margin-top: 20rpx;
  }

  .direction-last {
    margin-top: 32rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28rpx;
    color: #333;
  }
  .check {
    margin-top: 44rpx;
    border-radius: 38rpx;
    background-color: #fff;
    padding: 0;
    border: 2rpx solid rgba(151, 151, 151, 0.2);
    color: #333;
    font-size: 28rpx;
    height: 76rpx;
  }
}

.direction-frist1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 36rpx;
  font-weight: 500;
  margin-top: 20rpx;
  background-color: #fff;
  height: 100rpx;
  border-radius: 16rpx;
  padding: 0 24rpx;
  .commodity-price {
    color: #f83224;
  }
}
</style>
