creater-norealauth1.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 pb0 ovh">
  18. <div class="iphonetitle"> </div>
  19. <div id="app">
  20. <van-nav-bar class="camp_title user_title_normal" title="未实名创客" @click-left="backbtn" left-arrow v-if="toptitleisshow">
  21. <template #left>
  22. <van-icon name="arrow-left" color="#333" size="20"></van-icon>
  23. </template>
  24. </van-nav-bar>
  25. <div class="creater-list-wrapper" v-cloak>
  26. <van-sticky>
  27. <div class="pt8 pb8 pl16 pr16 bgcfff f14 c333 b">未实名总数:{{norealauthcount}}人</div>
  28. </van-sticky>
  29. <div class="merchant_active">
  30. <van-pull-refresh v-model="refreshing" @refresh="onRefresh" :class="creaters.length === 0 ? 'isnodata':''" style="padding-bottom: 10vh">
  31. <van-list v-model="loading" :finished="finished" finished-text="没有更多数据了" @load="onLoad" :immediate-check="false">
  32. <van-empty class="custom-image" image="./static/images/empty-img.png" description="暂无数据" v-if="isnodata"></van-empty>
  33. <van-cell-group :border="false">
  34. <van-cell v-for="item,index in creaters" center>
  35. <template #icon>
  36. <div class="mr12">
  37. <van-image :src="item.HeadPhoto" fit="cover" lazy-load round>
  38. <template v-slot:loading><img src="./static/images/user-img@3x.png" alt="" width="100%"></template>
  39. </van-image>
  40. </div>
  41. </template>
  42. <template #title><span class="f16 c333 vb">{{item.phoneNum}}</span></template>
  43. <template #label><span class="f12 c999 vb">注册时间:{{item.CreateDate}}</span></template>
  44. <template #right-icon>
  45. <div class="contact f12" @click="takephone(item.Mobile)">联系TA</div>
  46. </template>
  47. </van-cell>
  48. </van-cell-group>
  49. </van-list>
  50. </van-pull-refresh>
  51. </div>
  52. </div>
  53. </div>
  54. <script src="./static/js/klm-vv.min.js"></script>
  55. <script src="./static/js/appfunc.min.js"></script>
  56. <script src="./static/js/klm-axios-config.js"></script>
  57. <script src="./static/js/publicfn.js"></script>
  58. <script>
  59. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  60. // 可以通过下面的方式手动注册
  61. Vue.use(vant.Lazyload);
  62. //--- PublicLib.SetStatusBarStyle({type:'light', isShow:1});
  63. // 在 #app 标签下渲染一个按钮组件
  64. let app = new Vue({
  65. el: '#app',
  66. data() {
  67. return {
  68. isnodata:true,
  69. toptitleisshow:true,
  70. active: 0,
  71. searchContent: '',
  72. isShow: false,
  73. creaters: [
  74. ],
  75. loading: false,
  76. finished: false,
  77. refreshing: false,
  78. pageinfo:{
  79. PageSize:10,
  80. PageNum:1
  81. },
  82. norealauthcount: 0
  83. };
  84. },
  85. created() {
  86. //- this.getunrealauthlist();
  87. this.norealauthcount = PublicLib.getCookieInfo('norealauth');
  88. },
  89. methods: {
  90. onLoad() {
  91. if (this.refreshing) {
  92. this.creaters = [];
  93. this.refreshing = false;
  94. }
  95. this.pageinfo.PageNum++;
  96. this.getunrealauthlist();
  97. },
  98. onRefresh() {
  99. this.pageinfo.PageNum = 0;
  100. // 清空列表数据
  101. this.creaters = [];
  102. // 清空列表数据
  103. this.finished = false;
  104. // 重新加载数据
  105. // 将 loading 设置为 true,表示处于加载状态
  106. this.loading = true;
  107. this.onLoad();
  108. },
  109. async getunrealauthlist(){
  110. PublicLib.ShowLoading({Message:''});
  111. const UserId = PublicLib.getCookieInfo('userId');
  112. const res = await getRequest('api/v1/users/mymakerfornotauth',JSON.stringify({...this.pageinfo,UserId}));
  113. if(res.status !== '1') return tips('获取未实名创客列表失败,请重试!');
  114. PublicLib.HideLoading();
  115. res.data.forEach(obj=>{
  116. obj.phoneNum = hidemiddlenum(obj.Mobile,3,4)
  117. });
  118. if(res.data.length < 10 ){
  119. this.finished = true;
  120. };
  121. this.creaters.push(...res.data);
  122. this.loading = false;
  123. if(this.creaters.length === 0) {this.isnodata = true}else{this.isnodata = false};
  124. },
  125. backbtn(){
  126. PublicLib.GoBack({Level:1});
  127. },
  128. takephone(phonenum){
  129. PublicLib.PhoneCall(phonenum);
  130. }
  131. }
  132. });
  133. </script>
  134. </body>
  135. </html>