recording.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="index">
  3. <view class="m_list">
  4. <view class="item" v-for="(v, i) in list.data" :key="i">
  5. <view class="top">
  6. <text>微信提现</text>
  7. <view class="right">
  8. <text>{{ v.money }}</text>
  9. </view>
  10. </view>
  11. <view class="bottom">
  12. <text>{{v.createdate}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import helper from '../../common/helper.js';
  20. import api from '../../common/api.js';
  21. export default {
  22. data() {
  23. return {
  24. map: {
  25. page: 1,
  26. pageSize:20
  27. },
  28. list: {}
  29. };
  30. },
  31. onShow() {
  32. this.getList();
  33. },
  34. methods: {
  35. async getList() {
  36. let res = await api.getWithdrawList(this.map);
  37. this.list = res.data;
  38. uni.stopPullDownRefresh();
  39. },
  40. onPullDownRefresh() {
  41. this.map.page = 1;
  42. this.getList();
  43. },
  44. onReachBottom() {
  45. if (this.info.last_page > this.info.current_page) {
  46. this.getList();
  47. }
  48. }
  49. }
  50. };
  51. </script>
  52. <style lang="scss">
  53. page,
  54. .index {
  55. background-color: #f5f5f5;
  56. }
  57. .m_list {
  58. padding: 0 30upx;
  59. border-top: #f5f5f5 1px solid;
  60. background-color: #ffffff;
  61. }
  62. .item {
  63. padding: 20upx 0;
  64. border-bottom: #f5f5f5 1px solid;
  65. .top {
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. font-size: 28upx;
  70. .right {
  71. text {
  72. font-size: 40upx;
  73. color: #e51c23;
  74. }
  75. }
  76. }
  77. .bottom {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. font-size: 24upx;
  82. color: #9f9f9f;
  83. margin-top: 10upx;
  84. }
  85. }
  86. </style>