article.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title></title>
  8. <!-- 引入样式 -->
  9. <link rel="stylesheet" href="/elementui-index.css">
  10. <!-- 引入组件库 -->
  11. <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
  12. </head>
  13. <style>
  14. *{
  15. padding: 0;
  16. margin: 0;
  17. box-sizing: border-box;
  18. }
  19. </style>
  20. <body>
  21. <div id="container" v-loading='showloading'>
  22. <h3>第53届冠军组季军-菜菜</h3>
  23. <p>2023-02-06</p>
  24. <div class="content" v-html="content">
  25. </div>
  26. </div>
  27. <script src="/vue.js"></script>
  28. <script src="/elementui-index.js"></script>
  29. <script>
  30. var app = new Vue({
  31. el: '#container',
  32. data: {
  33. host:"http://47.107.124.163:8068",
  34. content:"",
  35. showloading:false
  36. },
  37. methods:{
  38. init(){
  39. $.get(this.host+"/api/wx/v3/article/detail",{id:140},(res=>{
  40. this.content = res.data.content
  41. }))
  42. }
  43. },
  44. created(){
  45. this.init()
  46. }
  47. })
  48. </script>
  49. </body>
  50. </html>