tbRecord.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="content">
  3. <view class="main">
  4. <view class="main-title">
  5. <view class="main-title-item">幣種</view>
  6. <view class="main-title-item">時間</view>
  7. </view>
  8. <view class="main-info" v-for="(item, index) in list" @click="navTo('/pages/user/tbDetail?id=' + item.id)">
  9. <view class="main-info-top flex">
  10. <view class="main-info-title">{{ item.coinname.toUpperCase() }}</view>
  11. <view class="main-info-type">{{ item.status == 1 ? '待审核' : item.status == 2 ? '完成' : '失败' }}</view>
  12. </view>
  13. <view class="main-info-bottom flex">
  14. <view class="main-bottom-item left">
  15. <view class="main-bottom-item-font">實際到賬</view>
  16. <view class="main-bottom-item-num">{{ item.mum }}</view>
  17. </view>
  18. <view class="main-bottom-item center">
  19. <view class="main-bottom-item-font">手續費</view>
  20. <view class="main-bottom-item-num">{{ item.fee }}</view>
  21. </view>
  22. <view class="main-bottom-item right">
  23. <view class="main-bottom-item-font">時間</view>
  24. <view class="main-bottom-item-num">{{ item.addtime }}</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { txlist } from '@/api/wallet.js';
  33. export default {
  34. data() {
  35. return {
  36. list: []
  37. };
  38. },
  39. onLoad() {},
  40. onShow() {
  41. this.loadData();
  42. },
  43. methods: {
  44. loadData() {
  45. txlist({ page: 1, limit: 1000 }).then(e => {
  46. this.list = e.data;
  47. });
  48. },
  49. navTo(url) {
  50. uni.navigateTo({
  51. url
  52. });
  53. }
  54. }
  55. };
  56. </script>
  57. <style lang="scss">
  58. page,
  59. .content {
  60. min-height: 100%;
  61. height: auto;
  62. background: #f5f5f5;
  63. }
  64. .main {
  65. margin: 10rpx 0 0;
  66. background: #fff;
  67. padding: 20rpx;
  68. .main-title {
  69. display: flex;
  70. justify-content: space-around;
  71. align-items: center;
  72. padding: 20rpx 0;
  73. border-bottom: 1px solid #fcfcfc;
  74. }
  75. .main-info {
  76. padding: 20rpx 20rpx;
  77. border-bottom: 1px solid #fcfcfc;
  78. .main-info-top {
  79. .main-info-title {
  80. font-size: 36rpx;
  81. font-weight: 500;
  82. color: #707a8a;
  83. }
  84. .main-info-type {
  85. font-size: 28rpx;
  86. color: #707a8a;
  87. }
  88. }
  89. .main-info-bottom {
  90. margin: 20rpx 0 0;
  91. .left {
  92. text-align: left;
  93. }
  94. .center {
  95. text-align: center;
  96. }
  97. .right {
  98. text-align: right;
  99. }
  100. .main-bottom-item {
  101. width: 33%;
  102. .main-bottom-item-font {
  103. font-size: 28rpx;
  104. color: #cbcbcb;
  105. }
  106. .main-bottom-item-num {
  107. height: 80rpx;
  108. margin-top: 20rpx;
  109. font-size: 28rpx;
  110. color: #000;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. </style>