newsList.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- Banner1 -->
  6. <HomeBanner1></HomeBanner1>
  7. <!-- 面包屑导航 -->
  8. <div class="breadcrumb">
  9. <div class="inner">
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item>当前位置:</el-breadcrumb-item>
  12. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  13. <el-breadcrumb-item>三农之窗</el-breadcrumb-item>
  14. </el-breadcrumb>
  15. </div>
  16. </div>
  17. <!-- 资讯列表 -->
  18. <div class="newsList">
  19. <div class="inner">
  20. <div class="innerLeft">
  21. <ul class="list">
  22. <li v-for="item in newsList">
  23. <NuxtLink to="/primaryNavigation/newsDetail/newsDetail">{{ item }}</NuxtLink>
  24. </li>
  25. </ul>
  26. <!-- 分页器 -->
  27. <div class="pagination">
  28. <HomePagination></HomePagination>
  29. </div>
  30. </div>
  31. <div class="innerRight">
  32. <div class="title">
  33. <h4>
  34. 热点资讯
  35. <span>查看更多</span>
  36. </h4>
  37. </div>
  38. <ul class="messageList">
  39. <li v-for="item in 14">
  40. <span>{{ item }}</span>
  41. <NuxtLink>数说新中国75年|人民文化生活日益丰富 文...</NuxtLink>
  42. </li>
  43. </ul>
  44. </div>
  45. </div>
  46. </div>
  47. <!-- 三农资讯logo -->
  48. <HomeSannongzixun></HomeSannongzixun>
  49. <!-- 资讯推荐 -->
  50. <div class="zixuntuijian">
  51. <div class="inner">
  52. <div class="innerLeft">
  53. <div class="zixunLeft">
  54. <!-- 标题部分 -->
  55. <div class="title">
  56. <h3>
  57. 资讯推荐
  58. <span>查看更多</span>
  59. </h3>
  60. </div>
  61. <!-- 图片和文字列表 -->
  62. <ul class="photo_text">
  63. <li>
  64. <img src="../../static/images/tonny00255_On(1).png" alt="">
  65. <div>
  66. <h5>高邮市周山镇开展渔业安全生产应急</h5>
  67. <p>
  68. <span>王某某</span>
  69. <span>2024-8-6</span>
  70. </p>
  71. </div>
  72. </li>
  73. <li v-for="item in 3">
  74. <em></em>
  75. 高邮市周山镇开展渔业安全生产应急
  76. </li>
  77. </ul>
  78. </div>
  79. <div class="zixunRight">
  80. <!-- 标题部分 -->
  81. <div class="title">
  82. <h3>
  83. 资讯推荐
  84. <span>查看更多</span>
  85. </h3>
  86. </div>
  87. <!-- 图片和文字列表 -->
  88. <ul class="photo_text">
  89. <li>
  90. <img src="../../static/images/tonny00255_On(1).png" alt="">
  91. <div>
  92. <h5>高邮市周山镇开展渔业安全生产应急</h5>
  93. <p>
  94. <span>王某某</span>
  95. <span>2024-8-6</span>
  96. </p>
  97. </div>
  98. </li>
  99. <li v-for="item in 3">
  100. <em></em>
  101. 高邮市周山镇开展渔业安全生产应急
  102. </li>
  103. </ul>
  104. </div>
  105. </div>
  106. <div class="innerRight">
  107. <!-- 标题部分 -->
  108. <div class="title">
  109. <h4>
  110. 热点资讯
  111. <span>查看更多</span>
  112. </h4>
  113. </div>
  114. <!-- 列表 -->
  115. <ul class="rightList">
  116. <li v-for="item in 2">
  117. <img class="left"
  118. src="../../static/images/sgbhsihfgisdfaasda45632113_A_group_of_Chinese_farmers_are_trans_0e341355-f4d5-4796-b6cd-bdc87996f81b(1).png"
  119. alt="">
  120. <p class="left">高邮市周山镇开展渔业安全生产应急演练</p>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. </div>
  126. <!-- 页面底部 -->
  127. <HomeFoot></HomeFoot>
  128. </div>
  129. </template>
  130. <script lang="ts" setup>
  131. import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
  132. import { ArrowRight } from '@element-plus/icons-vue'
  133. let newsList = [
  134. '稳经济政策正朝着“稳健有效”持续发力',
  135. '布上青花 指尖非遗——千年蜡染的传承与创新',
  136. '拉萨市涉建筑垃圾、城市建设两部条例将于11月1日实施',
  137. '中国稳定股市新工具启动 5000亿规模只能投资股市',
  138. '国家数据局:建立健全公共数据产品和服务价格形成机制',
  139. '第十二届全国少数民族传统体育运动会启动火炬传递',
  140. '网信部门曝光“毒视频”“开盒挂人”等涉未成年人乱象',
  141. '辅警执勤时被闯红灯超速摩托车撞倒 浙江义乌警方通报',
  142. '接地气、心贴心 各地创新宣讲形式把全会精神送到干部群众身边',
  143. '美军火商对台军售涉抬价诈欺,台当局替美辩称“美国也是受害...'
  144. ]
  145. </script>
  146. <style lang="less" scoped>
  147. //导航条
  148. .breadcrumb {
  149. width: 100%;
  150. height: 22px;
  151. margin-bottom: 30px;
  152. font-family: Microsoft YaHei, Microsoft YaHei;
  153. font-weight: 400;
  154. font-size: 20px;
  155. color: #666666;
  156. line-height: 23px;
  157. text-align: left;
  158. font-style: normal;
  159. text-transform: none;
  160. }
  161. // 资讯列表
  162. .newsList {
  163. width: 100%;
  164. height: 675px;
  165. margin-bottom: 70px;
  166. .inner {
  167. width: 1200px;
  168. .innerLeft,
  169. .innerRight {
  170. border-top: 1px solid #139602;
  171. }
  172. .innerLeft {
  173. height: 675px;
  174. >.list {
  175. height: 570px;
  176. margin-bottom: 70px;
  177. >li {
  178. width: 790px;
  179. height: 56px;
  180. line-height: 56px;
  181. border-bottom: 1px solid #D9D9D9;
  182. >a {
  183. width: 360px;
  184. height: 26px;
  185. font-family: Microsoft YaHei, Microsoft YaHei;
  186. font-weight: 400;
  187. font-size: 20px;
  188. color: #333333;
  189. line-height: 26px;
  190. text-align: left;
  191. font-style: normal;
  192. text-transform: none;
  193. }
  194. }
  195. >li:hover>a {
  196. color: #139602;
  197. }
  198. >li:nth-child(1)::after,
  199. >li:nth-child(2)::after {
  200. content: "热";
  201. margin-left: 13px;
  202. background: #FF8A37;
  203. color: #fff;
  204. font-size: 14px;
  205. padding: 0px 2px;
  206. }
  207. }
  208. >.pagination{
  209. width: 790px;
  210. height: 34px;
  211. margin-left: 141px;
  212. }
  213. }
  214. .innerRight {
  215. width: 381px;
  216. height: 605px;
  217. >.title {
  218. width: 380px;
  219. height: 40px;
  220. line-height: 40px;
  221. border-bottom: 1px solid #e7e7e7;
  222. >h4 {
  223. font-family: Microsoft YaHei, Microsoft YaHei;
  224. font-weight: 400;
  225. margin-left: 20px;
  226. font-size: 20px;
  227. color: #000000;
  228. text-align: left;
  229. font-style: normal;
  230. text-transform: none;
  231. >span {
  232. float: right;
  233. font-family: Microsoft YaHei, Microsoft YaHei;
  234. font-weight: 400;
  235. font-size: 14px;
  236. margin-right: 10px;
  237. color: #999999;
  238. text-align: left;
  239. font-style: normal;
  240. text-transform: none;
  241. }
  242. }
  243. }
  244. .messageList {
  245. height: 563px;
  246. padding-top: 15px;
  247. background-color: #fbfbfb;
  248. >li {
  249. height: 24px;
  250. margin-bottom: 16px;
  251. >span {
  252. display: inline-block;
  253. width: 24px;
  254. height: 24px;
  255. margin-left: 22px;
  256. line-height: 24px;
  257. vertical-align: middle;
  258. text-align: center;
  259. background-color: #cecece;
  260. font-family: Microsoft YaHei, Microsoft YaHei;
  261. font-weight: 400;
  262. font-size: 18px;
  263. color: #FFFFFF;
  264. text-align: center;
  265. font-style: normal;
  266. text-transform: none;
  267. }
  268. >a {
  269. width: 256px;
  270. height: 21px;
  271. font-family: Microsoft YaHei, Microsoft YaHei;
  272. font-weight: 400;
  273. font-size: 16px;
  274. color: #333333;
  275. line-height: 19px;
  276. text-align: left;
  277. font-style: normal;
  278. text-transform: none;
  279. padding-left: 10px;
  280. }
  281. }
  282. >li:hover a {
  283. color: #139602;
  284. }
  285. >li:nth-child(1)>span {
  286. background-color: #00c524;
  287. }
  288. >li:nth-child(2)>span {
  289. background-color: #ffdf27;
  290. }
  291. >li:nth-child(3)>span {
  292. background-color: #f3c57f;
  293. }
  294. }
  295. }
  296. }
  297. }
  298. //资讯推荐
  299. .zixuntuijian {
  300. width: 100%;
  301. height: 290px;
  302. margin-bottom: 70px;
  303. .innerLeft {
  304. // 左侧
  305. .zixunLeft {
  306. margin-right: 30px;
  307. }
  308. .zixunRight,
  309. .zixunLeft {
  310. float: left;
  311. width: 380px;
  312. height: 290px;
  313. // 标题部分
  314. >.title {
  315. width: 380px;
  316. }
  317. >.title>h3 {
  318. height: 36px;
  319. font-family: Source Han Sans, Source Han Sans;
  320. font-weight: bold;
  321. font-size: 24px;
  322. color: #000000;
  323. line-height: 28px;
  324. text-align: left;
  325. font-style: normal;
  326. text-transform: none;
  327. border-bottom: 1px solid #139602;
  328. }
  329. >.title>h3>span {
  330. float: right;
  331. width: 56px;
  332. height: 20px;
  333. line-height: 24px;
  334. font-weight: 400;
  335. font-size: 14px;
  336. color: #999999;
  337. font-style: normal;
  338. text-transform: none;
  339. }
  340. .photo_text {
  341. >li:first-child {
  342. width: 380px;
  343. height: 120px;
  344. margin-top: 20px;
  345. margin-bottom: 15px;
  346. position: relative;
  347. >img {
  348. float: left;
  349. width: 160px;
  350. height: 120px;
  351. }
  352. >div {
  353. float: left;
  354. width: 220px;
  355. height: 120px;
  356. padding-left: 15px;
  357. padding-top: 6px;
  358. box-sizing: border-box;
  359. background-color: #f6f6f6;
  360. >h5 {
  361. height: 54px;
  362. font-family: Source Han Sans, Source Han Sans;
  363. font-weight: 500;
  364. font-size: 18px;
  365. color: #333333;
  366. line-height: 26px;
  367. text-align: left;
  368. font-style: normal;
  369. text-transform: none;
  370. }
  371. >p {
  372. width: 200px;
  373. height: 22px;
  374. line-height: 20px;
  375. position: absolute;
  376. bottom: 5px;
  377. right: 0;
  378. >span {
  379. display: inline-block;
  380. width: 100px;
  381. height: 18px;
  382. font-family: Source Han Sans, Source Han Sans;
  383. font-weight: 400;
  384. font-size: 12px;
  385. color: #999999;
  386. text-align: left;
  387. line-height: 14px;
  388. font-style: normal;
  389. text-transform: none;
  390. }
  391. >span:last-child {
  392. width: 90px;
  393. text-align: right;
  394. }
  395. }
  396. }
  397. }
  398. >li {
  399. width: 380px;
  400. height: 25px;
  401. font-family: PingFang SC, PingFang SC;
  402. font-weight: 500;
  403. font-size: 18px;
  404. color: #333333;
  405. line-height: 21px;
  406. text-align: left;
  407. font-style: normal;
  408. text-transform: none;
  409. margin-bottom: 10px;
  410. em {
  411. display: inline-block;
  412. width: 8px;
  413. height: 8px;
  414. border-radius: 8px;
  415. margin-right: 10px;
  416. background-color: #d9d9d9;
  417. }
  418. }
  419. >li:hover {
  420. color: #139602;
  421. }
  422. >li:hover em {
  423. background-color: #139602;
  424. }
  425. }
  426. }
  427. }
  428. .innerRight {
  429. width: 381px;
  430. height: 290px;
  431. background-color: #fbfbfb;
  432. >.title {
  433. width: 380px;
  434. height: 40px;
  435. line-height: 40px;
  436. border-top: 1px solid #139602;
  437. border-bottom: 1px solid #e7e7e7;
  438. >h4 {
  439. font-family: Microsoft YaHei, Microsoft YaHei;
  440. font-weight: 400;
  441. margin-left: 20px;
  442. font-size: 20px;
  443. color: #000000;
  444. text-align: left;
  445. font-style: normal;
  446. text-transform: none;
  447. >span {
  448. float: right;
  449. font-family: Microsoft YaHei, Microsoft YaHei;
  450. font-weight: 400;
  451. font-size: 14px;
  452. margin-right: 10px;
  453. color: #999999;
  454. text-align: left;
  455. font-style: normal;
  456. text-transform: none;
  457. }
  458. }
  459. }
  460. .rightList {
  461. height: 540px;
  462. margin-top: 20px;
  463. >li {
  464. height: 100px;
  465. margin-bottom: 10px;
  466. >img {
  467. width: 150px;
  468. height: 100px;
  469. }
  470. >p {
  471. width: 219px;
  472. height: 100px;
  473. padding-left: 12px;
  474. font-family: PingFang SC, PingFang SC;
  475. font-weight: 400;
  476. font-size: 16px;
  477. color: #333333;
  478. line-height: 22px;
  479. text-align: left;
  480. font-style: normal;
  481. text-transform: none;
  482. }
  483. >p:hover {
  484. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  485. }
  486. }
  487. }
  488. }
  489. }
  490. </style>