applyRefundAchieveDetails.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <!-- 订单详情 状态支付退款成功 -->
  3. <view class="order-details">
  4. <view class="order-details-content">
  5. <view class="order-details-content-header">
  6. <image src="../../static/img/refund-success.png"></image>
  7. <view>+{{ details.refundAmount }}</view>
  8. </view>
  9. <view class="order-details-content-item">
  10. <view>当前状态</view>
  11. <view>已全额退款</view>
  12. </view>
  13. <view class="order-details-content-item">
  14. <view>退款时间</view>
  15. <view>{{ details.auditTime }}</view>
  16. </view>
  17. <view class="order-details-content-item">
  18. <view>退款方式</view>
  19. <view>退回原支付账户</view>
  20. </view>
  21. <view class="order-details-content-item">
  22. <view>退款单号</view>
  23. <view>{{ details.refundNo }}</view>
  24. </view>
  25. </view>
  26. <u-toast ref="uToast" />
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. details: {}
  34. };
  35. },
  36. onLoad(page) {
  37. this.getOrderRefundDetails(page.orderId);
  38. },
  39. methods: {
  40. getOrderRefundDetails(orderId) {
  41. this.$u.api
  42. .getOrderRefundDetails({
  43. orderId: orderId
  44. })
  45. .then((res) => {
  46. if (res.code === 200) {
  47. this.details = res.data;
  48. } else {
  49. this.$refs.uToast.show({
  50. title: res.msg,
  51. type: 'error'
  52. });
  53. }
  54. })
  55. .catch((err) => {
  56. this.$refs.uToast.show({
  57. title: '操作失败',
  58. type: 'error'
  59. });
  60. });
  61. }
  62. }
  63. };
  64. </script>
  65. <style lang="scss" scoped>
  66. @import './applyRefundDetails.scss';
  67. </style>