trainingCamp-signup.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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="pb0 ovh" style="padding-top:0;">
  18. <div id="app" v-cloak>
  19. <van-nav-bar class="training_sign_title" title="我要报名" @click-left="backrank" v-if="toptitleisshow" left-arrow>
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="training_camp cm">
  23. <div class="signcard bgcfff df">
  24. <div class="title c333 f18">{{campinfo.TeamName}}</div>
  25. <div class="slogan f12 c999">{{campinfo.WatchWord}}</div>
  26. <div class="teaminfo f12 c666 firstinfo">队长: {{campinfo.RealName}} {{campinfo.MakerCode}}</div>
  27. <div class="teaminfo f12 c666">人数: {{campinfo.MinUserNum}}~{{campinfo.MaxUserNum}}人</div>
  28. <div class="teaminfo f12 c666">地点: {{campinfo.Areas}}</div>
  29. <div class="teaminfo f12 c666">时间: {{campinfo.EnterStartDate}}~{{campinfo.EnterEndDate}}</div>
  30. <div class="tips tc f12">报名通过后将无法取消~</div>
  31. <div class="df agreen">
  32. <van-checkbox v-model="ischecked">我已阅读并同意</van-checkbox>
  33. <div class="rules f12" @click="rules">营训规则</div>
  34. </div>
  35. <van-button class="sign f14 cfff" :disabled="ischecked ? false : true" @click="sign">立即报名</van-button>
  36. </div>
  37. </div>
  38. </div>
  39. <script src="./static/js/klm-vv.min.js"></script>
  40. <script src="./static/js/appfunc.min.js"></script>
  41. <script src="./static/js/klm-axios-config.js"></script>
  42. <script src="./static/js/publicfn.js"></script>
  43. <script>
  44. // 在 #app 标签下渲染一个按钮组件
  45. let app = new Vue({
  46. el: '#app',
  47. data() {
  48. return {
  49. toptitleisshow:false,
  50. campinfo:{
  51. },
  52. ischecked:false
  53. };
  54. },
  55. created() {
  56. this.toptitleisshow = toptitleisshow;
  57. this.campinfo = JSON.parse(PublicLib.getCookieInfo('signupiteminfo'));
  58. },
  59. methods: {
  60. //- 返回我的职级
  61. backrank(){
  62. PublicLib.GoBack({Level:1});
  63. },
  64. //- 立即报名
  65. async sign(){
  66. if(!this.ischecked) {
  67. return this.$toast.fail('请同意营训规则');
  68. };
  69. const UserId = PublicLib.getCookieInfo('userId');
  70. const res = await postRequest('api/v1/teamapply/signup',JSON.stringify({UserId,Id:this.campinfo.Id}));
  71. if(res.status !== '1') return tips('报名失败,请重试!');
  72. this.$toast.success('报名成功!');
  73. //- 1s之后返回主页
  74. setTimeout(()=>{
  75. this.backrank();
  76. },1000);
  77. },
  78. rules(){
  79. PublicLib.Goto({Url:'trainingCamp-rules'});
  80. },
  81. }
  82. });
  83. </script>
  84. </body>
  85. </html>