pageNavigation.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <template>
  2. <div class="nav">
  3. <div class="partOne">
  4. <div class="itemHome">
  5. <a href="/">首页</a>
  6. </div>
  7. <div class="itemContent">
  8. <div v-for="item in navList1" :key="item.name" class="item">
  9. <a :href="item.url">{{ item.name }}</a>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="partTwo">
  14. <div class="itemHome">
  15. <a href="#">互动</a>
  16. </div>
  17. <div class="itemContent">
  18. <div v-for="item in navList2" :key="item.name" class="item">
  19. <a :href="item.url">{{ item.name }}</a>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="partThree">
  24. <div class="itemHome">
  25. <a href="#">查询</a>
  26. </div>
  27. <div class="itemContent">
  28. <div v-for="item in navList3" :key="item.name" class="item">
  29. <a :href="item.url">{{ item.name }}</a>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script setup>
  36. const navList1 = [
  37. {
  38. name: '法制资讯',
  39. url: '/'
  40. },
  41. {
  42. name: '各地动态',
  43. url: '/about'
  44. },
  45. {
  46. name: '特别关注',
  47. url: '/law'
  48. },
  49. {
  50. name: '媒体视点',
  51. url: '/case'
  52. },
  53. {
  54. name: '法纪通报',
  55. url: '/contact'
  56. },
  57. {
  58. name: '今日说法',
  59. url: '/contact'
  60. },
  61. {
  62. name: '政策法规',
  63. url: '/case'
  64. },
  65. {
  66. name: '政策解读',
  67. url: '/'
  68. },
  69. {
  70. name: '政务公开',
  71. url: '/about'
  72. },
  73. {
  74. name: '内参纪要',
  75. url: '/law'
  76. },
  77. {
  78. name: '执法在线',
  79. url: '/case'
  80. },
  81. {
  82. name: '法制监察',
  83. url: '/contact'
  84. },
  85. {
  86. name: '监督调查',
  87. url: '/contact'
  88. },
  89. {
  90. name: '社会调研',
  91. url: '/case'
  92. },
  93. {
  94. name: '典型案例',
  95. url: '/'
  96. },
  97. {
  98. name: '廉政时讯',
  99. url: '/about'
  100. },
  101. {
  102. name: '法制时评',
  103. url: '/law'
  104. },
  105. {
  106. name: '法制宣传',
  107. url: '/case'
  108. },
  109. {
  110. name: '百姓话题',
  111. url: '/contact'
  112. },
  113. {
  114. name: '投诉举报',
  115. url: '/contact'
  116. },
  117. {
  118. name: '经济与法',
  119. url: '/case'
  120. },
  121. {
  122. name: '法制建设',
  123. url: '/case'
  124. }
  125. ]
  126. const navList2 = [
  127. {
  128. name: '领导信箱',
  129. url: '/'
  130. },
  131. {
  132. name: '投诉举报',
  133. url: '/about'
  134. },
  135. {
  136. name: '网上政务',
  137. url: '/law'
  138. },
  139. {
  140. name: '志愿服务',
  141. url: '/case'
  142. },
  143. {
  144. name: '公益活动',
  145. url: '/contact'
  146. },
  147. {
  148. name: '在线服务',
  149. url: '/contact'
  150. },
  151. {
  152. name: '网民留言',
  153. url: '/wangminliuyan'
  154. },
  155. {
  156. name: '法制知识',
  157. url: '/'
  158. },
  159. {
  160. name: '法律咨询',
  161. url: '/falvzixun'
  162. },
  163. {
  164. name: '通知公告',
  165. url: '/law'
  166. },
  167. {
  168. name: '官网导航',
  169. url: '/guanwangdaohang'
  170. }
  171. ]
  172. const navList3 = [
  173. {
  174. name: '人员查询',
  175. url: '/'
  176. },
  177. {
  178. name: '车辆查询',
  179. url: '/about'
  180. },
  181. {
  182. name: '地市中心',
  183. url: '/law'
  184. },
  185. {
  186. name: '调研选题',
  187. url: '/case'
  188. },
  189. {
  190. name: '介绍信查询',
  191. url: '/contact'
  192. },
  193. {
  194. name: '核心网站',
  195. url: '/hexinwangzhan'
  196. },
  197. {
  198. name: '政务百网',
  199. url: '/zhengwubaiwang'
  200. },
  201. {
  202. name: '行业百网',
  203. url: '/hangyebaiwang'
  204. },
  205. {
  206. name: '规章制度',
  207. url: '/guizhangzhidu'
  208. },
  209. {
  210. name: '申请加入',
  211. url: '/shenqingjiaru'
  212. },
  213. {
  214. name: '项目官网',
  215. url: '/xiangmuguanwang'
  216. }
  217. ]
  218. </script>
  219. <style lang="less" scoped>
  220. // >1400px
  221. @media screen and (min-width: 1401px) {
  222. .nav {
  223. position: sticky; //粘性定位
  224. top: 0; //滚动到距离顶部0px时固定
  225. z-index: 999; //保证固定时在其他内容上方
  226. width: 100%;
  227. font-family: "微软雅黑", "microsoft yahei";
  228. .partOne {
  229. width: 1400PX;
  230. height: 70PX;
  231. background-color: #49cdf9;
  232. margin: 0 auto;
  233. display: flex;
  234. justify-content: center;
  235. align-items: center;
  236. .itemHome {
  237. width: 70PX;
  238. height: 70PX;
  239. line-height: 70PX;
  240. float: left;
  241. overflow: hidden;
  242. font-size: 16PX;
  243. color: #fff;
  244. font-weight: bold;
  245. text-align: center;
  246. a {
  247. font-size: 16PX;
  248. font-weight: bold;
  249. color: #fff;
  250. }
  251. }
  252. .itemContent {
  253. width: 1330PX;
  254. height: 70PX;
  255. line-height: 27PX;
  256. .item {
  257. width: 120PX;
  258. float: left;
  259. a {
  260. display: inline-block;
  261. width: 120PX;
  262. font-size: 16PX;
  263. font-weight: bold;
  264. color: #fff;
  265. text-align: center;
  266. &:hover {
  267. color: #FF8000;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. .partTwo {
  274. width: 1400PX;
  275. height: 40PX;
  276. background-color: #134ac6;
  277. margin: 0 auto;
  278. border-top: 4PX solid #fff;
  279. .itemHome {
  280. width: 70PX;
  281. height: 40PX;
  282. line-height: 40PX;
  283. float: left;
  284. overflow: hidden;
  285. font-size: 16PX;
  286. color: #fff;
  287. font-weight: bold;
  288. text-align: center;
  289. a {
  290. font-size: 16PX;
  291. font-weight: bold;
  292. color: #fff;
  293. }
  294. }
  295. .itemContent {
  296. .item {
  297. width: 120PX;
  298. float: left;
  299. line-height: 30PX;
  300. a {
  301. display: inline-block;
  302. width: 120PX;
  303. font-size: 16PX;
  304. font-weight: bold;
  305. color: #fff;
  306. text-align: center;
  307. &:hover {
  308. color: #FF8000;
  309. }
  310. }
  311. }
  312. }
  313. }
  314. .partThree {
  315. width: 1400PX;
  316. height: 40PX;
  317. background-color: #b1006a;
  318. margin: 0 auto;
  319. border-top: 4PX solid #fff;
  320. .itemHome {
  321. width: 70PX;
  322. height: 40PX;
  323. line-height: 40PX;
  324. float: left;
  325. overflow: hidden;
  326. font-size: 16PX;
  327. color: #fff;
  328. font-weight: bold;
  329. text-align: center;
  330. a {
  331. font-size: 16PX;
  332. font-weight: bold;
  333. color: #fff;
  334. }
  335. }
  336. .itemContent {
  337. height: 40PX;
  338. line-height: 40PX;
  339. .item {
  340. width: 120PX;
  341. float: left;
  342. line-height: 30PX;
  343. a {
  344. display: inline-block;
  345. width: 120PX;
  346. font-size: 16PX;
  347. font-weight: bold;
  348. color: #fff;
  349. text-align: center;
  350. &:hover {
  351. color: #FF8000;
  352. }
  353. }
  354. }
  355. }
  356. }
  357. }
  358. }
  359. // 800px-1400px
  360. @media (min-width: 801px) and (max-width: 1400px) {
  361. .nav {
  362. position: sticky; //粘性定位
  363. top: 0; //滚动到距离顶部0px时固定
  364. z-index: 999; //保证固定时在其他内容上方
  365. width: 100%;
  366. font-family: "微软雅黑", "microsoft yahei";
  367. .partOne {
  368. width: 100%;
  369. height: auto;
  370. background-color: #49cdf9;
  371. margin: 0 auto;
  372. display: flex;
  373. justify-content: center;
  374. align-items: center;
  375. .itemHome {
  376. width: 8%;
  377. overflow: hidden;
  378. font-size: 16PX;
  379. color: #fff;
  380. font-weight: bold;
  381. text-align: center;
  382. a {
  383. font-size: 16PX;
  384. font-weight: bold;
  385. color: #fff;
  386. }
  387. }
  388. .itemContent {
  389. width: 92%;
  390. line-height: 30PX;
  391. .item {
  392. width: 120PX;
  393. float: left;
  394. a {
  395. display: inline-block;
  396. width: 120PX;
  397. font-size: 16PX;
  398. font-weight: bold;
  399. color: #fff;
  400. text-align: center;
  401. &:hover {
  402. color: #FF8000;
  403. }
  404. }
  405. }
  406. }
  407. }
  408. .partTwo {
  409. width: 100%;
  410. height: auto;
  411. background-color: #134ac6;
  412. margin: 0 auto;
  413. border-top: 4PX solid #fff;
  414. overflow: hidden;
  415. display: flex;
  416. justify-content: center;
  417. align-items: center;
  418. .itemHome {
  419. width: 8%;
  420. height: auto;
  421. overflow: hidden;
  422. font-size: 16PX;
  423. color: #fff;
  424. font-weight: bold;
  425. text-align: center;
  426. a {
  427. font-size: 16PX;
  428. font-weight: bold;
  429. color: #fff;
  430. }
  431. }
  432. .itemContent {
  433. width: 92%;
  434. line-height: 30PX;
  435. .item {
  436. width: 120PX;
  437. float: left;
  438. line-height: 30PX;
  439. a {
  440. display: inline-block;
  441. width: 120PX;
  442. font-size: 16PX;
  443. font-weight: bold;
  444. color: #fff;
  445. text-align: center;
  446. &:hover {
  447. color: #FF8000;
  448. }
  449. }
  450. }
  451. }
  452. }
  453. .partThree {
  454. width: 100%;
  455. height: auto;
  456. background-color: #b1006a;
  457. margin: 0 auto;
  458. border-top: 4PX solid #fff;
  459. display: flex;
  460. justify-content: center;
  461. align-items: center;
  462. .itemHome {
  463. width: 8%;
  464. overflow: hidden;
  465. font-size: 16PX;
  466. color: #fff;
  467. font-weight: bold;
  468. text-align: center;
  469. a {
  470. font-size: 16PX;
  471. font-weight: bold;
  472. color: #fff;
  473. }
  474. }
  475. .itemContent {
  476. width: 92%;
  477. line-height: 30PX;
  478. .item {
  479. width: 120PX;
  480. float: left;
  481. line-height: 30PX;
  482. a {
  483. display: inline-block;
  484. width: 120PX;
  485. font-size: 16PX;
  486. font-weight: bold;
  487. color: #fff;
  488. text-align: center;
  489. &:hover {
  490. color: #FF8000;
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. }
  498. // <=800px
  499. @media (max-width: 800px) {
  500. .nav {
  501. display: none;
  502. }
  503. }
  504. </style>