invite.vue 6.6 KB

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