officialWebsiteNav.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. <template>
  2. <div class="hundredWebSite">
  3. <div class="topNavList">
  4. <div class="topNavItem">
  5. <NuxtLink href="#">党委</NuxtLink>
  6. </div>
  7. <div class="topNavItem">
  8. <NuxtLink href="#">人大</NuxtLink>
  9. </div>
  10. <div class="topNavItem active">
  11. <NuxtLink href="#">政府</NuxtLink>
  12. </div>
  13. <div class="topNavItem">
  14. <NuxtLink href="#">政协</NuxtLink>
  15. </div>
  16. <div class="topNavItem">
  17. <NuxtLink href="#">公安</NuxtLink>
  18. </div>
  19. <div class="topNavItem">
  20. <NuxtLink href="#">检察院</NuxtLink>
  21. </div>
  22. <div class="topNavItem">
  23. <NuxtLink href="#">法院</NuxtLink>
  24. </div>
  25. <div class="topNavItem">
  26. <NuxtLink href="#">司法</NuxtLink>
  27. </div>
  28. <div class="topNavItem">
  29. <NuxtLink href="#">纪检监察</NuxtLink>
  30. </div>
  31. <div class="topNavItem">
  32. <NuxtLink href="#">信访</NuxtLink>
  33. </div>
  34. <div class="topNavItem">
  35. <NuxtLink href="#">政法委</NuxtLink>
  36. </div>
  37. <div class="topNavItem">
  38. <NuxtLink href="#">国安</NuxtLink>
  39. </div>
  40. </div>
  41. <div class="areaList">
  42. <select name="area" id="">
  43. <option value="">省</option>
  44. <option value="">北京市</option>
  45. <option value="">河北省</option>
  46. </select>
  47. <select name="area" id="">
  48. <option value="">市</option>
  49. <option value="">石家庄</option>
  50. <option value="">保定</option>
  51. <option value="">秦皇岛</option>
  52. </select>
  53. <select name="area" id="">
  54. <option value="">区</option>
  55. <option value="">桥西区</option>
  56. <option value="">莲池区</option>
  57. <option value="">海港区</option>
  58. </select>
  59. </div>
  60. <div class="webSiteList">
  61. <div class="webSiteItem" v-for="item in 21">
  62. <NuxtLink href="">
  63. <span>法制资讯网</span>
  64. <span>http://fzzxw.org.cn</span>
  65. </NuxtLink>
  66. </div>
  67. </div>
  68. <!-- 分页器 -->
  69. <div class="pagination pagination_phone_none" v-if="total > 0">
  70. <el-pagination size="small" background layout="total, prev, pager, next" :total="total" class="mt-4"
  71. :page-size="pageSize" :current-page="pageNum" prev-text="上一页" next-text="下一页"
  72. @current-change="changePage" />
  73. </div>
  74. <div class="pagination pagination_pc_none" v-if="total > 0">
  75. <el-pagination pager-count="5" size="small" background layout="pager" :total="total" class="mt-4"
  76. :page-size="pageSize" :current-page="pageNum" @current-change="changePage" />
  77. </div>
  78. </div>
  79. </template>
  80. <script setup>
  81. import { ref, onMounted } from 'vue'
  82. import { ElPagination } from 'element-plus'
  83. // 分页器
  84. let pageNum = ref(1);
  85. let total = ref(1);
  86. let pageSize = ref(10);
  87. // 分页器切换页码
  88. const changePage = (val) => {
  89. pageNum.value = val;
  90. }
  91. </script>
  92. <style lang="less" scoped>
  93. @media screen and (min-width: 1401px) {
  94. .hundredWebSite {
  95. font-family: '微软雅黑', Microsoft YaHei;
  96. .topNavList {
  97. width: 100%;
  98. height: auto;
  99. overflow: hidden;
  100. background: #007eff;
  101. border-radius: 10PX;
  102. border: 1px solid #ccc;
  103. .topNavItem {
  104. float: left;
  105. height: 50PX;
  106. line-height: 50PX;
  107. width: 150PX;
  108. text-align: center;
  109. a {
  110. font-size: 20PX;
  111. color: #fff;
  112. display: block;
  113. padding: 0 10PX;
  114. }
  115. &:hover {
  116. a {
  117. text-decoration: underline;
  118. }
  119. }
  120. }
  121. .active {
  122. background: #fff;
  123. a {
  124. color: #007eff;
  125. }
  126. }
  127. }
  128. .areaList {
  129. width: 100%;
  130. height: auto;
  131. overflow: hidden;
  132. margin: 20PX 0;
  133. select {
  134. width: 21%;
  135. height: 40PX;
  136. line-height: 40PX;
  137. text-align: center;
  138. float: left;
  139. margin: 0 2%;
  140. border-radius: 10PX;
  141. border: 1PX solid #ccc;
  142. font-size: 18PX;
  143. }
  144. }
  145. .webSiteList {
  146. width: 100%;
  147. height: auto;
  148. overflow: hidden;
  149. // padding: 20PX 0;
  150. box-sizing: border-box;
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-between;
  154. .webSiteItem {
  155. width: 23%;
  156. height: auto;
  157. overflow: hidden;
  158. border: 1PX solid #ccc;
  159. border-radius: 10PX;
  160. text-align: center;
  161. margin: 15PX 1%;
  162. padding: 10PX 0;
  163. box-sizing: border-box;
  164. a {
  165. margin: 10PX 0;
  166. span {
  167. display: block;
  168. width: 100%;
  169. height: 25PX;
  170. line-height: 25PX;
  171. overflow: hidden;
  172. font-size: 16PX;
  173. color: #333;
  174. text-align: center;
  175. padding: 5PX 0;
  176. }
  177. }
  178. &:hover {
  179. border: 1PX solid #036af7;
  180. a {
  181. text-decoration: underline;
  182. text-decoration-color: #666;
  183. span {
  184. color: #036af7;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. // 分页器
  191. .pagination {
  192. width: 100%;
  193. height: 34PX;
  194. margin-left: 141PX;
  195. display: flex;
  196. justify-content: center;
  197. margin: 20PX 0;
  198. padding: 10PX 0;
  199. .el-pagination::v-deep {
  200. font-size: 12px;
  201. }
  202. // 鼠标移入后字体颜色
  203. .el-pagination::v-deep :hover {
  204. color: #1aa0f7;
  205. }
  206. .el-pagination.is-background::v-deep .btn-next,
  207. .el-pagination.is-background::v-deep .btn-prev {
  208. width: 70PX;
  209. height: 34PX;
  210. margin: 0PX 10PX;
  211. border-radius: 4PX;
  212. }
  213. .el-pagination.is-background::v-deep .el-pager li {
  214. margin: 0PX 10PX;
  215. width: 38PX;
  216. height: 34PX;
  217. border-radius: 4PX;
  218. }
  219. .el-pagination.is-background::v-deep .btn-next.is-active,
  220. .el-pagination.is-background::v-deep .btn-prev.is-active,
  221. .el-pagination.is-background::v-deep .el-pager li.is-active {
  222. background-color: #1aa0f7;
  223. color: #fff;
  224. }
  225. }
  226. .pagination_pc_none {
  227. display: none;
  228. }
  229. }
  230. }
  231. @media screen and (min-width: 801px) and (max-width: 1400px) {
  232. .hundredWebSite {
  233. font-family: '微软雅黑', Microsoft YaHei;
  234. .topNavList {
  235. width: 100%;
  236. height: auto;
  237. overflow: hidden;
  238. background: #007eff;
  239. border-radius: 10PX;
  240. border: 1px solid #ccc;
  241. .topNavItem {
  242. float: left;
  243. height: 50PX;
  244. line-height: 50PX;
  245. width: 150PX;
  246. text-align: center;
  247. a {
  248. font-size: 20PX;
  249. color: #fff;
  250. display: block;
  251. padding: 0 10PX;
  252. }
  253. &:hover {
  254. a {
  255. text-decoration: underline;
  256. }
  257. }
  258. }
  259. .active {
  260. background: #fff;
  261. a {
  262. color: #007eff;
  263. }
  264. }
  265. }
  266. .areaList {
  267. width: 100%;
  268. height: auto;
  269. overflow: hidden;
  270. margin: 20PX 0;
  271. select {
  272. width: 21%;
  273. height: 40PX;
  274. line-height: 40PX;
  275. text-align: center;
  276. float: left;
  277. margin: 0 2%;
  278. border-radius: 10PX;
  279. border: 1PX solid #ccc;
  280. font-size: 18PX;
  281. }
  282. }
  283. .webSiteList {
  284. width: 100%;
  285. height: auto;
  286. overflow: hidden;
  287. // padding: 20PX 0;
  288. box-sizing: border-box;
  289. display: flex;
  290. flex-wrap: wrap;
  291. justify-content: flex-start;
  292. .webSiteItem {
  293. height: auto;
  294. overflow: hidden;
  295. border: 1PX solid #ccc;
  296. border-radius: 10PX;
  297. text-align: center;
  298. margin: 15PX 1%;
  299. padding: 10PX 25PX;
  300. box-sizing: border-box;
  301. a {
  302. margin: 10PX 0;
  303. span {
  304. display: block;
  305. width: 100%;
  306. height: 25PX;
  307. line-height: 25PX;
  308. overflow: hidden;
  309. font-size: 16PX;
  310. color: #333;
  311. text-align: center;
  312. padding: 5PX 0;
  313. }
  314. }
  315. &:hover {
  316. border: 1PX solid #036af7;
  317. a {
  318. text-decoration: underline;
  319. text-decoration-color: #666;
  320. span {
  321. color: #036af7;
  322. }
  323. }
  324. }
  325. }
  326. }
  327. // 分页器
  328. .pagination {
  329. width: 100%;
  330. height: 34PX;
  331. margin-left: 141PX;
  332. display: flex;
  333. justify-content: center;
  334. margin: 20PX 0;
  335. padding: 10PX 0;
  336. .el-pagination::v-deep {
  337. font-size: 12px;
  338. }
  339. // 鼠标移入后字体颜色
  340. .el-pagination::v-deep :hover {
  341. color: #1aa0f7;
  342. }
  343. .el-pagination.is-background::v-deep .btn-next,
  344. .el-pagination.is-background::v-deep .btn-prev {
  345. width: 70PX;
  346. height: 34PX;
  347. margin: 0PX 10PX;
  348. border-radius: 4PX;
  349. }
  350. .el-pagination.is-background::v-deep .el-pager li {
  351. margin: 0PX 10PX;
  352. width: 38PX;
  353. height: 34PX;
  354. border-radius: 4PX;
  355. }
  356. .el-pagination.is-background::v-deep .btn-next.is-active,
  357. .el-pagination.is-background::v-deep .btn-prev.is-active,
  358. .el-pagination.is-background::v-deep .el-pager li.is-active {
  359. background-color: #1aa0f7;
  360. color: #fff;
  361. }
  362. }
  363. .pagination_pc_none {
  364. display: none;
  365. }
  366. }
  367. }
  368. @media screen and (max-width: 800px) {
  369. .hundredWebSite {
  370. font-family: '微软雅黑', Microsoft YaHei;
  371. .topNavList {
  372. width: 100%;
  373. height: auto;
  374. overflow: hidden;
  375. background: #007eff;
  376. border-radius: 10PX;
  377. border: 1px solid #ccc;
  378. .topNavItem {
  379. float: left;
  380. height: 100px;
  381. line-height: 100px;
  382. width: 50%;
  383. text-align: center;
  384. a {
  385. font-size: 38px;
  386. color: #fff;
  387. display: block;
  388. padding: 0 20px;
  389. }
  390. &:hover {
  391. a {
  392. text-decoration: underline;
  393. }
  394. }
  395. }
  396. .active {
  397. background: #fff;
  398. a {
  399. color: #007eff;
  400. }
  401. }
  402. }
  403. .areaList {
  404. width: 100%;
  405. height: auto;
  406. overflow: hidden;
  407. margin: 20PX 0;
  408. select {
  409. width: 29%;
  410. height: 80px;
  411. line-height: 80px;
  412. text-align: center;
  413. float: left;
  414. margin: 0 2%;
  415. border-radius: 20px;
  416. border: 2px solid #ccc;
  417. font-size: 30px;
  418. }
  419. }
  420. .webSiteList {
  421. width: 100%;
  422. height: auto;
  423. overflow: hidden;
  424. // padding: 20px 0;
  425. box-sizing: border-box;
  426. display: flex;
  427. flex-wrap: wrap;
  428. justify-content: space-between;
  429. .webSiteItem {
  430. width: 100%;
  431. height: auto;
  432. overflow: hidden;
  433. border: 2px solid #ccc;
  434. border-radius: 20px;
  435. text-align: center;
  436. margin: 15px 1%;
  437. padding: 10px 0;
  438. box-sizing: border-box;
  439. a {
  440. margin: 20px 0;
  441. span {
  442. display: block;
  443. width: 100%;
  444. height: 50px;
  445. line-height: 50px;
  446. overflow: hidden;
  447. font-size: 32px;
  448. color: #333;
  449. text-align: center;
  450. padding: 10px 0;
  451. }
  452. }
  453. &:active {
  454. border: 1PX solid #036af7;
  455. a {
  456. text-decoration: underline;
  457. text-decoration-color: #666;
  458. span {
  459. color: #036af7;
  460. }
  461. }
  462. }
  463. }
  464. }
  465. // 分页器
  466. .pagination {
  467. width: 100%;
  468. height: 68px;
  469. margin-left: 282px;
  470. display: flex;
  471. justify-content: center;
  472. margin: 40px 0;
  473. // 鼠标移入后字体颜色
  474. .el-pagination::v-deep :hover {
  475. color: #1aa0f7;
  476. }
  477. .el-pagination.is-background::v-deep .btn-next,
  478. .el-pagination.is-background::v-deep .btn-prev {
  479. width: 140px;
  480. height: 68px;
  481. margin: 0px 20px;
  482. border-radius: 8px;
  483. }
  484. .el-pagination.is-background::v-deep .el-pager li {
  485. margin: 0px 20px;
  486. width: 68px;
  487. height: 68px;
  488. border-radius: 8px;
  489. font-size: 28px;
  490. }
  491. .el-pagination.is-background::v-deep .btn-next.is-active,
  492. .el-pagination.is-background::v-deep .btn-prev.is-active,
  493. .el-pagination.is-background::v-deep .el-pager li.is-active {
  494. background-color: #1aa0f7;
  495. color: #fff;
  496. }
  497. }
  498. .pagination_phone_none {
  499. display: none;
  500. }
  501. }
  502. }
  503. </style>