You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.3 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <!-- 流水页面 -->
  2. <template>
  3. <view class="running-water bx">
  4. <navbar :leftClick="leftClick" :title="$t('page.runningWater.title')"></navbar>
  5. <u-list @scrolltolower="scrolltolower" height="calc(100vh - 90rpx)">
  6. <!-- 流水列表 -->
  7. <view class="running-water-list content">
  8. <view v-for="item in runningWaterList" :key="item.id" class="running-water-item">
  9. <image src="@/static/runningWater/money.png" mode="aspectFit"></image>
  10. <view class="descript">[balance]</view>
  11. <view class="time">{{ item.createTime }}</view>
  12. <view class="money-detail">
  13. <text>{{ item.type == '0' ? '+' : '-' }}</text>
  14. {{ item.money }}
  15. </view>
  16. </view>
  17. </view>
  18. </u-list>
  19. </view>
  20. </template>
  21. <script>
  22. import navbar from '@/components/base/m-navbar.vue'
  23. export default {
  24. components: {
  25. navbar
  26. },
  27. data() {
  28. return {
  29. queryparams: {
  30. pageNo: 1,
  31. pageSize: 10
  32. },
  33. runningWaterList: []
  34. }
  35. },
  36. onShow() {
  37. this.getRunningWater()
  38. },
  39. methods: {
  40. leftClick() {
  41. uni.navigateTo({
  42. url: '/pages/home/home'
  43. })
  44. },
  45. //获取流水
  46. getRunningWater() {
  47. this.request('WaterPage', {}, this.queryparams).then(res => {
  48. if (res.code == 200) {
  49. this.runningWaterList = res.result.records
  50. }
  51. })
  52. },
  53. //滑动到页面底部
  54. scrolltolower(){
  55. this.queryparams.pageSize += 10
  56. this.getRunningWater()
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .running-water {
  63. width: 750rpx;
  64. min-height: 100vh;
  65. // background-color: black;
  66. margin: 0 auto;
  67. background-size: 100%;
  68. background-repeat: no-repeat;
  69. .content {
  70. width: 96%;
  71. margin: 0 auto;
  72. }
  73. .running-water-list {
  74. display: flex;
  75. justify-content: space-between;
  76. flex-wrap: wrap;
  77. margin-top: 20rpx;
  78. .running-water-item {
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. box-sizing: border-box;
  83. padding: 15rpx;
  84. width: calc(50% - 15rpx);
  85. border: 1px solid #00000080;
  86. margin-bottom: 25rpx;
  87. image {
  88. width: 100rpx;
  89. height: 100rpx;
  90. }
  91. .descript {
  92. // color: #AEC43C;
  93. font-size: 36rpx;
  94. }
  95. .time {
  96. color: #989898;
  97. margin: 15rpx 0rpx;
  98. }
  99. .money-detail {
  100. // color: #3AA56B;
  101. font-size: 36rpx;
  102. }
  103. }
  104. }
  105. }
  106. </style>