tabulation.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. let that = this
  91. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  92. return
  93. }
  94. spread({
  95. page: that.page,
  96. limit: that.limit,
  97. // id: that.userInfo.uid,
  98. }).then(res => {
  99. let data = res.data
  100. console.log('1111111', data);
  101. this.group_num = data.group_num
  102. this.total = data.total
  103. this.totalLevel = data.totalLevel
  104. this.valid_user = data.valid_user
  105. this.list = res.data.list
  106. console.log('list', this.list);
  107. }).catch(e=>{
  108. console.log(e);
  109. })
  110. },
  111. navX() {
  112. uni.navigateTo({
  113. url: '/pages/user/vip/details'
  114. })
  115. }
  116. }
  117. };
  118. </script>
  119. <style lang="scss">
  120. .all {
  121. width: 750rpx;
  122. min-height: 100vh;
  123. background-color: $page-color-base;
  124. }
  125. .row {
  126. display: flex;
  127. justify-content: space-between;
  128. }
  129. .rowT {
  130. display: flex;
  131. justify-content: space-between;
  132. margin-top: 20rpx;
  133. }
  134. .row1 {
  135. width: 325rpx;
  136. height: 168rpx;
  137. background: #191A1F;
  138. border-radius: 10rpx;
  139. margin-left: 36rpx;
  140. }
  141. .wenben {
  142. height: 27rpx;
  143. font-size: 28rpx;
  144. font-weight: 500;
  145. color: #FFFFFF;
  146. margin-left: 107rpx;
  147. margin-top: 22rpx;
  148. }
  149. .shu {
  150. width: 52rpx;
  151. height: 35rpx;
  152. font-size: 46rpx;
  153. font-weight: bold;
  154. color: #FEB041;
  155. margin-left: 136rpx;
  156. margin-top: 43rpx;
  157. }
  158. .row2 {
  159. width: 325rpx;
  160. height: 168rpx;
  161. background: #191A1F;
  162. border-radius: 10rpx;
  163. margin-right: 36rpx;
  164. }
  165. .list {
  166. width: 684rpx;
  167. height: 262rpx;
  168. background: #191A1F;
  169. border-radius: 16rpx;
  170. margin-left: 36rpx;
  171. margin-top: 25rpx;
  172. }
  173. .top {
  174. display: flex;
  175. justify-content: start;
  176. }
  177. .nc {
  178. height: 31rpx;
  179. font-size: 32rpx;
  180. font-weight: bold;
  181. color: #FFFFFF;
  182. margin-left: 35rpx;
  183. padding-top: 40rpx;
  184. }
  185. .img {
  186. width: 100rpx;
  187. height: 32rpx;
  188. margin-left: 20rpx;
  189. margin-top: 46rpx;
  190. object-fit: cover;
  191. }
  192. .center {
  193. display: flex;
  194. justify-content: start;
  195. }
  196. .sj {
  197. margin-left: 34rpx;
  198. margin-top: 25rpx;
  199. height: 22rpx;
  200. float: length($list: 231rpx);
  201. font-size: 28rpx;
  202. font-weight: 500;
  203. color: #999999;
  204. }
  205. .xq {
  206. margin-top: 25rpx;
  207. margin-left: 290rpx;
  208. height: 26rpx;
  209. font-size: 28rpx;
  210. font-family: PingFang SC;
  211. font-weight: 500;
  212. color: #999999;
  213. float: length($list: 54rpx);
  214. }
  215. .ima {
  216. width: 13rpx;
  217. height: 19rpx;
  218. margin-top: 35rpx;
  219. margin-left: 20rpx;
  220. }
  221. .xian {
  222. width: 618rpx;
  223. height: 1rpx;
  224. background: #DDE1EB;
  225. opacity: 0.2;
  226. margin-left: 20rpx;
  227. margin-top: 30rpx;
  228. }
  229. .last {
  230. display: flex;
  231. justify-content: start;
  232. }
  233. .left {
  234. font-size: 28rpx;
  235. font-family: PingFang SC;
  236. font-weight: 500;
  237. color: #999999;
  238. margin-left: 36rpx;
  239. margin-top: 30rpx;
  240. }
  241. .leftT {
  242. font-size: 28rpx;
  243. font-weight: 500;
  244. color: #b98134;
  245. margin-top: 30rpx;
  246. }
  247. .right {
  248. font-size: 28rpx;
  249. font-weight: 500;
  250. color: #999999;
  251. margin-left: 200rpx;
  252. margin-top: 30rpx;
  253. }
  254. .rightT {
  255. font-size: 28rpx;
  256. font-weight: 500;
  257. color: #ffffff;
  258. margin-top: 30rpx;
  259. }
  260. </style>