policy_detail1.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>政策服务</title>
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport"
  8. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"/>
  9. <meta name="apple-mobile-web-app-capable" content="yes"/>
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
  11. <link rel="stylesheet" href="__MCSS__/vant4.6.min.css">
  12. <link rel="stylesheet" href="__MCSS__/style.css">
  13. <script src="__COMMON_JS__/vue3.3.4.min.js"></script>
  14. <script src="__MJS__/vant4.6.min.js"></script>
  15. <script src="__COMMON_JS__/axios1.4.min.js"></script>
  16. <script>
  17. const baseUrl = "{:url('/')}";
  18. </script>
  19. <script src="__MJS__/axios_instance.js"></script>
  20. <style>
  21. .article {
  22. background: white;
  23. padding: 0 10px;
  24. }
  25. .article h3 {
  26. padding: 10px 0;
  27. margin: 0;
  28. }
  29. .article .article-info {
  30. align-items: center;
  31. display: flex;
  32. justify-content: space-between;
  33. margin: 5px;
  34. font-size: 12px;
  35. }
  36. .article .article-info .s-time {
  37. color: #b4b4b4;
  38. }
  39. .article .article-info .s-comment {
  40. background: #f5f7f9;
  41. border-radius: 5px;
  42. flex-shrink: 0;
  43. font-size: 14px;
  44. padding: 5px 10px;
  45. }
  46. .content, .content img {
  47. width: 100%;
  48. display: block;
  49. }
  50. .content p {
  51. padding: 0;
  52. margin: 0;
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <div id="app">
  58. <van-nav-bar
  59. class="nav-theme"
  60. :fixed="true"
  61. :placeholder="true"
  62. left-text="返回"
  63. left-arrow
  64. @click-left="onBack"
  65. >
  66. <template #title>
  67. <span class="text-white">政策详情</span>
  68. </template>
  69. </van-nav-bar>
  70. <div class="article">
  71. <header>
  72. <h3>{$info.title}</h3>
  73. <section class="article-info">
  74. <div class="s-author">
  75. <address>
  76. <span>{$info.government}</span>
  77. </address>
  78. <div class="s-time">
  79. <time>{$info.publish_time}</time>
  80. </div>
  81. </div>
  82. <aside class="s-comment js-article-comment">
  83. <van-icon name="chat-o"></van-icon>
  84. <span class="js-article-commentCount">{$info.volume}</span>
  85. </aside>
  86. </section>
  87. </header>
  88. <section class="content" ref="content">
  89. {$info.content}
  90. </section>
  91. </div>
  92. </div>
  93. <script>
  94. function v_setup() {
  95. let base = {};
  96. base.onBack = () => {
  97. history.back();
  98. };
  99. return base;
  100. }
  101. const vue3 = {
  102. setup() {
  103. return v_setup();
  104. }
  105. };
  106. const app = Vue.createApp(vue3)
  107. .use(vant)
  108. .use(vant.Lazyload);
  109. app.mount('#app');
  110. </script>
  111. </body>
  112. </html>