index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <template>
  2. <div class="meeting-page">
  3. <header class="page-hd">
  4. <div>
  5. <div class="page-title">重要会议看板</div>
  6. <div class="page-sub">政策面 · 重要会议 · 中央经济工作会议 · 政府工作报告 · 政治局会议</div>
  7. </div>
  8. <div class="page-actions">
  9. <button class="btn" @click="reload" :disabled="loading">
  10. <span :class="['ic-refresh', { spinning: loading }]">↻</span> 刷新
  11. </button>
  12. </div>
  13. </header>
  14. <PolicySubnav
  15. v-model="activeSection"
  16. :items="subnav"
  17. @select="onSubnavSelect"
  18. />
  19. <!-- 文档库 -->
  20. <!-- <section class="section">
  21. <div class="section-hd">
  22. <span class="dot"></span>
  23. <h2>重要会议 · PDF 文档库</h2>
  24. <span class="meta">中央经济工作会议 · 政府工作报告 · 政治局会议</span>
  25. </div>
  26. <PolicyDocumentLibrary :docs="meetingDocs" @open="onOpenDoc" />
  27. </section> -->
  28. <!-- §3.1 中央经济工作会议 -->
  29. <section id="3.1" class="section">
  30. <div class="section-hd">
  31. <span class="dot"></span>
  32. <h2>§3.1 中央经济工作会议 · 最新期摘要 + 历史文档</h2>
  33. <span class="meta">年度 · 中共中央</span>
  34. <span class="meta-spacer"></span>
  35. <span class="meta">最新 {{ centralEconLatest.publishDate }} · 历史 {{ centralEconHistory.length }} 份(2020–2025)</span>
  36. </div>
  37. <PolicyLatestWithHistory
  38. :title="centralEconLatest.title"
  39. icon="⌧"
  40. :history="centralEconHistory"
  41. :latest-href="`/pdf-library#3.1`"
  42. library-href="/pdf-library"
  43. section-key="3.1"
  44. >
  45. <template #latest>
  46. <div class="date-banner">
  47. <div class="date-side">
  48. <div class="date-kicker">会议时间</div>
  49. <div class="date-value">{{ centralEconLatest.dateLabel }}</div>
  50. </div>
  51. <div class="date-divider"></div>
  52. <div class="date-body">
  53. <div class="date-title">{{ centralEconLatest.banner.title }}</div>
  54. <div class="date-note">{{ centralEconLatest.banner.note }}</div>
  55. </div>
  56. </div>
  57. <div class="para-list">
  58. <p v-for="(p, i) in centralEconLatest.paragraphs" :key="i" v-html="p"></p>
  59. </div>
  60. </template>
  61. </PolicyLatestWithHistory>
  62. </section>
  63. <!-- §3.2 政府工作报告 -->
  64. <section id="3.2" class="section">
  65. <div class="section-hd">
  66. <span class="dot"></span>
  67. <h2>§3.2 政府工作报告 · 最新期摘要 + 历史文档</h2>
  68. <span class="meta">年度 · 国务院</span>
  69. <span class="meta-spacer"></span>
  70. <span class="meta">最新 {{ govWorkReportLatest.publishDate }} · 历史 {{ govWorkReportHistory.length }} 份(2021–2026)</span>
  71. </div>
  72. <PolicyLatestWithHistory
  73. :title="govWorkReportLatest.title"
  74. icon="⊞"
  75. :history="govWorkReportHistory"
  76. :latest-href="`/pdf-library#3.2`"
  77. library-href="/pdf-library"
  78. section-key="3.2"
  79. >
  80. <template #latest>
  81. <div class="kpi-banner">
  82. <div
  83. v-for="(k, i) in govWorkReportLatest.kpis"
  84. :key="k.label"
  85. :class="['kpi-cell', { first: i === 0 }]"
  86. >
  87. <div class="kpi-label">{{ k.label }}</div>
  88. <div :class="['kpi-value', `tone-${k.tone}`]">{{ k.value }}</div>
  89. </div>
  90. </div>
  91. <div class="para-list">
  92. <p v-for="(p, i) in govWorkReportLatest.paragraphs" :key="i" v-html="p"></p>
  93. </div>
  94. </template>
  95. </PolicyLatestWithHistory>
  96. </section>
  97. <!-- §3.3 政治局会议 -->
  98. <section id="3.3" class="section">
  99. <div class="section-hd">
  100. <span class="dot"></span>
  101. <h2>§3.3 中央政治局会议 · 最新期摘要 + 历史文档</h2>
  102. <span class="meta">季度 · 中共中央政治局</span>
  103. <span class="meta-spacer"></span>
  104. <span class="meta">最新 {{ politburoLatest.publishDate }} · 历史 {{ politburoHistory.length }} 份(2021-04–2026-07)</span>
  105. </div>
  106. <PolicyLatestWithHistory
  107. :title="politburoLatest.title"
  108. icon="⊟"
  109. :history="politburoHistory"
  110. :latest-href="`/pdf-library#3.3`"
  111. library-href="/pdf-library"
  112. section-key="3.3"
  113. >
  114. <template #latest>
  115. <div class="date-banner">
  116. <div class="date-side">
  117. <div class="date-kicker">会议时间</div>
  118. <div class="date-value">{{ politburoLatest.dateLabel }}</div>
  119. </div>
  120. <div class="date-divider"></div>
  121. <div class="date-body">
  122. <div class="date-title">{{ politburoLatest.banner.title }}</div>
  123. <div class="date-note">{{ politburoLatest.banner.note }}</div>
  124. </div>
  125. </div>
  126. <div class="para-list">
  127. <p v-for="(p, i) in politburoLatest.paragraphs" :key="i" v-html="p"></p>
  128. </div>
  129. </template>
  130. </PolicyLatestWithHistory>
  131. </section>
  132. <footer class="footer">
  133. 数据源:中共中央 · 国务院 · 中国政府网 · {{ updatedAt }} · 重要会议看板 v1.0
  134. </footer>
  135. </div>
  136. </template>
  137. <script setup>
  138. import { onMounted, ref as vRef } from 'vue'
  139. import { useRouter } from 'vue-router'
  140. import PolicyLatestWithHistory from '@/components/policy/PolicyLatestWithHistory.vue'
  141. import PolicyDocumentLibrary from '@/components/policy/PolicyDocumentLibrary.vue'
  142. import PolicySubnav from '@/components/policy/PolicySubnav.vue'
  143. import {
  144. centralEconLatest, centralEconHistory,
  145. govWorkReportLatest, govWorkReportHistory,
  146. politburoLatest, politburoHistory,
  147. policyDocumentLibrary,
  148. } from '../_shared/policy-documents'
  149. const router = useRouter()
  150. const loading = vRef(false)
  151. const updatedAt = vRef('')
  152. const activeSection = vRef('meeting')
  153. const subnav = [
  154. { key: 'fiscal', label: '财政政策', to: '/policy/fiscal' },
  155. { key: 'monetary', label: '货币政策', to: '/policy/monetary' },
  156. { key: 'meeting', label: '重要会议', to: '/policy/meeting' },
  157. { key: 'industry', label: '产业政策', to: '/policy/industry' },
  158. { key: 'library', label: 'PDF 文档库', to: '/pdf-library' },
  159. ]
  160. const meetingDocs = policyDocumentLibrary.filter((d) =>
  161. ['cee', 'gwr', 'pbs'].includes(d.key),
  162. )
  163. function onSubnavSelect() { /* handled by PolicySubnav via router.push */ }
  164. function onOpenDoc(d) {
  165. if (d?.disabled) return
  166. if (d?.href) router.push(d.href)
  167. }
  168. async function reload() {
  169. loading.value = true
  170. try {
  171. updatedAt.value = new Date().toISOString().slice(0, 19).replace('T', ' ')
  172. } finally {
  173. loading.value = false
  174. }
  175. }
  176. onMounted(reload)
  177. </script>
  178. <style scoped>
  179. .meeting-page {
  180. padding: 18px 24px 32px;
  181. color: var(--ink, #1A2438);
  182. }
  183. .page-hd {
  184. display: flex;
  185. align-items: flex-end;
  186. justify-content: space-between;
  187. margin-bottom: 14px;
  188. flex-wrap: wrap;
  189. gap: 12px;
  190. }
  191. .page-title {
  192. font-size: 18px;
  193. font-weight: 600;
  194. color: var(--ink, #1A2438);
  195. margin-bottom: 3px;
  196. }
  197. .page-sub {
  198. font-size: 12px;
  199. color: var(--mut, #6B7A96);
  200. }
  201. .page-actions { display: flex; gap: 8px; }
  202. .btn {
  203. height: 30px;
  204. padding: 0 14px;
  205. border: 1px solid var(--line, #E4E9F2);
  206. border-radius: 6px;
  207. background: #fff;
  208. color: var(--ink, #1A2438);
  209. font-size: 12.5px;
  210. cursor: pointer;
  211. display: inline-flex;
  212. align-items: center;
  213. gap: 5px;
  214. transition: .15s;
  215. }
  216. .btn:hover { border-color: var(--brand, #1552D0); color: var(--brand-d, #0E3A96); }
  217. .btn:disabled { opacity: .6; cursor: not-allowed; }
  218. .ic-refresh.spinning { display: inline-block; animation: spin 1s linear infinite; }
  219. @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  220. .section { margin-top: 18px; }
  221. .section-hd {
  222. display: flex;
  223. align-items: center;
  224. gap: 8px;
  225. margin-bottom: 12px;
  226. flex-wrap: wrap;
  227. }
  228. .section-hd .dot {
  229. width: 4px;
  230. height: 18px;
  231. background: var(--brand, #1552D0);
  232. border-radius: 2px;
  233. }
  234. .section-hd h2 {
  235. font-size: 14.5px;
  236. font-weight: 600;
  237. color: var(--ink, #1A2438);
  238. margin: 0;
  239. }
  240. .section-hd .meta {
  241. font-size: 11.5px;
  242. color: #98A5BD;
  243. margin-left: 8px;
  244. }
  245. .section-hd .meta-spacer { flex: 1; }
  246. .footer {
  247. padding: 18px 24px 12px;
  248. color: #98A5BD;
  249. font-size: 11.5px;
  250. text-align: center;
  251. border-top: 1px solid var(--line, #E4E9F2);
  252. background: #FAFBFE;
  253. margin-top: 14px;
  254. border-radius: 8px;
  255. }
  256. /* ===== Latest card 内通用样式 ===== */
  257. .date-banner {
  258. display: flex;
  259. align-items: center;
  260. gap: 14px;
  261. padding: 14px;
  262. border-radius: 6px;
  263. background: linear-gradient(135deg, #E8F0FE, #DBEAFE);
  264. border-left: 4px solid var(--brand, #1552D0);
  265. margin-bottom: 14px;
  266. }
  267. .date-side {
  268. width: 80px;
  269. text-align: center;
  270. flex: none;
  271. }
  272. .date-kicker {
  273. font-size: 11px;
  274. letter-spacing: 2px;
  275. color: var(--brand-d, #0E3A96);
  276. }
  277. .date-value {
  278. font-size: 18px;
  279. font-weight: 700;
  280. color: var(--brand-d, #0E3A96);
  281. margin-top: 4px;
  282. }
  283. .date-divider {
  284. align-self: stretch;
  285. width: 1px;
  286. background: rgba(21, 82, 208, .3);
  287. margin: 4px 0;
  288. }
  289. .date-body { flex: 1; min-width: 0; }
  290. .date-title {
  291. font-size: 13px;
  292. font-weight: 600;
  293. color: var(--ink, #1A2438);
  294. margin-bottom: 4px;
  295. }
  296. .date-note {
  297. font-size: 11.5px;
  298. color: var(--mut, #6B7A96);
  299. line-height: 1.55;
  300. }
  301. .kpi-banner {
  302. display: grid;
  303. grid-template-columns: repeat(4, minmax(0, 1fr));
  304. gap: 14px;
  305. padding: 14px;
  306. border-radius: 6px;
  307. background: linear-gradient(135deg, #E8F0FE, #DBEAFE);
  308. border-left: 4px solid var(--brand, #1552D0);
  309. margin-bottom: 14px;
  310. text-align: center;
  311. }
  312. .kpi-cell {
  313. min-width: 0;
  314. }
  315. .kpi-cell + .kpi-cell {
  316. border-left: 1px solid rgba(21, 82, 208, .3);
  317. padding-left: 14px;
  318. }
  319. .kpi-label {
  320. font-size: 11px;
  321. color: var(--brand-d, #0E3A96);
  322. letter-spacing: .5px;
  323. }
  324. .kpi-value {
  325. font-size: 18px;
  326. font-weight: 700;
  327. color: var(--brand-d, #0E3A96);
  328. margin-top: 4px;
  329. font-variant-numeric: tabular-nums;
  330. }
  331. .kpi-value.tone-brand { color: var(--brand-d, #0E3A96); }
  332. .kpi-value.tone-up { color: var(--up, #E13B3B); }
  333. .kpi-value.tone-warn { color: #B25E00; }
  334. .kpi-value.tone-green { color: var(--down, #189A65); }
  335. .para-list { font-size: 13px; line-height: 1.8; color: var(--ink, #1A2438); }
  336. .para-list p { margin-bottom: 8px; }
  337. .para-list p:last-child { margin-bottom: 0; }
  338. .para-list :deep(b) { color: var(--brand-d, #0E3A96); font-weight: 600; }
  339. .para-list :deep(.hl-up) { color: var(--up, #E13B3B); font-weight: 600; }
  340. .para-list :deep(.hl-dn) { color: var(--down, #189A65); font-weight: 600; }
  341. @media (max-width: 980px) {
  342. .kpi-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  343. }
  344. </style>