index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <template>
  2. <div class="zwbw">
  3. <div class="topBg">
  4. <!-- 页面头部 -->
  5. <HomePageHead></HomePageHead>
  6. <!-- 页面导航 -->
  7. <HomePageNavigation></HomePageNavigation>
  8. </div>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>
  18. <NuxtLink to="/">法治调研中心-政务百网</NuxtLink>
  19. </el-breadcrumb-item>
  20. </el-breadcrumb>
  21. </div>
  22. </div>
  23. <!-- 网站列表 -->
  24. <div class="webSite">
  25. <table border="1" cellspacing="0" cellpadding="0">
  26. <tr>
  27. <th>网站名称</th>
  28. <th class="hide">网站URL</th>
  29. <th class="hide">二维码(点击放大)</th>
  30. <th>操作</th>
  31. </tr>
  32. <tr>
  33. <td>
  34. <a href="">法制内参</a>
  35. </td>
  36. <td class="hide">
  37. <a href="">http://fzncl.org.cn/</a>
  38. </td>
  39. <td class="hide"><img src="" alt=""></td>
  40. <td>
  41. <a href="#">首页</a>
  42. <span>|</span>
  43. <a href="#">登录</a>
  44. <span>|</span>
  45. <a href="#">简介</a>
  46. <span>|</span>
  47. <a href="#">联系</a>
  48. <span>|</span>
  49. <a href="#">服务</a>
  50. <span>|</span>
  51. <a href="#">地图</a>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. <a href="">法制内参</a>
  57. </td>
  58. <td class="hide">
  59. <a href="">http://fzncl.org.cn/</a>
  60. </td>
  61. <td class="hide"><img src="" alt=""></td>
  62. <td>
  63. <a href="#">首页</a>
  64. <span>|</span>
  65. <a href="#">登录</a>
  66. <span>|</span>
  67. <a href="#">简介</a>
  68. <span>|</span>
  69. <a href="#">联系</a>
  70. <span>|</span>
  71. <a href="#">服务</a>
  72. <span>|</span>
  73. <a href="#">地图</a>
  74. </td>
  75. </tr>
  76. </table>
  77. </div>
  78. <!-- 分页器 -->
  79. <div class="pagination pagination_phone_none" v-if="total > 0">
  80. <el-pagination size="small" background layout="total, prev, pager, next" :total="total" class="mt-4"
  81. :page-size="pageSize" :current-page="pageNum" prev-text="上一页" next-text="下一页"
  82. @current-change="changePage" />
  83. </div>
  84. <div class="pagination pagination_pc_none" v-if="total > 0">
  85. <el-pagination pager-count="5" size="small" background layout="pager" :total="total" class="mt-4"
  86. :page-size="pageSize" :current-page="pageNum" @current-change="changePage" />
  87. </div>
  88. <!-- 页面底部 -->
  89. <HomeFoot></HomeFoot>
  90. </div>
  91. </template>
  92. <script setup>
  93. import { ref, onMounted } from 'vue'
  94. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  95. import { ArrowRight } from '@element-plus/icons-vue'
  96. // 分页器
  97. let pageNum = ref(1);
  98. let total = ref(1);
  99. let pageSize = ref(10);
  100. // 分页器切换页码
  101. const changePage = (val) => {
  102. pageNum.value = val;
  103. }
  104. </script>
  105. <style lang="less" scoped>
  106. @media screen and (min-width: 1401px) {
  107. .zwbw {
  108. font-family: '微软雅黑', Microsoft YaHei;
  109. //导航条
  110. .breadcrumb {
  111. width: 100%;
  112. height: 30PX;
  113. line-height: 30PX;
  114. margin-top: 20PX;
  115. margin-bottom: 20PX;
  116. .inner {
  117. width: 1400PX;
  118. border: 1PX solid #ccc;
  119. color: #000;
  120. font-size: 16PX;
  121. margin: 0 auto;
  122. .location {
  123. margin-right: 20PX;
  124. width: 100PX;
  125. height: 22PX;
  126. font-family: Microsoft YaHei, Microsoft YaHei;
  127. font-weight: 400;
  128. font-size: 16PX;
  129. color: #000;
  130. line-height: 23PX;
  131. text-align: left;
  132. font-style: normal;
  133. text-transform: none;
  134. }
  135. }
  136. :deep(.el-breadcrumb__separator) {
  137. color: #000;
  138. font-weight: bold;
  139. margin: 0 9PX;
  140. }
  141. :deep(.el-breadcrumb) {
  142. display: inline-block;
  143. vertical-align: -4PX;
  144. }
  145. :deep(.el-breadcrumb__inner a),
  146. :deep(.el-breadcrumb__inner.is-link) {
  147. color: #000;
  148. font-weight: 400;
  149. text-decoration: none;
  150. transition: var(--el-transition-color);
  151. }
  152. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
  153. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
  154. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
  155. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
  156. color: #000;
  157. }
  158. span {
  159. font-weight: 400;
  160. font-size: 16PX;
  161. color: #000;
  162. line-height: 23PX;
  163. text-align: left;
  164. font-style: normal;
  165. text-transform: none;
  166. }
  167. }
  168. //网站列表
  169. .webSite {
  170. width: 1400PX;
  171. overflow: hidden;
  172. margin: 20PX auto;
  173. table {
  174. width: 100%;
  175. height: auto;
  176. border-spacing: 0;
  177. border-collapse: collapse;
  178. tr {
  179. width: 100%;
  180. height: auto;
  181. overflow: hidden;
  182. &:first-child {
  183. height: 50PX;
  184. line-height: 50PX;
  185. }
  186. th {
  187. font-size: 16PX;
  188. font-weight: 400;
  189. }
  190. td {
  191. height: auto;
  192. overflow: hidden;
  193. text-align: center;
  194. font-size: 16PX;
  195. a {
  196. font-size: 16PX;
  197. color: #2b96f1;
  198. }
  199. &:nth-child(1) {
  200. width: 15%;
  201. }
  202. &:nth-child(2) {
  203. width: 20%;
  204. }
  205. &:nth-child(3) {
  206. width: 20%;
  207. padding-top: 3PX;
  208. img {
  209. width: 80PX;
  210. height: 80PX;
  211. }
  212. }
  213. &:nth-child(4) {
  214. width: 30%;
  215. text-align: center;
  216. span {
  217. display: inline-block;
  218. font-size: 12PX;
  219. padding: 0 10PX;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. // 分页器
  227. .pagination {
  228. width: 100%;
  229. height: 34PX;
  230. margin-left: 141PX;
  231. display: flex;
  232. justify-content: center;
  233. margin: 20PX 0;
  234. padding: 10PX 0;
  235. // font-size: 16PX;
  236. // :deep(.el-pagination) {
  237. // font-size: 12px;
  238. // }
  239. .el-pagination::v-deep {
  240. font-size: 12px;
  241. }
  242. // 鼠标移入后字体颜色
  243. .el-pagination::v-deep :hover {
  244. color: #1aa0f7;
  245. }
  246. .el-pagination.is-background::v-deep .btn-next,
  247. .el-pagination.is-background::v-deep .btn-prev {
  248. width: 70PX;
  249. height: 34PX;
  250. margin: 0PX 10PX;
  251. border-radius: 4PX;
  252. }
  253. .el-pagination.is-background::v-deep .el-pager li {
  254. margin: 0PX 10PX;
  255. width: 38PX;
  256. height: 34PX;
  257. border-radius: 4PX;
  258. }
  259. .el-pagination.is-background::v-deep .btn-next.is-active,
  260. .el-pagination.is-background::v-deep .btn-prev.is-active,
  261. .el-pagination.is-background::v-deep .el-pager li.is-active {
  262. background-color: #1aa0f7;
  263. color: #fff;
  264. }
  265. }
  266. .pagination_pc_none {
  267. display: none;
  268. }
  269. }
  270. }
  271. @media screen and (min-width: 801px) and (max-width: 1400px) {
  272. .zwbw {
  273. font-family: '微软雅黑', Microsoft YaHei;
  274. //导航条
  275. .breadcrumb {
  276. width: 100%;
  277. height: 30PX;
  278. line-height: 30PX;
  279. margin-top: 20PX;
  280. margin-bottom: 20PX;
  281. .inner {
  282. width: 100%;
  283. border: 1PX solid #ccc;
  284. color: #000;
  285. font-size: 16PX;
  286. margin: 0 auto;
  287. .location {
  288. margin-right: 20PX;
  289. width: 100PX;
  290. height: 22PX;
  291. font-family: Microsoft YaHei, Microsoft YaHei;
  292. font-weight: 400;
  293. font-size: 16PX;
  294. color: #000;
  295. line-height: 23PX;
  296. text-align: left;
  297. font-style: normal;
  298. text-transform: none;
  299. }
  300. }
  301. :deep(.el-breadcrumb__separator) {
  302. color: #000;
  303. font-weight: bold;
  304. margin: 0 9PX;
  305. }
  306. :deep(.el-breadcrumb) {
  307. display: inline-block;
  308. vertical-align: -5PX;
  309. }
  310. :deep(.el-breadcrumb__inner a),
  311. :deep(.el-breadcrumb__inner.is-link) {
  312. color: #000;
  313. font-weight: 400;
  314. text-decoration: none;
  315. transition: var(--el-transition-color);
  316. }
  317. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
  318. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
  319. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
  320. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
  321. color: #000;
  322. }
  323. span {
  324. font-weight: 400;
  325. font-size: 16PX;
  326. color: #000;
  327. line-height: 23PX;
  328. text-align: left;
  329. font-style: normal;
  330. text-transform: none;
  331. }
  332. }
  333. //网站列表
  334. .webSite {
  335. width: 100%;
  336. overflow: hidden;
  337. margin: 20PX auto;
  338. padding: 0 5PX;
  339. box-sizing: border-box;
  340. table {
  341. width: 100%;
  342. height: auto;
  343. border-spacing: 0;
  344. border-collapse: collapse;
  345. tr {
  346. width: 100%;
  347. height: auto;
  348. overflow: hidden;
  349. &:first-child {
  350. height: 50PX;
  351. line-height: 50PX;
  352. }
  353. th {
  354. font-size: 16PX;
  355. font-weight: 400;
  356. }
  357. td {
  358. height: auto;
  359. overflow: hidden;
  360. text-align: center;
  361. font-size: 16PX;
  362. a {
  363. font-size: 16PX;
  364. color: #2b96f1;
  365. }
  366. &:nth-child(1) {
  367. width: 15%;
  368. }
  369. &:nth-child(2) {
  370. width: 20%;
  371. }
  372. &:nth-child(3) {
  373. width: 20%;
  374. padding-top: 3PX;
  375. img {
  376. width: 80PX;
  377. height: 80PX;
  378. }
  379. }
  380. &:nth-child(4) {
  381. width: 30%;
  382. text-align: center;
  383. span {
  384. display: inline-block;
  385. font-size: 12PX;
  386. padding: 0 10PX;
  387. }
  388. }
  389. }
  390. }
  391. }
  392. }
  393. // 分页器
  394. .pagination {
  395. width: 100%;
  396. height: 34PX;
  397. margin-left: 141PX;
  398. display: flex;
  399. justify-content: center;
  400. margin: 20PX 0;
  401. padding: 10PX 0;
  402. // 鼠标移入后字体颜色
  403. .el-pagination::v-deep :hover {
  404. color: #1aa0f7;
  405. }
  406. .el-pagination.is-background::v-deep .btn-next,
  407. .el-pagination.is-background::v-deep .btn-prev {
  408. width: 70PX;
  409. height: 34PX;
  410. margin: 0PX 10PX;
  411. border-radius: 4PX;
  412. }
  413. .el-pagination.is-background::v-deep .el-pager li {
  414. margin: 0PX 10PX;
  415. width: 38PX;
  416. height: 34PX;
  417. border-radius: 4PX;
  418. }
  419. .el-pagination.is-background::v-deep .btn-next.is-active,
  420. .el-pagination.is-background::v-deep .btn-prev.is-active,
  421. .el-pagination.is-background::v-deep .el-pager li.is-active {
  422. background-color: #1aa0f7;
  423. color: #fff;
  424. }
  425. }
  426. .pagination_pc_none {
  427. display: none;
  428. }
  429. }
  430. }
  431. @media screen and (max-width: 800px) {
  432. .zwbw {
  433. font-family: '微软雅黑', Microsoft YaHei;
  434. //导航条
  435. .breadcrumb {
  436. width: 100%;
  437. height: 120px;
  438. line-height: 120px;
  439. margin-top: 80px;
  440. margin-bottom: 80px;
  441. .inner {
  442. width: 100%;
  443. border: 1px solid #ccc;
  444. color: #000;
  445. font-size: 32px;
  446. .location {
  447. margin-right: 40px;
  448. width: 200px;
  449. height: 42px;
  450. font-family: Microsoft YaHei, Microsoft YaHei;
  451. font-weight: 400;
  452. font-size: 32px;
  453. color: #000;
  454. line-height: 46px;
  455. text-align: left;
  456. font-style: normal;
  457. text-transform: none;
  458. }
  459. }
  460. :deep(.el-breadcrumb__separator) {
  461. color: #000;
  462. font-weight: bold;
  463. margin: 0 18px;
  464. }
  465. :deep(.el-breadcrumb) {
  466. display: inline-block;
  467. vertical-align: -8px;
  468. }
  469. :deep(.el-breadcrumb__inner a),
  470. :deep(.el-breadcrumb__inner.is-link) {
  471. color: #000;
  472. font-weight: 400;
  473. text-decoration: none;
  474. transition: var(--el-transition-color);
  475. }
  476. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
  477. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
  478. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
  479. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
  480. color: #000;
  481. }
  482. span {
  483. font-weight: 400;
  484. font-size: 32px;
  485. color: #000;
  486. line-height: 46px;
  487. text-align: left;
  488. font-style: normal;
  489. text-transform: none;
  490. }
  491. }
  492. //网站列表
  493. .webSite {
  494. width: 100%;
  495. overflow: hidden;
  496. margin: 20px auto;
  497. .hide {
  498. display: none;
  499. }
  500. table {
  501. width: 100%;
  502. height: auto;
  503. border-spacing: 0;
  504. border-collapse: collapse;
  505. tr {
  506. width: 100%;
  507. height: auto;
  508. overflow: hidden;
  509. &:first-child {
  510. height: 100px;
  511. line-height: 100px;
  512. }
  513. th {
  514. font-size: 32px;
  515. font-weight: 400;
  516. }
  517. td {
  518. height: auto;
  519. overflow: hidden;
  520. text-align: center;
  521. font-size: 30px;
  522. a {
  523. font-size: 30px;
  524. color: #2b96f1;
  525. }
  526. &:nth-child(1) {
  527. width: 15%;
  528. }
  529. &:nth-child(2) {
  530. width: 20%;
  531. }
  532. &:nth-child(3) {
  533. width: 20%;
  534. padding-top: 3px;
  535. img {
  536. width: 80px;
  537. height: 80px;
  538. }
  539. }
  540. &:nth-child(4) {
  541. width: 30%;
  542. text-align: center;
  543. span {
  544. display: inline-block;
  545. font-size: 24px;
  546. padding: 0 10px;
  547. }
  548. }
  549. }
  550. }
  551. }
  552. }
  553. // 分页器
  554. .pagination {
  555. width: 100%;
  556. height: 68px;
  557. margin-left: 282px;
  558. display: flex;
  559. justify-content: center;
  560. margin: 40px 0;
  561. padding: 10px 0;
  562. // 鼠标移入后字体颜色
  563. .el-pagination::v-deep :hover {
  564. color: #1aa0f7;
  565. }
  566. .el-pagination.is-background::v-deep .btn-next,
  567. .el-pagination.is-background::v-deep .btn-prev {
  568. width: 140px;
  569. height: 68px;
  570. margin: 0px 20px;
  571. border-radius: 8px;
  572. }
  573. .el-pagination.is-background::v-deep .el-pager li {
  574. margin: 0px 20px;
  575. width: 68px;
  576. height: 68px;
  577. border-radius: 8px;
  578. font-size: 28px;
  579. }
  580. .el-pagination.is-background::v-deep .btn-next.is-active,
  581. .el-pagination.is-background::v-deep .btn-prev.is-active,
  582. .el-pagination.is-background::v-deep .el-pager li.is-active {
  583. background-color: #1aa0f7;
  584. color: #fff;
  585. }
  586. }
  587. .pagination_phone_none {
  588. display: none;
  589. }
  590. }
  591. }
  592. </style>