details.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="">
  3. <view class="list margin-t-20 margin-c-30" v-for="(item, ind) in list" :key="ind">
  4. <view class="top flex">
  5. <view class="nc clamp">{{item.nickname}}</view>
  6. <image class="img margin-l-20" src="/static/shouye/huiyuan.png" mode=""></image>
  7. </view>
  8. <navigator :url="`/pages/user/vip/details?id=${item.uid}`">
  9. <view class="center padding-v-30 flex" >
  10. <view class="sj">{{item.time}}</view>
  11. <view class="flex-start">
  12. <view class="xq margin-r-10">{{$t('huiyuan.a5')}}</view>
  13. <image class="ima" src="/static/icon/jt.png" mode="scaleToFill"></image>
  14. </view>
  15. </view>
  16. </navigator>
  17. <view class="last flex padding-t-30">
  18. <view>
  19. <text class="left">{{$t('huiyuan.a6')}}:</text>
  20. <text class="leftT">{{item.join_usdt}}</text>
  21. </view>
  22. <view>
  23. <text class="right">{{$t('huiyuan.a7')}}:</text>
  24. <text class="rightT">{{item.childCount}}</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {
  32. spread_se
  33. } from "@/api/user.js"
  34. export default {
  35. data() {
  36. return {
  37. id: '',
  38. page: 1,
  39. limit: 10,
  40. loadingType: 'more',
  41. loaded: false,
  42. list: [],
  43. };
  44. },
  45. onLoad(option) {
  46. console.log('载入');
  47. this.id = option.id;
  48. this.getList()
  49. },
  50. onReachBottom() {
  51. this.getList()
  52. },
  53. methods:{
  54. // 获取列表
  55. getList(){
  56. let that = this
  57. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  58. return
  59. }
  60. that.loadingType = "loading";
  61. spread_se({
  62. page: that.page,
  63. limit: that.limit,
  64. },that.id).then(({
  65. data
  66. }) => {
  67. let list = data.list
  68. that.list = that.list.concat(list)
  69. if (list.length == that.limit) {
  70. that.loadingType = 'more'
  71. } else {
  72. that.loadingType = 'noMore'
  73. }
  74. that.loaded = true
  75. }).catch(e => {
  76. console.log(e);
  77. })
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss">
  83. .list {
  84. background: #191A1F;
  85. border-radius: 16rpx;
  86. padding: 30rpx;
  87. .top {
  88. .nc {
  89. font-size: $font-lg;
  90. font-weight: bold;
  91. color: #FFFFFF;
  92. flex-grow: 1;
  93. }
  94. .img {
  95. flex-shrink: 0;
  96. width: 100rpx;
  97. height: 32rpx;
  98. }
  99. }
  100. .center {
  101. border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  102. .ima {
  103. width: 13rpx;
  104. height: 19rpx;
  105. }
  106. }
  107. .center,.last{
  108. font-weight: 500;
  109. font-size: $font-base;
  110. color: #999999;
  111. }
  112. .last {
  113. .leftT {
  114. color: #b98134;
  115. }
  116. .rightT {
  117. color: #ffffff;
  118. }
  119. }
  120. }
  121. </style>