xsSignup.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title></title>
  9. <!-- 引入样式 -->
  10. <link rel="stylesheet" href="https://api.hunanwanzhu.com/topic/elementui-index.css">
  11. <!-- 引入组件库 -->
  12. <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
  13. <script src="https://api.hunanwanzhu.com/topic/vue.js"></script>
  14. <script src="https://api.hunanwanzhu.com/topic/elementui-index.js"></script>
  15. </head>
  16. <style>
  17. .container{
  18. padding:20px;
  19. }
  20. .footer{
  21. position:fixed;
  22. width:100%;
  23. bottom:0px;
  24. }
  25. .footer .signupBtn{
  26. background:red;
  27. width:90%;
  28. height:45px;
  29. color:white;
  30. border:0px;
  31. margin:auto;
  32. display:block;
  33. font-weight:bold;
  34. }
  35. </style>
  36. <body>
  37. <div id="container">
  38. <div class="content">
  39. <h3>顽主杯比赛系统-{{matchinfo.name}}-选手使用须知</h3>
  40. </div>
  41. <div class="footer">
  42. <button class="signupBtn">立即报名</button>
  43. </div>
  44. </div>
  45. <script>
  46. var app = new Vue({
  47. el: '#container',
  48. data: {
  49. matchinfo:{}
  50. },
  51. methods:{
  52. getData(){
  53. $.ajax({
  54. type: 'GET',
  55. url: '/api/wx/v3/signup/info',
  56. data: {},
  57. contentType: "application/json",
  58. dataType: 'json',
  59. success:res=>{
  60. console.log(res)
  61. this.matchinfo = res.data;
  62. },
  63. });
  64. }
  65. },
  66. created(){
  67. this.getData();
  68. }
  69. })
  70. </script>
  71. </body>
  72. </html>