friendsList.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="page">
  3. <view class="topBody">
  4. <view class="header">
  5. </view>
  6. <view class="myinfo">
  7. <view class="friendList">
  8. <view class="title">
  9. <view class="left">
  10. <text style="font-size: 36rpx;color: #FFFFFF;">累计邀请{{num_zt}}人</text>
  11. </view>
  12. <view class="right">
  13. </view>
  14. </view>
  15. <view class="numlist2"
  16. :style="{ backgroundImage: 'url(../../static/w3/invite_bg.png)', backgroundSize: '100% ' + (friendsInfo.length * 140) + 'rpx', backgroundPosition: 'bottom' }">
  17. <view v-if="friendsInfo.length<=0" class="empty">
  18. <view class="bg"></view>
  19. <text style="margin-top: 40rpx;font-size: 24rpx;color: #999999;">暂无数据</text>
  20. </view>
  21. <view v-else class="item" v-for="(item, index) in zt_list" :key="index">
  22. <view class="info">
  23. <view class="left">
  24. <image class="img" src="../../static/w3/w3_1.png" mode="heightFix" />
  25. <view class="nameList">
  26. <view class="num">
  27. <view class="name">
  28. <text>{{ item.nickname }}</text>
  29. <image v-if="item.is_vip===2" class="icon"
  30. src="../../static/w3/w3_black_vip.png" mode="heightFix" />
  31. <image v-else-if="item.is_vip===1" class="icon"
  32. src="../../static/w3/w3_vip.png" mode="heightFix" />
  33. </view>
  34. <view class="data">{{item.login_time}}</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="right">
  39. <view class="txt">
  40. <text v-if="item.is_idcheck == 2">已实名</text>
  41. <text v-else>未实名</text>
  42. </view>
  43. <view class="txt txt1">
  44. <text>{{item.mobile}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="line">
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <image style="height: 42rpx; width: 690rpx;margin-top: 0rpx;" src="../../static/w3/invite_bg_bottom.png"
  54. mode="widthFix"></image>
  55. </view>
  56. <view class="blankHeight"></view>
  57. </view>
  58. <!-- 提示框 -->
  59. <DialogBox ref="DialogBox"></DialogBox>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. components: {},
  65. data() {
  66. return {
  67. title: '',
  68. sel: 1,
  69. zt_list: [],
  70. num_zt: 0,
  71. X_Info: {
  72. todayGet: 10,
  73. historyGet: 199999,
  74. },
  75. friendsInfo: [{
  76. reason: "txt.M币充值",
  77. p_name: "陈东大",
  78. vip: 1,
  79. value: 100,
  80. phoneNum: "133*****212",
  81. data: "2023-1-12 15:00"
  82. }, ]
  83. }
  84. },
  85. onLoad() {
  86. // setTimeout(function() {
  87. // uni.setNavigationBarColor({
  88. // frontColor: '#ffffff',
  89. // backgroundColor: '#00000000',
  90. // animation: {
  91. // duration: 400,
  92. // timingFunc: 'easeIn'
  93. // }
  94. // })
  95. // }, 200);
  96. this.loadZtList();
  97. },
  98. onShow() {},
  99. methods: {
  100. onBack() {},
  101. chkSel() {
  102. if (this.sel == 1) {
  103. this.sel = 0;
  104. } else {
  105. this.sel = 1;
  106. }
  107. },
  108. loadZtList() {
  109. console.log({
  110. uuid: getApp().globalData.uuid,
  111. skey: getApp().globalData.skey
  112. });
  113. uni.request({
  114. url: this.$apiHost + '/Xweb/ztlist',
  115. data: {
  116. uuid: getApp().globalData.uuid
  117. },
  118. header: {
  119. "content-type": "application/json", //自定义请求头信息
  120. },
  121. success: (res) => {
  122. console.log("----:", res.data);
  123. this.zt_list = res.data.list;
  124. this.num_zt = res.data.num_zt;
  125. },
  126. complete: (com) => {
  127. // uni.hideLoading();
  128. },
  129. fail: (e) => {
  130. console.log("----e:", e);
  131. }
  132. });
  133. },
  134. }
  135. }
  136. </script>
  137. <style scoped lang="scss">
  138. @import 'friendsList.scss';
  139. </style>