rechargeDeatilsByPhone.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view>
  3. <ujp-navbar title="充值详情">
  4. </ujp-navbar>
  5. <view class="chargeDetails">
  6. <view class="chargeDetails-item">
  7. <span>充值金额</span>
  8. <p class="price">{{detail.orderInfo.totalFee}}元</p>
  9. </view>
  10. <view class="chargeDetails-item">
  11. <span>充值类型</span>
  12. <p>帮人充值</p>
  13. </view>
  14. <view class="chargeDetails-item">
  15. <span>充值账号</span>
  16. <p>{{detail.otherRecharge.phone}}</p>
  17. </view>
  18. <view class="chargeDetails-item">
  19. <span>创建时间</span>
  20. <p>{{detail.orderInfo.createTime}}</p>
  21. </view>
  22. <view class="chargeDetails-item">
  23. <span>订单号</span>
  24. <p>{{detail.orderInfo.outOrderNo}}</p>
  25. </view>
  26. <view class="chargeDetails-item">
  27. <span>交易号</span>
  28. <p>{{detail.orderInfo.transactionId}}</p>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import * as API from '@/apis/otherRecharge.js'
  35. export default {
  36. data() {
  37. return {
  38. id:'',
  39. detail:{
  40. otherRecharge:{},
  41. accountRecord:{},
  42. orderInfo:{},
  43. }
  44. }
  45. },
  46. onLoad(op){
  47. this.id=op.id;
  48. this.getInfo()
  49. },
  50. methods: {
  51. getInfo(){
  52. uni.showLoading({
  53. title:"加载中",mask:true,
  54. })
  55. API.rechargeDetails({
  56. id:this.id
  57. }).then((res) => {
  58. this.detail=res.data
  59. uni.hideLoading()
  60. }).catch(error => {
  61. uni.showToast({
  62. title:error
  63. })
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style>
  70. page{
  71. background-color: #f7f7f7;
  72. }
  73. </style>
  74. <style lang="scss" scoped>
  75. .chargeDetails{
  76. background-color: #FFFFFF;
  77. .chargeDetails-item{
  78. margin:0 10px;
  79. border-bottom: 1px solid #F7F7F7;
  80. display: flex;
  81. align-items: center;
  82. justify-content: space-between;
  83. padding: 15px;
  84. span{
  85. color:#999;
  86. }
  87. }
  88. .price{
  89. font-size: 20px;
  90. color:#FF3D00;
  91. font-weight: bold;
  92. }
  93. }
  94. </style>