walletDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view style="z-index: 99;" class="flexd">
  6. <view class="search dis a-c j-s">
  7. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  8. <text class="center">账单详情</text>
  9. </view>
  10. </view>
  11. <view class="" style="padding:100px 16px 16px;">
  12. <view class="assets dis f-c j-s" >
  13. <view class="dis f-c j-s a-c">
  14. <text>提现到银行卡</text>
  15. <text>¥{{MoneyData.cashFee}}</text>
  16. <!-- <text>{{MoneyData.status}}</text> -->
  17. </view>
  18. <view class="yushou dis f-c">
  19. <u-steps :list="numList" :current="numList.length" direction="column" mode="number"
  20. active-color="#13C15A">
  21. </u-steps>
  22. </view>
  23. </view>
  24. <view class="assets1 dis f-c j-s">
  25. <view class="dis j-s a-c" v-if="MoneyData.number">
  26. <text>交易编号:</text>
  27. <text>{{MoneyData.number}}</text>
  28. </view>
  29. <view class="dis j-s a-c" v-if="MoneyData.remark && numList.length==2 && numList[1].processingStatusName=='2'">
  30. <text>驳回原因:</text>
  31. <text>{{MoneyData.remark}}</text>
  32. </view>
  33. <view class="dis j-s a-c" v-if="MoneyData.createTime">
  34. <text>申请时间:</text>
  35. <text>{{MoneyData.createTime}}</text>
  36. </view>
  37. <view class="dis j-s a-c" v-if="MoneyData.auditTime">
  38. <text>到账时间:</text>
  39. <text>{{MoneyData.auditTime}}</text>
  40. </view>
  41. <view class="dis j-s a-c" v-if="MoneyData.bankNumber">
  42. <text>到账账户:</text>
  43. <text>{{MoneyData.bankNumber}}</text>
  44. </view>
  45. <view class="dis j-s a-c" v-if="MoneyData.bankAccount">
  46. <text>到账银行:</text>
  47. <text>{{MoneyData.bankAccount}}</text>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import {
  55. mapState
  56. } from "vuex"
  57. export default {
  58. data() {
  59. return {
  60. numList: [],
  61. MoneyData: {},
  62. promotionData: {},
  63. refundData: {},
  64. trajectoryLength: 0,
  65. }
  66. },
  67. computed: {
  68. ...mapState(['userInfo'])
  69. },
  70. onShow() {
  71. },
  72. async onLoad(params) {
  73. if (params.id) {
  74. let res = await this.$http.post('/sysAgencyFeeApproval/operateInfo/' + params.id);
  75. this.MoneyData = res.data;
  76. if(res.data.statusList.length==2){
  77. if(res.data.statusList[1].processingStatusName=='2'){
  78. res.data.statusList[1].processingStatus='3'
  79. }
  80. }
  81. res.data.statusList.forEach(element => {
  82. switch (element.processingStatusName) {
  83. case '0':
  84. element.processingStatusName='提现申请'
  85. break;
  86. case '1':
  87. element.processingStatusName='提现成功'
  88. break;
  89. case '2':
  90. element.processingStatusName='提现驳回'
  91. break;
  92. default:
  93. break;
  94. }
  95. });
  96. this.numList = res.data.statusList;
  97. // const filteredArray = this.numList.filter(item => item.processingStatusFlag === true).length -
  98. // 1;
  99. // this.trajectoryLength = filteredArray;
  100. }
  101. },
  102. onShow() {},
  103. methods: {
  104. back() {
  105. uni.navigateBack({
  106. delta: 1, // 返回的页面数,如果是1表示返回上一页
  107. success: function() {}
  108. });
  109. },
  110. }
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. @import '@/style/mixin.scss';
  115. page {
  116. background: #F8FAFE;
  117. }
  118. .flexd {
  119. position: fixed;
  120. left: 0;
  121. right: 0;
  122. }
  123. .assets1 {
  124. width: 100%;
  125. height: auto;
  126. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  127. box-shadow: 0px 4px 10px 0px #DAE3F4;
  128. border-radius: 6px;
  129. >view {
  130. border-bottom: 1px solid #f2f2f2;
  131. font-size: 14px;
  132. color: #232832;
  133. padding: 10px;
  134. }
  135. }
  136. .assets {
  137. width: 100%;
  138. height: auto;
  139. background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  140. box-shadow: 0px 4px 10px 0px #DAE3F4;
  141. border-radius: 10px;
  142. border: 1px solid #FFFFFF;
  143. padding: 0 12px;
  144. margin-bottom: 12px;
  145. >view:nth-child(1) {
  146. // border-bottom: 1px solid #CFCFCF;
  147. padding: 16px 0;
  148. color: #333;
  149. text:nth-child(1) {
  150. font-size: 14px;
  151. }
  152. text:nth-child(2) {
  153. font-size: 30px;
  154. font-weight: bold;
  155. margin: 6px 0;
  156. }
  157. }
  158. .yushou {
  159. padding: 8px;
  160. image {
  161. width: 20px;
  162. height: 20px;
  163. margin-top: 5px;
  164. }
  165. }
  166. }
  167. /* 银行卡信息Start */
  168. .search {
  169. height: auto;
  170. width: 100%;
  171. z-index: 999999;
  172. padding: 50px 16px 30px;
  173. height: auto;
  174. background: #F8FAFE;
  175. background-image: url("/static/image/wallet/qianbao.png");
  176. background-size: 100% 100%;
  177. position: relative;
  178. text {
  179. font-size: 18px;
  180. font-weight: bold;
  181. color: #000;
  182. }
  183. .bank {
  184. font-weight: 600;
  185. font-size: 28rpx;
  186. color: #000000;
  187. }
  188. .center {
  189. position: absolute;
  190. left: 50%;
  191. transform: translateX(-50%);
  192. }
  193. image {
  194. width: 22px;
  195. height: 22px;
  196. margin-left: 20px;
  197. }
  198. }
  199. </style>