rechargeDeatilsByPhone.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 class="foot-btn" >
  32. <u-button type="primary" @click="gotoUrl('pages/user/rechargeByPhone?phone='+detail.otherRecharge.phone)" :custom-style="customStyle" shape="square">再次充值</u-button>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import * as API from '@/apis/otherRecharge.js'
  38. export default {
  39. data() {
  40. return {
  41. id:'',
  42. detail:{
  43. otherRecharge:{},
  44. accountRecord:{},
  45. orderInfo:{},
  46. }
  47. }
  48. },
  49. onLoad(op){
  50. this.id=op.id;
  51. this.getInfo()
  52. },
  53. methods: {
  54. getInfo(){
  55. uni.showLoading({
  56. title:"加载中",mask:true,
  57. })
  58. API.rechargeDetails({
  59. id:this.id
  60. }).then((res) => {
  61. this.detail=res.data
  62. uni.hideLoading()
  63. }).catch(error => {
  64. uni.showToast({
  65. title:error
  66. })
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style>
  73. page{
  74. background-color: #f7f7f7;
  75. }
  76. </style>
  77. <style lang="scss" scoped>
  78. .chargeDetails{
  79. background-color: #FFFFFF;
  80. .chargeDetails-item{
  81. margin:0 20rpx;
  82. border-bottom: 1px solid #F7F7F7;
  83. display: flex;
  84. align-items: center;
  85. justify-content: space-between;
  86. padding: 30rpx;
  87. span{
  88. color:#999;
  89. }
  90. }
  91. .price{
  92. font-size: 40rpx;
  93. color:#FF3D00;
  94. font-weight: bold;
  95. }
  96. }
  97. .foot-btn{
  98. padding: 20rpx;
  99. position: fixed;
  100. left: 0;
  101. right: 0;
  102. bottom: 0;
  103. background-color: #fff;
  104. .foot-pirce{
  105. display: flex;
  106. align-items: center;
  107. span{
  108. margin-left: 10rpx;
  109. font-size: 32rpx;
  110. }
  111. padding-bottom: 20rpx;
  112. border-bottom: 1px solid #f7f7f7;
  113. margin-bottom: 20rpx;
  114. }
  115. }
  116. </style>