evidence.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template >
  2. <view :class="[AppTheme]">
  3. <view>
  4. <view class="bgf" v-for="(item, index) in hkInfo" :key="index">
  5. <view class="pay-main">
  6. <view class="time">{{ item.ctime }}</view>
  7. <view class="price">
  8. 汇款金额
  9. <text class="text-neutral">:¥{{ item.money }}</text>
  10. </view>
  11. </view>
  12. <view class="fle-bg" v-if="item.thumb_shot != 20 && item.thumb_shot != 10 && item.thumb_shot != 50 && item.thumb_shot != 467668">
  13. <view v-for="item2 in item.thumb_shot" :key="item2">
  14. <image :src="item2" alt="" class="bg" @click="imgListPreview(item2)"></image>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. <u-loadmore :status="more" />
  20. </view>
  21. </template>
  22. <script>
  23. import fundsApi from '@/api/wall/index.js';
  24. export default {
  25. data() {
  26. return {
  27. primary:this.$theme.primary,
  28. settingFile:getApp().globalData.siteinfo,
  29. nodata: '',
  30. more: 'more', //@value more loading前 @value loading loading中 @value 'noMore' 没有更多了
  31. p: 1,
  32. pagesize: 10,
  33. hkInfo: []
  34. };
  35. },
  36. onLoad() {
  37. this.getHkInfo();
  38. },
  39. onReachBottom() {
  40. this.p++;
  41. this.more = 'loading';
  42. setTimeout(() => {
  43. this.getHkInfo();
  44. }, 500);
  45. },
  46. methods: {
  47. imgListPreview(item) {
  48. let urlList = [];
  49. urlList.push(item); //push中的参数为 :src="item.img_url" 中的图片地址
  50. uni.previewImage({
  51. indicator: 'number',
  52. loop: true,
  53. urls: urlList
  54. });
  55. },
  56. getHkInfo() {
  57. fundsApi
  58. .transferindex({
  59. p: this.p,
  60. pagesize: this.pagesize
  61. })
  62. .then(res => {
  63. if (res.status == 200) {
  64. this.hkInfo = this.hkInfo.concat(res.data);
  65. if (res.data.length == 0) {
  66. this.more = 'noMore';
  67. }
  68. if (res.data.length <= 10) {
  69. this.more = 'noMore';
  70. }
  71. }
  72. });
  73. }
  74. },
  75. onPullDownRefresh() {
  76. this.p=1;
  77. this.hkInfo = [];
  78. this.getHkInfo();
  79. setTimeout(() => {
  80. uni.stopPullDownRefresh();
  81. }, 600);
  82. },
  83. };
  84. </script>
  85. <style>
  86. page {
  87. background-color: #f1f1f1;
  88. }
  89. .aui-bar {
  90. position: fixed;
  91. }
  92. .pay-main {
  93. width: calc(100% - 104rpx);
  94. margin: 0 auto;
  95. margin-top: 22rpx;
  96. margin-bottom: 20rpx;
  97. display: flex;
  98. justify-content: space-between;
  99. background-color: #ffffff;
  100. }
  101. .pay-main .time {
  102. font-size: 28rpx;
  103. font-family: PingFang SC;
  104. color: rgba(153, 153, 153, 1);
  105. }
  106. .pay-main .price {
  107. font-size: 24rpx;
  108. font-family: PingFang SC;
  109. font-weight: bold;
  110. }
  111. .fle-bg {
  112. width: calc(100% - 104rpx);
  113. margin: 0 auto;
  114. display: flex;
  115. justify-content: flex-start;
  116. flex-wrap: wrap;
  117. background-color: #ffffff;
  118. }
  119. .fle-bg .bg {
  120. margin: 10rpx;
  121. width: 190rpx;
  122. height: 190rpx;
  123. border-radius: 10rpx;
  124. }
  125. .bgf {
  126. margin-top: 10rpx;
  127. background-color: #ffffff;
  128. overflow: hidden;
  129. }
  130. .nodata {
  131. text-align: center;
  132. }
  133. </style>