<template>
  <view class="top-direction">
    <view class="direction-frist">
      <view class=""> 退款成功 </view>
      <view class="commodity-price">
        <text style="font-size: 20rpx">￥</text>
        <text>{{
          refundDetail.goods[0].refund.actual_refund_price.split(".")[0]
        }}</text
        >.
        <text style="font-size: 20rpx">{{
          refundDetail.goods[0].refund.actual_refund_price.split(".")[1]
        }}</text>
      </view>
    </view>
    <view class="time"> 2023年12月4号 18:23 </view>

    <view class="direction-last">
      <view class=""> 退款余额 </view>
      <view class="commodity-price">
        <text style="font-size: 20rpx">￥</text>
        <text>{{
          refundDetail.goods[0].refund.actual_refund_price.split(".")[0]
        }}</text
        >.
        <text style="font-size: 20rpx">{{
          refundDetail.goods[0].refund.actual_refund_price.split(".")[1]
        }}</text>
      </view>
    </view>

    <button class="check" @click="$emit('checkMoney')">查看钱款去向</button>
  </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;
  }
}
</style>
