detail.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view class="">
  3. <view class="top">
  4. <image v-if="detail.withdrawStatus=='DONE'" style="border-radius: 50%;" src="@/static/icon/pay-success.png" ></image>
  5. <image v-if="detail.withdrawStatus=='FAIL'" style="border-radius: 50%;" src="@/static/icon/pay-fail.png" ></image>
  6. <image v-if="detail.withdrawStatus=='WAITING'" style="border-radius: 50%;" src="@/static/icon/pay-handel.png" ></image>
  7. <text class="margin-top-20" v-if="detail.withdrawStatus=='WAITING'">处理中</text>
  8. <text class="margin-top-20" v-if="detail.withdrawStatus=='FAIL'">提现失败</text>
  9. <text class="margin-top-20" v-if="detail.withdrawStatus=='DONE'">提现成功</text>
  10. <view class="data">
  11. <view class="price reduce text-base text-bold" style="padding: 0;">
  12. {{detail.price}}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="card">
  17. <view class="item">
  18. <text>提现状态</text>
  19. <text class="text-warn" v-if="detail.withdrawStatus=='WAITING'">处理中</text>
  20. <text class="text-red" v-if="detail.withdrawStatus=='FAIL'">提现失败</text>
  21. <text class="text-success" v-if="detail.withdrawStatus=='DONE'">提现成功</text>
  22. </view>
  23. <view class="item">
  24. <text>提现时间</text>
  25. <text>{{detail.createTime}}</text>
  26. </view>
  27. <view class="item">
  28. <text>提现金额</text>
  29. <text>{{detail.price}}</text>
  30. </view>
  31. <view class="item">
  32. <text>提现服务费</text>
  33. <text>{{detail.platformFee || 0}}</text>
  34. </view>
  35. <view class="item">
  36. <text>提现手续费</text>
  37. <text>{{detail.fee || 0}}</text>
  38. </view>
  39. <view class="item">
  40. <text>实际到账</text>
  41. <text>{{detail.receiveAmount || '0.00'}}</text>
  42. </view>
  43. <view class="item">
  44. <text>提现银行</text>
  45. <text>{{detail.receiverAccountName}}</text>
  46. </view>
  47. <view class="item">
  48. <text>提现账号</text>
  49. <text>{{detail.receiverAccountNo}}</text>
  50. </view>
  51. <view class="item" v-if="detail.withdrawStatus=='FAIL'">
  52. <text style="width: 30%;">失败原因</text>
  53. <text class="text-cut-2 text-right">{{detail.failReason}}</text>
  54. </view>
  55. </view>
  56. <button open-type="contact" class="question btnCss" style="padding: 5rpx 50rpx;font-size: 28rpx;">
  57. <text>联系客服</text>
  58. <text class="cuIcon-right" style="margin-top: 5rpx;"></text>
  59. </button>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. name: '',
  65. data() {
  66. return {
  67. detail:{}
  68. };
  69. },
  70. onLoad(options) {
  71. this.fetchDetail(options.id)
  72. },
  73. methods:{
  74. fetchDetail(id){
  75. let params={
  76. id
  77. }
  78. this.$api.withdraw.detail(params).then(res=>{
  79. this.detail=res.data
  80. })
  81. }
  82. }
  83. };
  84. </script>
  85. <style scoped lang="scss">
  86. .top {
  87. padding: 80rpx 0 0;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. flex-direction: column;
  92. image {
  93. width: 120rpx;
  94. height: 120rpx;
  95. }
  96. .title {
  97. color: #000;
  98. padding-top: 15rpx;
  99. font-size: 32rpx;
  100. }
  101. .data {
  102. padding-top: 30rpx;
  103. display: flex;
  104. image {
  105. width: 40rpx;
  106. height: 40rpx;
  107. }
  108. view {
  109. padding-left: 20rpx;
  110. text:first-child {
  111. color: #000;
  112. font-size: 38rpx;
  113. }
  114. text:last-child {
  115. font-size: 32rpx;
  116. padding-left: 20rpx;
  117. }
  118. }
  119. }
  120. }
  121. .card {
  122. margin-top: 50rpx;
  123. padding: 20rpx 30rpx;
  124. background-color: #FFFFFF;
  125. .item{
  126. padding: 20rpx 0;
  127. font-size: 28rpx;
  128. color: #888888;
  129. margin: 0 20rpx;
  130. display: flex;
  131. justify-content: space-between;
  132. }
  133. }
  134. .question{
  135. color: #888888;
  136. background-color: #FFFFFF;
  137. margin-top: 20rpx;
  138. margin-bottom: 50rpx;
  139. padding: 20rpx 50rpx;
  140. display: flex;
  141. justify-content: space-between;
  142. }
  143. .strong{
  144. font-weight: bold;
  145. color: #000;
  146. }
  147. </style>