history.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="history">
  3. <!-- <view class="item" v-for="(item,index) in list" :key="index"> -->
  4. <u-table v-if="list.length>0">
  5. <u-tr>
  6. <u-th>时间</u-th>
  7. <u-th>银行卡</u-th>
  8. <u-th>金额(元)</u-th>
  9. <u-th>状态</u-th>
  10. </u-tr>
  11. <u-tr v-for="(item,index) in list">
  12. <u-td >
  13. {{item.dtCreateTime.slice(0,10)}}
  14. {{item.dtCreateTime.slice(11,19)}}
  15. </u-td>
  16. <u-td >
  17. 尾号 {{item.bankAccount.slice(-4)}}
  18. </u-td>
  19. <u-td >
  20. {{item.dPrice}}
  21. </u-td>
  22. <u-td >
  23. {{item.nStatus == 0?'审核中':item.nStatus == 1?'审核通过':item.nStatus == 2?'驳回':''}}
  24. </u-td>
  25. </u-tr>
  26. </u-table>
  27. <view class="empty" v-else>
  28. 暂无提现记录
  29. </view>
  30. <!-- </view> -->
  31. </view>
  32. </template>
  33. <script>
  34. import {select} from '../../api/index.js'
  35. export default{
  36. data(){
  37. return{
  38. list:[]
  39. }
  40. },
  41. onShow() {
  42. this.getList()
  43. },
  44. methods:{
  45. getList(){
  46. var openid = {
  47. cOpenId: uni.getStorageSync('wx_copenid')
  48. }
  49. select(openid).then(res => {
  50. if(res.data.code == 200){
  51. this.list = res.data.data.records
  52. }
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. ::v-deep.u-th {
  60. border: none !important;
  61. }
  62. ::v-deep.u-tr{
  63. height: 50px;
  64. }
  65. ::v-deep.u-td {
  66. border: none !important;
  67. height: 100%;
  68. display: flex;
  69. align-items: center;
  70. }
  71. ::v-deep.u-tr{
  72. border-bottom: 1px solid #ccc;
  73. }
  74. .history{
  75. width: 100%;
  76. height: 100%;
  77. overflow-y: auto;
  78. .empty{
  79. width: 100%;
  80. text-align: center;
  81. padding-top: 200px;
  82. }
  83. }
  84. </style>