friendsList.vue 4.1 KB

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