newsDetail.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <!-- 页面头部 -->
  3. <HomePageHead></HomePageHead>
  4. <!-- Banner1 -->
  5. <HomeBanner1></HomeBanner1>
  6. <!-- 面包屑导航 -->
  7. <div class="breadcrumb">
  8. <div class="inner">
  9. <span class="location">当前位置:</span>
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  12. <el-breadcrumb-item :to="{ path: '/primaryNavigation/newsList' }">三农之窗</el-breadcrumb-item>
  13. <el-breadcrumb-item :to="{ path: '/primaryNavigation/newsDetail/newsDetail' }">文章详情</el-breadcrumb-item>
  14. </el-breadcrumb>
  15. </div>
  16. </div>
  17. <!-- 资讯列表 -->
  18. <div class="newsDetail">
  19. <div class="inner">
  20. <div class="innerLeft">
  21. <div class="LeftTop">
  22. <h1>{{ newsDetail.title }}</h1>
  23. <p>
  24. 来源: <span>{{ newsDetail.author }}</span>
  25. <span>{{ newsDetail.updated_at }}</span>
  26. 浏览量: <span>{{ newsDetail.hits }}</span>
  27. </p>
  28. <img :src="newsDetail.imgurl" alt="">
  29. </div>
  30. <div class="leftBottom">
  31. {{newsDetail.content }}
  32. <!-- <h3>“逆周期调节”是什么? </h3>
  33. <p>这次发布会将重点聚焦“财政政策逆周期调节力度”,那什么是逆周期调节?</p>
  34. <p>逆周期调节是指政府根据经济周期阶段,通过政策工具和措施让整个经济周期的波动性平缓‌,更好促进经济发展。财政政策就是其中的重要一类。</p>
  35. <p>当前,我国经济的基本面及市场广阔、经济韧性强、潜力大等有利条件并未改变。同
  36. 时,经济运行出现一些新的情况和问题。为了更好促进经济发展,近年来,我国坚持实施 积极的财政政策,通过增加财政支出、实施减税降费等方式,实现政府投资的扩大和消费
  37. 潜能的释放,促进了经济增长、增加就业和扩大内需等。 专家认为,财政政策逆周期调节对于稳定经济增长、促进就业、控制通胀和稳定金融
  38. 市场具有重要意义。随着国民经济发展不断变化,相应的,财政政策也会根据经济形势的 变化来灵活调整,这样才能更好实现经济的平稳发展。</p>
  39. <h3>积极财政政策持续加力 推动经济高质量发展</h3>
  40. <p>今年,我国继续实施积极的财政政策,通过组合运用多种政策工具,促进经济持续回 升向好。那么,财政政策工具箱里都有哪些“宝贝” 国家的钱袋子又投向了哪些领域呢?</p>
  41. <h3>政策亮点——超长期特别国债</h3>
  42. <p>到财政政策工具箱,今年最大的亮点要数超长期特别国债。10000亿元超长期特别
  43. 国债,专项用于“两重”,也就是国家重大战略实施和重点领域安全能力建设。截至7月底,超长期特别国债已累计发行4180亿元。</p>
  44. <p>不仅如此,为了更好支持大规模设备更新和消费品以旧换新行动,万亿超长期特别国 债中有约3000亿元加力支持重点领域设备更新,进一步提升地方消费品以旧换新的能力。</p> -->
  45. </div>
  46. </div>
  47. <div class="innerRight">
  48. <!-- 热点资讯1 -->
  49. <DetailHotNews></DetailHotNews>
  50. <!-- 热点资讯2 -->
  51. <DetailHotNews2></DetailHotNews2>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- 页面底部 -->
  56. <HomeFoot></HomeFoot>
  57. </template>
  58. <script setup>
  59. import { onMounted } from 'vue'
  60. import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
  61. import { ArrowRight } from '@element-plus/icons-vue'
  62. const nuxtApp = useNuxtApp();
  63. const axios = nuxtApp.$axios;
  64. //获取导航一的栏目
  65. const newsDetail = useState("newsDetail",()=>"");
  66. const newsDetailList = async () => {
  67. try {
  68. const response = await axios.get(`/web/selectWebsiteArticleInfo?articleid=${7}`);
  69. console.log(response.data);
  70. newsDetail.value = response.data;
  71. } catch (error) {
  72. console.error(error);
  73. }
  74. }
  75. onMounted(()=>{
  76. newsDetailList()
  77. })
  78. </script>
  79. <style lang="less" scoped>
  80. //导航条
  81. .breadcrumb {
  82. width: 100%;
  83. height: 22px;
  84. margin-bottom: 30px;
  85. font-family: Microsoft YaHei, Microsoft YaHei;
  86. font-weight: 400;
  87. font-size: 20px;
  88. color: #666666;
  89. line-height: 23px;
  90. text-align: left;
  91. font-style: normal;
  92. text-transform: none;
  93. .el-breadcrumb::v-deep{
  94. display: inline-block;
  95. vertical-align: -4px;
  96. }
  97. /deep/.el-breadcrumb__inner a,
  98. /deep/.el-breadcrumb__inner.is-link {
  99. color: #666666;
  100. font-weight: 400;
  101. text-decoration: none;
  102. transition: var(--el-transition-color);
  103. }
  104. span {
  105. font-family: Microsoft YaHei, Microsoft YaHei;
  106. font-weight: 400;
  107. font-size: 20px;
  108. color: #666666;
  109. line-height: 23px;
  110. text-align: left;
  111. font-style: normal;
  112. text-transform: none;
  113. }
  114. span:hover {
  115. color: #666666;
  116. }
  117. .location {
  118. margin-right: 20px;
  119. width: 100px;
  120. height: 22px;
  121. font-family: Microsoft YaHei, Microsoft YaHei;
  122. font-weight: 400;
  123. font-size: 20px;
  124. color: #666666;
  125. line-height: 23px;
  126. text-align: left;
  127. font-style: normal;
  128. text-transform: none;
  129. }
  130. }
  131. // 资讯列表
  132. .newsDetail {
  133. width: 100%;
  134. height: 1400px;
  135. margin-bottom: 70px;
  136. .inner {
  137. width: 1200px;
  138. height: 1400px;
  139. .innerLeft {
  140. height: 1400px;
  141. border-top: 1px solid #139602;
  142. .LeftTop {
  143. height: 522px;
  144. margin-top: 50px;
  145. >h1 {
  146. height: 40px;
  147. line-height: 40px;
  148. margin-bottom: 30px;
  149. font-family: Microsoft YaHei, Microsoft YaHei;
  150. font-weight: bold;
  151. font-size: 30px;
  152. color: #333333;
  153. }
  154. >p {
  155. height: 18px;
  156. line-height: 18px;
  157. font-family: Microsoft YaHei, Microsoft YaHei;
  158. font-weight: 400;
  159. font-size: 14px;
  160. color: #999999;
  161. span {
  162. margin-right: 40px;
  163. }
  164. }
  165. >img {
  166. width: 680px;
  167. height: 382px;
  168. padding: 50px 0px 60px 55px;
  169. }
  170. }
  171. .leftBottom {
  172. width: 790px;
  173. height: 754px;
  174. margin-top: 76px;
  175. >h3,>p{
  176. text-indent: 2em;
  177. width: 790px;
  178. font-family: Microsoft YaHei, Microsoft YaHei;
  179. font-size: 20px;
  180. color: #333333;
  181. line-height: 23px;
  182. padding-bottom: 30px;
  183. }
  184. >h3 {
  185. font-weight: 600px;
  186. }
  187. >p {
  188. font-weight: 400;
  189. }
  190. }
  191. }
  192. .innerRight {
  193. width: 381px;
  194. height: 605px;
  195. background-color: #fbfbfb;
  196. border-top: 1px solid #139602;
  197. }
  198. }
  199. }
  200. </style>