index.vue 20 KB

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