invite.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <view class="page">
  3. <view class="topBody">
  4. <view class="header">
  5. </view>
  6. <view class="myinfo">
  7. <view class="line"></view>
  8. <view style="margin-top: 20rpx;" class="imgList">
  9. <image style="height: 160rpx;" src="../../static/w3/invite_txt.png" mode="heightFix" />
  10. <image style="height: 160rpx;" src="../../static/w3/goldenCoin.png" mode="heightFix" />
  11. </view>
  12. <view style="margin-top: 24rpx;" class="numlist">
  13. <view class="left">
  14. <view class="num">
  15. <text>{{myinfo.num_gmb_today}}</text>
  16. <view class="name">今日获得暗物质</view>
  17. </view>
  18. </view>
  19. <view class="left right">
  20. <view class="num">
  21. <text>{{myinfo.num_gmb_all}}</text>
  22. <view class="name">累计获得暗物质</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view style="margin-top: 36rpx;" class="inviteTitle" @click="goPage('/pages/w3/teamProfit')">
  27. <view class="left">
  28. <text style="font-size: 28rpx;color: #FFFFFF;">邀请战队奖励</text>
  29. </view>
  30. <view class="right">
  31. <text style="font-size: 18rpx;color: #999999;">邀请战队成员开启探索卡可获得暗物质奖励</text>
  32. <image class="icon" src="../../static/me/arrow_right.png" mode="heightFix" />
  33. </view>
  34. </view>
  35. <view class="friendList">
  36. <view class="title" @click="goPage('/pages/w3/friendsList')">
  37. <view class="left">
  38. <text style="font-size: 36rpx;color: #FFFFFF;">我的战队</text>
  39. </view>
  40. <view class="right">
  41. <text style="font-size: 28rpx;color: #FFFFFF;">更多</text>
  42. <image class="icon" src="../../static/me/arrow_right.png" mode="heightFix" />
  43. </view>
  44. </view>
  45. <view class="numlist2">
  46. <view v-if="nodata" class="empty">
  47. <view class="bg"></view>
  48. <text style="margin-top: 0rpx;font-size: 24rpx;color: #999999;">暂无数据</text>
  49. </view>
  50. <view class="item" v-for="(item, index) in zt_list" :key="index" v-if="index < 4">
  51. <view class="info">
  52. <view class="left">
  53. <image class="img" src="../../static/w3/w3_1.png" mode="heightFix" />
  54. <view class="nameList">
  55. <view class="num">
  56. <view class="name">
  57. <text>{{ item.nickname }}</text>
  58. <image v-if="item.is_vip===2" class="icon"
  59. src="../../static/w3/w3_black_vip.png" mode="heightFix" />
  60. <image v-else-if="item.is_vip===1" class="icon"
  61. src="../../static/w3/w3_vip.png" mode="heightFix" />
  62. </view>
  63. <view class="data">{{item.login_time}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="right">
  68. <view class="txt">
  69. <text v-if="item.is_idcheck == 2">已实名</text>
  70. <text v-else>未实名</text>
  71. </view>
  72. <view class="txt txt1">
  73. <text>{{item.mobile}}</text>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="line">
  78. </view>
  79. </view>
  80. </view>
  81. <image style="height: 42rpx; width: 690rpx;margin-top: 0rpx;"
  82. src="../../static/w3/invite_bg_bottom.png"></image>
  83. </view>
  84. <view class="btn_submit" @click="goPage('/pages/w3/share_img')">
  85. <image class="icon" src="../../static/w3/blackarrow.png" mode="heightFix" />
  86. <text>邀请战队成员</text>
  87. </view>
  88. </view>
  89. <view class="blankHeight"></view>
  90. </view>
  91. <!-- 提示框 -->
  92. <DialogBox ref="DialogBox"></DialogBox>
  93. </view>
  94. </template>
  95. <script>
  96. export default {
  97. components: {},
  98. data() {
  99. return {
  100. myinfo: {},
  101. sel: 1,
  102. nodata: true,
  103. zt_list: [],
  104. X_Info: {
  105. todayGet: 10,
  106. historyGet: 199999,
  107. },
  108. friendsInfo: [{
  109. reason: "txt.M币充值",
  110. p_name: "陈东大",
  111. vip: 1,
  112. value: 100,
  113. phoneNum: "133*****212",
  114. data: "2023-1-12 15:00"
  115. }]
  116. }
  117. },
  118. onLoad() {
  119. // setTimeout(function() {
  120. // uni.setNavigationBarColor({
  121. // frontColor: '#ffffff',
  122. // backgroundColor: '#00000000',
  123. // animation: {
  124. // duration: 400,
  125. // timingFunc: 'easeIn'
  126. // }
  127. // })
  128. // }, 200);
  129. },
  130. onShow() {
  131. this.loadInfo();
  132. this.loadZtList();
  133. },
  134. methods: {
  135. onBack() {},
  136. chkSel() {
  137. if (this.sel == 1) {
  138. this.sel = 0;
  139. } else {
  140. this.sel = 1;
  141. }
  142. },
  143. goPage(page) {
  144. uni.navigateTo({
  145. url: page,
  146. })
  147. },
  148. loadInfo() {
  149. console.log({
  150. uuid: getApp().globalData.uuid,
  151. skey: getApp().globalData.skey
  152. });
  153. uni.request({
  154. url: this.$apiHost + '/Web/getinfo',
  155. data: {
  156. uuid: getApp().globalData.uuid,
  157. type: 'tuan'
  158. },
  159. header: {
  160. "content-type": "application/json", //自定义请求头信息
  161. },
  162. success: (res) => {
  163. console.log("----:", res.data);
  164. this.myinfo = res.data;
  165. },
  166. complete: (com) => {
  167. // uni.hideLoading();
  168. },
  169. fail: (e) => {
  170. console.log("----e:", e);
  171. }
  172. });
  173. },
  174. loadZtList() {
  175. console.log({
  176. uuid: getApp().globalData.uuid,
  177. skey: getApp().globalData.skey
  178. });
  179. uni.request({
  180. url: this.$apiHost + '/Xweb/ztlist',
  181. data: {
  182. uuid: getApp().globalData.uuid
  183. },
  184. header: {
  185. "content-type": "application/json", //自定义请求头信息
  186. },
  187. success: (res) => {
  188. console.log("----:", res.data);
  189. this.zt_list = res.data.list;
  190. if (res.data.list != null && res.data.list != undefined) {
  191. this.nodata = false;
  192. }
  193. },
  194. complete: (com) => {
  195. // uni.hideLoading();
  196. },
  197. fail: (e) => {
  198. console.log("----e:", e);
  199. }
  200. });
  201. },
  202. }
  203. }
  204. </script>
  205. <style scoped lang="scss">
  206. @import 'invite.scss';
  207. </style>