reflectDetails.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="app-container">
  3. <uv-navbar
  4. title="提现明细"
  5. placeholder
  6. autoBack
  7. bgColor="#f7f7f7"
  8. ></uv-navbar>
  9. <view class="container-top">
  10. <view class="iconfont">&#xe676;</view>
  11. <text class="text" v-if="info.status == 1">待审核</text>
  12. <text class="text" v-if="info.status == 3">已到账</text>
  13. <text class="text" v-if="info.status == 2">提现失败</text>
  14. </view>
  15. <view class="main-list">
  16. <view class="main-list-item u-flex-center-sb">
  17. <text class="lable">提现明细</text>
  18. <text class="value">{{ info.createTime || "--" }}</text>
  19. </view>
  20. <view class="main-list-item u-flex-center-sb">
  21. <text class="lable">提现金额</text>
  22. <text class="num">¥{{ info.amount || 0 }}</text>
  23. </view>
  24. <view class="main-list-item u-flex-center-sb">
  25. <text class="lable">提现手续费</text>
  26. <text class="num">¥{{ info.fee || 0 }}</text>
  27. </view>
  28. <view class="main-list-item u-flex-center-sb">
  29. <text class="lable">提现方式</text>
  30. <text class="value" v-if="info.withdrawalMethod == 1">支付宝</text>
  31. <text class="value" v-if="info.withdrawalMethod == 2">微信</text>
  32. </view>
  33. <view class="main-list-item u-flex-center-sb">
  34. <text class="lable">提现账号</text>
  35. <text class="value">{{ info.accountInfo || "--" }}</text>
  36. </view>
  37. <view class="main-list-item u-flex-center-sb" v-if="info.status == 2">
  38. <text class="lable">驳回理由</text>
  39. <text class="value">{{ info.auditResult || "--" }}</text>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script setup>
  45. import { ref } from "vue";
  46. import { onLoad } from "@dcloudio/uni-app";
  47. import { withdrawalInfo_Api } from "@/api/userInfo.js";
  48. import { agentWithdrawalInfo_Api } from "@/api/agencyCenter.js";
  49. const pageType = ref("1"); // 1:用户 2:代理商
  50. const info = ref({});
  51. const getInfo = (id) => {
  52. uni.showLoading({ title: "加载中...", mask: true });
  53. let url =
  54. pageType.value == "1" ? withdrawalInfo_Api : agentWithdrawalInfo_Api;
  55. url(id)
  56. .then((res) => {
  57. uni.hideLoading();
  58. if (res && res.code == 200) {
  59. info.value = res.data || {};
  60. }
  61. })
  62. .catch((err) => {
  63. console.log(err);
  64. uni.hideLoading();
  65. });
  66. };
  67. onLoad((options) => {
  68. if (options.pageType) {
  69. pageType.value = options.pageType;
  70. }
  71. if (options.id) {
  72. getInfo(options.id);
  73. }
  74. });
  75. </script>
  76. <style lang="scss" scoped>
  77. .app-container {
  78. .container-top {
  79. padding: 54rpx 0 90rpx 0;
  80. text-align: center;
  81. background-color: #f7f7f7;
  82. .iconfont {
  83. font-size: 100rpx;
  84. color: #08be5d;
  85. }
  86. .text {
  87. font-size: 38rpx;
  88. font-weight: 700;
  89. color: #1a1a1a;
  90. margin-top: 10rpx;
  91. }
  92. }
  93. .main-list {
  94. margin-top: -40rpx;
  95. padding: 30rpx;
  96. background-color: #ffffff;
  97. border-radius: 40rpx 40rpx 0px 0px;
  98. .main-list-item {
  99. padding: 10rpx 0 20rpx 0;
  100. font-size: 28rpx;
  101. .value {
  102. color: #808080;
  103. }
  104. .num {
  105. color: #da4f4f;
  106. }
  107. }
  108. }
  109. }
  110. </style>