tabulation.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <template>
  2. <view class="all">
  3. <view class="row">
  4. <view class="row1">
  5. <view class="shu">{{total || 0}}</view>
  6. <view class="wenben">{{$t('huiyuan.a1')}}</view>
  7. </view>
  8. <view class="row2">
  9. <view class="shu">{{group_num || 0}}</view>
  10. <view class="wenben">{{$t('huiyuan.a2')}}</view>
  11. </view>
  12. </view>
  13. <view class="rowT">
  14. <view class="row1">
  15. <view class="shu">{{totalLevel || 0}}</view>
  16. <view class="wenben">{{$t('huiyuan.a3')}}</view>
  17. </view>
  18. <view class="row2">
  19. <view class="shu">{{valid_user || 0}}</view>
  20. <view class="wenben">{{$t('huiyuan.a4')}}</view>
  21. </view>
  22. </view>
  23. <view class="list" v-for="(item, ind) in list" :key="ind">
  24. <view class="top">
  25. <view class="nc">{{item.nickname}}</view>
  26. <view class="">
  27. <image class="img" src="/static/shouye/huiyuan.png" mode=""></image>
  28. </view>
  29. </view>
  30. <view class="center" @click="navX">
  31. <view class="sj">{{item.time}}</view>
  32. <view class="xq">{{$t('huiyuan.a5')}}</view>
  33. <view class="">
  34. <image class="ima" src="/static/icon/jt.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="xian"></view>
  38. <view class="last">
  39. <view class="left">{{$t('huiyuan.a6')}}:</view>
  40. <view class="leftT">{{item.join_usdt}}</view>
  41. <view class="right">{{$t('huiyuan.a7')}}:</view>
  42. <view class="rightT">{{item.childCount}}</view>
  43. </view>
  44. </view>
  45. <view class="bto">
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import {
  51. mapState,
  52. mapMutations
  53. } from 'vuex';
  54. import {spread, getUserInfo} from "@/api/user.js"
  55. export default {
  56. data() {
  57. return {
  58. id: '',
  59. page: 1,
  60. limit: 10,
  61. list: [],
  62. group_num: '', //团队人数
  63. total: '', // 用户总数
  64. totalLevel: '', // 账户总数
  65. valid_user: '', // 有效账户
  66. };
  67. },
  68. onLoad(option) {
  69. this.id = option.id
  70. this.spread()
  71. uni.setNavigationBarTitle({
  72. title: this.$t("tab.b1"),
  73. });
  74. },
  75. //下拉刷新
  76. onPullDownRefresh() {
  77. let obj = this;
  78. //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
  79. setTimeout(function() {
  80. obj.loadCodeList();
  81. uni.stopPullDownRefresh(); //停止下拉刷新动画
  82. }, 1000);
  83. },
  84. computed: {
  85. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  86. },
  87. methods: {
  88. // 会员记录
  89. spread() {
  90. // const id = this.userInfo.id
  91. // console.log(this.userInfo,'dsadas');
  92. let that = this
  93. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  94. return
  95. }
  96. spread({
  97. page: that.page,
  98. limit: that.limit,
  99. // id: that.userInfo.uid,
  100. }).then(res => {
  101. let list = res.data.list
  102. console.log('list', list);
  103. let data = res.data
  104. console.log('1111111', data);
  105. this.group_num = data.group_num
  106. this.total = data.total
  107. this.totalLevel = data.totalLevel
  108. this.valid_user = data.valid_user
  109. if (list.length == that.limit) {
  110. that.loadingType = 'more'
  111. } else {
  112. that.loadingType = 'noMore'
  113. }
  114. that.loaded = true
  115. }).catch(e=>{
  116. console.log(e);
  117. })
  118. },
  119. navX() {
  120. uni.navigateTo({
  121. url: '/pages/user/vip/details'
  122. })
  123. }
  124. }
  125. };
  126. </script>
  127. <style lang="scss">
  128. .all {
  129. width: 750rpx;
  130. min-height: 100vh;
  131. background-color: $page-color-base;
  132. }
  133. .row {
  134. display: flex;
  135. justify-content: space-between;
  136. }
  137. .rowT {
  138. display: flex;
  139. justify-content: space-between;
  140. margin-top: 20rpx;
  141. }
  142. .row1 {
  143. width: 325rpx;
  144. height: 168rpx;
  145. background: #191A1F;
  146. border-radius: 10rpx;
  147. margin-left: 36rpx;
  148. }
  149. .wenben {
  150. height: 27rpx;
  151. font-size: 28rpx;
  152. font-weight: 500;
  153. color: #FFFFFF;
  154. margin-left: 107rpx;
  155. margin-top: 22rpx;
  156. }
  157. .shu {
  158. width: 52rpx;
  159. height: 35rpx;
  160. font-size: 46rpx;
  161. font-weight: bold;
  162. color: #FEB041;
  163. margin-left: 136rpx;
  164. margin-top: 43rpx;
  165. }
  166. .row2 {
  167. width: 325rpx;
  168. height: 168rpx;
  169. background: #191A1F;
  170. border-radius: 10rpx;
  171. margin-right: 36rpx;
  172. }
  173. .list {
  174. width: 684rpx;
  175. height: 262rpx;
  176. background: #191A1F;
  177. border-radius: 16rpx;
  178. margin-left: 36rpx;
  179. margin-top: 25rpx;
  180. }
  181. .top {
  182. display: flex;
  183. justify-content: start;
  184. }
  185. .nc {
  186. height: 31rpx;
  187. font-size: 32rpx;
  188. font-weight: bold;
  189. color: #FFFFFF;
  190. margin-left: 35rpx;
  191. padding-top: 40rpx;
  192. }
  193. .img {
  194. width: 100rpx;
  195. height: 32rpx;
  196. margin-left: 20rpx;
  197. margin-top: 46rpx;
  198. object-fit: cover;
  199. }
  200. .center {
  201. display: flex;
  202. justify-content: start;
  203. }
  204. .sj {
  205. margin-left: 34rpx;
  206. margin-top: 25rpx;
  207. height: 22rpx;
  208. float: length($list: 231rpx);
  209. font-size: 28rpx;
  210. font-weight: 500;
  211. color: #999999;
  212. }
  213. .xq {
  214. margin-top: 25rpx;
  215. margin-left: 290rpx;
  216. height: 26rpx;
  217. font-size: 28rpx;
  218. font-family: PingFang SC;
  219. font-weight: 500;
  220. color: #999999;
  221. float: length($list: 54rpx);
  222. }
  223. .ima {
  224. width: 13rpx;
  225. height: 19rpx;
  226. margin-top: 35rpx;
  227. margin-left: 20rpx;
  228. }
  229. .xian {
  230. width: 618rpx;
  231. height: 1rpx;
  232. background: #DDE1EB;
  233. opacity: 0.2;
  234. margin-left: 20rpx;
  235. margin-top: 30rpx;
  236. }
  237. .last {
  238. display: flex;
  239. justify-content: start;
  240. }
  241. .left {
  242. font-size: 28rpx;
  243. font-family: PingFang SC;
  244. font-weight: 500;
  245. color: #999999;
  246. margin-left: 36rpx;
  247. margin-top: 30rpx;
  248. }
  249. .leftT {
  250. font-size: 28rpx;
  251. font-weight: 500;
  252. color: #b98134;
  253. margin-top: 30rpx;
  254. }
  255. .right {
  256. font-size: 28rpx;
  257. font-weight: 500;
  258. color: #999999;
  259. margin-left: 200rpx;
  260. margin-top: 30rpx;
  261. }
  262. .rightT {
  263. font-size: 28rpx;
  264. font-weight: 500;
  265. color: #ffffff;
  266. margin-top: 30rpx;
  267. }
  268. </style>