creater-norealauth.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>未实名-我的创客-爽客邦</title>
  6. <meta name="keywords" content="未实名-我的创客-爽客邦">
  7. <meta name="description" content="未实名-我的创客-爽客邦">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="未实名-我的创客-爽客邦">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back">
  18. <div id="app">
  19. <van-nav-bar class="camp_title user_title_normal" title="未实名创客" @click-left="backbtn" left-arrow v-if="toptitleisshow">
  20. <template #left>
  21. <van-icon name="arrow-left" color="#fff" size="20"></van-icon>
  22. </template>
  23. </van-nav-bar>
  24. <div class="creater-list-wrapper" v-cloak>
  25. <van-sticky>
  26. <div class="pt8 pb8 pl16 pr16 bgcfff f14 c333 b">未实名总数:{{norealauthcount}}人</div>
  27. </van-sticky>
  28. <van-pull-refresh v-model="refreshing" @refresh="onRefresh" :class="creaters.length === 0 ? 'isnodata':''" style="padding-bottom: 15vh">
  29. <van-list v-model="loading" :finished="finished" finished-text="没有更多数据了" @load="onLoad" :immediate-check="false">
  30. <van-empty class="custom-image" image="./static/images/empty-img.png" description="暂无数据" v-if="isnodata"></van-empty>
  31. <van-cell-group :border="false">
  32. <van-cell v-for="item,index in creaters" center>
  33. <template #icon>
  34. <div class="mr12">
  35. <van-image :src="item.HeadPhoto" fit="cover" lazy-load round>
  36. <template v-slot:loading><img src="./static/images/user-img@3x.png" alt="" width="100%"></template>
  37. </van-image>
  38. </div>
  39. </template>
  40. <template #title><span class="f16 c333 vb">{{item.phoneNum}}</span></template>
  41. <template #label><span class="f12 c999 vb">注册时间:{{item.CreateDate}}</span></template>
  42. <template #right-icon>
  43. <div class="contact f12" @click="takephone(item.Mobile)">联系TA</div>
  44. </template>
  45. </van-cell>
  46. </van-cell-group>
  47. </van-list>
  48. </van-pull-refresh>
  49. </div>
  50. </div>
  51. <script src="./static/js/klm-vv.min.js"></script>
  52. <script src="./static/js/klm-axios-config.js"></script>
  53. <script>
  54. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  55. // 可以通过下面的方式手动注册
  56. Vue.use(vant.Lazyload);
  57. // 在 #app 标签下渲染一个按钮组件
  58. let app = new Vue({
  59. el: '#app',
  60. data() {
  61. return {
  62. isnodata:false,
  63. toptitleisshow:true,
  64. active: 0,
  65. searchContent: '',
  66. isShow: false,
  67. creaters: [
  68. ],
  69. loading: false,
  70. finished: false,
  71. refreshing: false,
  72. pageinfo:{
  73. PageSize:10,
  74. PageNum:1
  75. },
  76. norealauthcount: 3
  77. };
  78. },
  79. created() {
  80. this.getunrealauthlist();
  81. //- this.norealauthcount = PublicLib.getCookieInfo('norealauth');
  82. },
  83. methods: {
  84. onLoad() {
  85. if (this.refreshing) {
  86. this.creaters = [];
  87. this.refreshing = false;
  88. }
  89. this.pageinfo.PageNum++;
  90. this.getunrealauthlist();
  91. },
  92. onRefresh() {
  93. this.pageinfo.PageNum = 0;
  94. // 清空列表数据
  95. this.creaters = [];
  96. // 清空列表数据
  97. this.finished = false;
  98. // 重新加载数据
  99. // 将 loading 设置为 true,表示处于加载状态
  100. this.loading = true;
  101. this.onLoad();
  102. },
  103. async getunrealauthlist(){
  104. PublicLib.ShowLoading({Message:''});
  105. const UserId = PublicLib.getCookieInfo('userId');
  106. const res = await getRequest('/api/v1/users/mymakerfornotauth',JSON.stringify({...this.pageinfo,UserId}));
  107. if(res.status !== '1') return tips('获取未实名创客列表失败,请重试!');
  108. PublicLib.HideLoading();
  109. res.data.forEach(obj=>{
  110. obj.phoneNum = hidemiddlenum(obj.Mobile,3,4)
  111. });
  112. if(res.data.length < 10 ){
  113. this.finished = true;
  114. };
  115. this.creaters.push(...res.data);
  116. this.creaters = [
  117. {
  118. Id: 2, //Id
  119. CreateDate: "2020-12-25", //创建时间
  120. HeadPhoto: " http://test.ap.shuangkebang.com/default.png", //头像
  121. phoneNum: "147****9364", //真实姓名
  122. ThisMonthTrade: "1520.12", //本月交易额
  123. Mobile:'14781419364',
  124. },
  125. {
  126. Id: 3, //Id
  127. CreateDate: "2020-12-22", //创建时间
  128. HeadPhoto: " http://test.ap.shuangkebang.com/default.png", //头像
  129. phoneNum: "133****3195", //真实姓名
  130. ThisMonthTrade: "1820.12",//本月交易额
  131. Mobile:'13308013195',
  132. },
  133. {
  134. Id: 4, //Id
  135. CreateDate: "2020-12-17", //创建时间
  136. HeadPhoto: " http://test.ap.shuangkebang.com/default.png", //头像
  137. phoneNum: "188****5309", //真实姓名
  138. ThisMonthTrade: "2520.12", //本月交易额
  139. Mobile:'18876925309',
  140. },
  141. ]
  142. this.loading = false;
  143. if(this.creaters.length === 0) {this.isnodata = true}else{this.isnodata = false};
  144. },
  145. backbtn(){
  146. PublicLib.GoBack({Level:1});
  147. },
  148. takephone(phonenum){
  149. console.log(phonenum);
  150. PublicLib.PhoneCall(phonenum);
  151. }
  152. }
  153. });
  154. </script>
  155. </body>
  156. </html>