rechargeRes.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view>
  3. <u-navbar title="充值结果"></u-navbar>
  4. <view class="paySuccess">
  5. <u-icon name="chenggong" custom-prefix="custom-icon" size="180" color="#00B962"></u-icon>
  6. <view class="title">{{detail.payStatusStr}}</view>
  7. <view class="payPrice">
  8. <span>¥</span>
  9. <font>{{detail.totalFee}}</font><span>元</span>
  10. </view>
  11. <p>{{detail.payNameStr}}</p>
  12. </view>
  13. <view class="paySuccess-btn">
  14. <u-button class="success-btn1" shape="circle" type="" @click="rechargeContinue">
  15. <span>继续充值</span>
  16. </u-button>
  17. <u-button class="success-btn2" shape="circle" type="success" @click="balanceLook">
  18. <span>查看余额</span>
  19. </u-button>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import * as API from '@/apis/finance.js'
  25. export default {
  26. data() {
  27. return {
  28. detail: {},
  29. id: ""
  30. }
  31. },
  32. onLoad(op) {
  33. if(op.id){
  34. this.id=op.id
  35. this.getInfo();
  36. }
  37. },
  38. methods: {
  39. getInfo() {
  40. uni.showLoading({
  41. title: "加载中",
  42. mask: true,
  43. })
  44. API.accountDetail({
  45. outOrderNo: this.id
  46. }).then((res) => {
  47. uni.hideLoading()
  48. this.detail = res.data.orderInfo;
  49. }).catch(error => {
  50. uni.showToast({
  51. title: error,
  52. icon: "none"
  53. })
  54. })
  55. },
  56. rechargeContinue() {
  57. uni.redirectTo({
  58. url: '/pages/user/finance/recharge'
  59. })
  60. },
  61. balanceLook() {
  62. uni.redirectTo({
  63. url: '/pages/user/finance/balance'
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style>
  70. page {
  71. background-color: #fff;
  72. }
  73. </style>
  74. <style lang="scss" scoped>
  75. .paySuccess {
  76. text-align: center;
  77. padding: 50px 0;
  78. .title {
  79. font-size: 20px;
  80. margin-top: 20px;
  81. }
  82. .payPrice {
  83. display: flex;
  84. align-items: flex-end;
  85. justify-content: center;
  86. font {
  87. font-size: 36px;
  88. line-height: 36px;
  89. }
  90. margin-top: 20px;
  91. }
  92. p {
  93. color: #999;
  94. margin-top: 4px;
  95. }
  96. }
  97. .paySuccess-btn {
  98. display: flex;
  99. justify-content: space-between;
  100. padding: 0 40px;
  101. }
  102. .success-btn1 {
  103. color: #BBBBBB !important;
  104. background-color: #fff !important;
  105. flex: 0.4;
  106. span {
  107. color: #333;
  108. }
  109. }
  110. .success-btn2 {
  111. background-color: #00B962 !important;
  112. flex: 0.4;
  113. border-color: #00B962 !important;
  114. color: #fff !important;
  115. }
  116. </style>