rechargeDet.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view>
  3. <ujp-navbar title="充值详情"></ujp-navbar>
  4. <view class="rechargeDet-head">
  5. <view class="payPrice">
  6. <font>{{detail.payFee.toFixed(2)}}</font><span>元</span>
  7. </view>
  8. <p class="oldTextjp2" oldstyle="font-size: 16px;">充值金额(元)</p>
  9. </view>
  10. <view class="rechargeDet-main oldTextjp2" oldstyle="font-size: 18px;">
  11. <view class="rechargeDet-list">
  12. <p>充值订单</p><span>{{detail.outOrderNo}}</span>
  13. </view>
  14. <view class="rechargeDet-list">
  15. <p>交易单号</p><span class="transactionClass">{{detail.transactionId}}</span>
  16. </view>
  17. <view class="rechargeDet-list">
  18. <p>充值时间</p><span>{{detail.payTime}}</span>
  19. </view>
  20. <view class="rechargeDet-list">
  21. <p>充值渠道</p><span>{{detail.payNameStr}}</span>
  22. </view>
  23. <view class="rechargeDet-list">
  24. <p>充值金额</p><span>{{detail.payFee.toFixed(2)}}元</span>
  25. </view>
  26. </view>
  27. <view class="rechargeDet-main">
  28. <view class="rechargeDet-list oldTextjp2" oldstyle="font-size: 18px;">
  29. <p>状态</p><span>{{detail.payStatusStr}}</span>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import * as API from '@/apis/index.js'
  36. export default {
  37. data() {
  38. return {
  39. id: '',
  40. detail: {},
  41. elderStatus: false,
  42. }
  43. },
  44. onLoad(op) {
  45. if(op.id) {
  46. this.id = op.id
  47. this.getAccountDetail();
  48. }
  49. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  50. this.elderStatus = true;
  51. } else {
  52. this.elderStatus = false;
  53. }
  54. },
  55. methods: {
  56. getAccountDetail() {
  57. uni.showLoading({
  58. title: "加载中",
  59. mask: true,
  60. })
  61. API.accountDetail(this.id).then((res) => {
  62. uni.hideLoading();
  63. this.detail = res.data.orderInfo;
  64. }).catch(error => {
  65. uni.showToast({
  66. title: error,
  67. icon: "none"
  68. })
  69. })
  70. },
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .rechargeDet-head{
  76. background-color: #fff;
  77. padding: 24px 0;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. .payPrice{
  82. display: flex;
  83. align-items: flex-end;
  84. justify-content: center;
  85. font{
  86. font-size: 36px;
  87. line-height: 36px;
  88. }
  89. }
  90. p{
  91. color:#999;
  92. margin-top: 4px;
  93. }
  94. }
  95. .rechargeDet-main{
  96. background-color: #fff;
  97. padding-left: 16px;
  98. margin-top: 12px;
  99. .rechargeDet-list{
  100. display: flex;
  101. align-items: center;
  102. justify-content: space-between;
  103. padding: 12px 16px 12px 0;
  104. border-bottom: 1px solid #f7f7f7;
  105. &:last-child{
  106. border-bottom: none;
  107. }
  108. .transactionClass {
  109. width: 70%;
  110. overflow: hidden;
  111. white-space: nowrap;
  112. text-overflow: ellipsis;
  113. text-align: right;
  114. }
  115. }
  116. }
  117. </style>