trainingCamp-active.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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="train">
  18. <div class="iphonetitle"> </div>
  19. <div id="app">
  20. <van-sticky>
  21. <van-nav-bar class="camp_unactive_title f16" :title="teaminfo.TeamName" v-if="toptitleisshow" right-text="营训规则" @click-right="rules" left-arrow @click-left="comeback">
  22. <template #left>
  23. <van-icon name="arrow-left" color="#fff" size="20"></van-icon>
  24. </template>
  25. </van-nav-bar>
  26. </van-sticky>
  27. <van-pull-refresh v-model="refreshing" @refresh="onRefresh" v-cloak>
  28. <div class="camp_unactive_titlebox rel activetitle">
  29. <div class="tips abs df">
  30. <div class="business df cm"><img src="./static/images/training-more.png" alt="">
  31. <div class="boxcenter dib">
  32. <div class="text c333 f12 tr df"><span>团队激活</span><span class="num f14">9</span></div>
  33. <div class="text c333 f12 tr df"> <span>团队排名</span><span class="num f14">9</span></div>
  34. </div>
  35. </div>
  36. <div class="business cm"><img src="./static/images/training-only.png" alt="">
  37. <div class="boxcenter dib">
  38. <div class="text c333 f12 tr df"><span>个人激活</span><span class="num f14">9</span></div>
  39. <div class="text c333 f12 tr df"> <span>个人排名</span><span class="num f14">9</span></div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="panel bgcfff abs">
  44. <div class="title df">
  45. <div>
  46. <div class="camp f18 c333 b">{{teaminfo.TeamName}}</div>
  47. <div class="slogan f12 c999">{{teaminfo.WatchWord}}</div>
  48. </div>
  49. <div class="tr vt">
  50. <button class="sign activelogo" v-if="teaminfo.Status === 1"> <img src="./static/images/index-camp-conduct.png" alt=""><span class="f12">进行中</span></button>
  51. <div style="opacity: 0;">这个div是为了布局</div>
  52. </div>
  53. </div>
  54. <div class="info">
  55. <div class="df dfsb ovh">
  56. <div class="f12 c666 flex2 mr12">
  57. <div>队长:{{teaminfo.captain}} {{teaminfo.makerCode}}</div>
  58. <div style="white-space:nowrap;">时间:{{teaminfo.EffectStartDate}}~{{teaminfo.EffectEndDate}}</div>
  59. </div>
  60. <div class="f12 c666">
  61. <div>人数:{{teaminfo.MinUserNum}}~{{teaminfo.MaxUserNum}}人</div>
  62. <div style="white-space:nowrap;">地点:{{teaminfo.Areas}}</div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <van-list v-model="loading" :finished="finished" finished-text="没有更多数据了" @load="onLoad" :immediate-check="false">
  69. <div class="camp_unactive_member pl16 pr16 activetitle_camp_title">
  70. <div class="title f16 b">团队成员<span class="f12 n">({{fullmembernum}}人)</span></div>
  71. <div>
  72. <div class="membercard df" v-for="item in fullmemberList" :key="item">
  73. <div class="userinfo"><img :src="item.HeadPhoto" alt="">
  74. <div class="boxcenter dib">
  75. <div class="top f14 c333 df">{{item.Name}}
  76. <div class="captain f12" v-if="item.IsTeamLeader === 1">队长</div><span class="ml12">{{item.Code}}</span>
  77. </div>
  78. <div class="bottom c999 f12">报名日期 {{item.EnterDate}}</div>
  79. </div>
  80. </div>
  81. <div class="usernum f14 c666">激活20户</div>
  82. </div>
  83. </div>
  84. </div>
  85. </van-list>
  86. </van-pull-refresh>
  87. </div>
  88. <script src="./static/js/klm-vv.min.js"></script>
  89. <script src="./static/js/appfunc.min.js"></script>
  90. <script src="./static/js/klm-axios-config.js"></script>
  91. <script src="./static/js/publicfn.js"></script>
  92. <script>
  93. function OnStart(){
  94. PublicLib.SetStatusBarStyle({type:'light', isShow:1});
  95. };
  96. Vue.use(vant.Lazyload);
  97. PublicLib.SetStatusBarStyle({type:'light', isShow:1});
  98. // 在 #app 标签下渲染一个按钮组件
  99. let app = new Vue({
  100. el: '#app',
  101. data() {
  102. return {
  103. toptitleisshow:true,
  104. //- 滚动加载
  105. loading: false,
  106. finished: false,
  107. //- 刷新
  108. refreshing: false,
  109. fullmembernum:0,
  110. teaminfo:{
  111. },
  112. fullmemberList:[
  113. ],
  114. pageinfo:{
  115. PageSize:10,
  116. PageNum:1
  117. },
  118. }
  119. },
  120. created() {
  121. this.getteaminfo();
  122. this.getmemberslist();
  123. },
  124. methods: {
  125. comeback(){
  126. PublicLib.GoBack({Level:1});
  127. },
  128. //- 点击规则
  129. rules(){
  130. PublicLib.Goto({Url:'trainingCamp-rules'});
  131. },
  132. onLoad() {
  133. if (this.refreshing) {
  134. this.fullmemberList = [];
  135. this.refreshing = false;
  136. this.pageinfo.PageNum = 0;
  137. };
  138. this.pageinfo.PageNum++;
  139. this.getmemberslist();
  140. },
  141. onRefresh() {
  142. // 清空列表数据
  143. this.finished = false;
  144. // 重新加载数据
  145. // 将 loading 设置为 true,表示处于加载状态
  146. this.loading = true;
  147. this.onLoad();
  148. },
  149. //- 获取团队信息
  150. async getteaminfo(){
  151. PublicLib.ShowLoading({Message:''});
  152. const Id = PublicLib.getCookieInfo('trainingCampteamId');
  153. const res = await getRequest('api/v1/teamapply/detail',JSON.stringify({Id}));
  154. if(res.status !== '1') return tips('获取团队详情失败,请重试!');
  155. PublicLib.HideLoading();
  156. this.teaminfo = res.data;
  157. //- this.teaminfo.EffectStartDate = '2020-02-17';
  158. //- this.teaminfo.EffectEndDate= '2020-02-17';
  159. },
  160. //- 获取队员列表
  161. async getmemberslist(){
  162. const TeamId = PublicLib.getCookieInfo('trainingCampteamId');
  163. const res = await getRequest('api/v1/teamofferapply/memberlist',JSON.stringify({TeamId,...this.pageinfo}));
  164. if(res.status !== '1') return tips('获取成员列表失败,请重试!');
  165. if(res.data.length<this.pageinfo.PageSize) {
  166. this.finished = true;
  167. };
  168. this.fullmemberList.push(...res.data);
  169. //- this.fullmembernum = res.other.Count
  170. this.loading = false;
  171. },
  172. },
  173. });
  174. </script>
  175. </body>
  176. </html>