rechargeDeatils.vue 1.7 KB

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