result.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html lang="en" style="width: 100%">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>抽奖结果</title>
  8. <style type="text/css">
  9. *{
  10. margin: 0;
  11. padding: 0;
  12. }
  13. </style>
  14. <script src="js/jquery.min.js"></script>
  15. <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
  16. <script type="text/javascript">
  17. $(function(){
  18. $.post("../prize/luckDrawListBack", {}, function(resp) {
  19. if (resp.code == 'error') {
  20. console.log(resp.code);
  21. }else{
  22. for(let index in resp.data){
  23. $("table").append("<tr><td>" + resp.data[index].nickName + "</td><td>" + resp.data[index].prize + "</td></tr>")
  24. }
  25. }
  26. });
  27. })
  28. </script>
  29. </head>
  30. <body style="width: 100%">
  31. <table class="table table-condensed">
  32. <tr>
  33. <th>昵称</th>
  34. <th>奖品</th>
  35. </tr>
  36. </table>
  37. </body>
  38. </html>