pageHead.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <template>
  2. <div>
  3. <div class="headTitle">
  4. <div class="left">
  5. <a href="#">欢迎来到全国法制调研中心!</a>
  6. </div>
  7. <div class="right" @click="isShowNav = !isShowNav">
  8. <span>首页</span>
  9. <img src="../../public/index/btn.png" alt="">
  10. </div>
  11. </div>
  12. <div class="phoneNavList" v-show="isShowNav">
  13. <div class="login">
  14. <a href="#">用户登录</a>
  15. </div>
  16. <div class="navlist1">
  17. <a href="#">法制资讯</a>
  18. <a href="#">各地动态</a>
  19. <a href="#">特别关注</a>
  20. <a href="#">媒体视点</a>
  21. <a href="#">法纪通报</a>
  22. <a href="#">今日说法</a>
  23. <a href="#">政策法规</a>
  24. <a href="#">政策解读</a>
  25. <a href="#">政务公开</a>
  26. <a href="#">内参纪要</a>
  27. <a href="#">执法在线</a>
  28. <a href="#">法制监察</a>
  29. <a href="#">监督调查</a>
  30. <a href="#">社会调研</a>
  31. <a href="#">典型案例</a>
  32. <a href="#">廉政时讯</a>
  33. <a href="#">法制时评</a>
  34. <a href="#">法制宣传</a>
  35. <a href="#">百姓话题</a>
  36. <a href="#">举报投诉</a>
  37. <a href="#">经济与法</a>
  38. <a href="#">法制建设</a>
  39. </div>
  40. <div class="navlist1">
  41. <a href="#">领导信箱</a>
  42. <a href="#">投诉举报</a>
  43. <a href="#">网上政务</a>
  44. <a href="#">志愿服务</a>
  45. <a href="#">公益活动</a>
  46. <a href="#">在线服务</a>
  47. <a href="#">网民留言</a>
  48. <a href="#">法制知识</a>
  49. <a href="#">法律咨询</a>
  50. <a href="#">通知公告</a>
  51. <a href="#">官网导航</a>
  52. </div>
  53. <div class="navlist1">
  54. <a href="#">人员查询</a>
  55. <a href="#">车辆查询</a>
  56. <a href="#">地市中心</a>
  57. <a href="#">调研选题</a>
  58. <a href="#">介绍信查询</a>
  59. <a href="#">核心网站</a>
  60. <a href="#">政务百网</a>
  61. <a href="#">行业百网</a>
  62. <a href="#">规章制度</a>
  63. <a href="#">申请加入</a>
  64. <a href="#">项目官网</a>
  65. </div>
  66. <div class="close" @click="isShowNav = false">
  67. <img src="../../public/index/no.png" alt="">
  68. </div>
  69. </div>
  70. <div class="pageHead">
  71. <div class="head">
  72. <div class="inner">
  73. <div class="left">
  74. <a href="#">欢迎来到全国法制调研中心!</a>
  75. </div>
  76. <div class="right">
  77. <a href="#">收藏</a>
  78. <span>|</span>
  79. <a href="/renyuanchaxun">人员查询</a>
  80. <span>|</span>
  81. <a href="/cheliangchaxun">车辆查询</a>
  82. <span>|</span>
  83. <a href="#">用户登录</a>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="content">
  88. <div class="topTitle">
  89. <a href="#">公安部</a>
  90. <a href="#">最高人民法院</a>
  91. <a href="#">最高人民检察院</a>
  92. <a href="#">司法部</a>
  93. <a href="#">中央纪委国家监委</a>
  94. </div>
  95. <div class="bottomContent">
  96. <div class="leftLogo">
  97. <img src="../../public/index/logo.png" alt="">
  98. </div>
  99. <div class="contentRight">
  100. <h1 class="title">
  101. <a href="#">全国法制调研中心 官网</a>
  102. </h1>
  103. <div class="subtitle">
  104. <a href="#">全国政务信息一体化应用平台</a>
  105. <a href="#">fazhidy.org.cn</a>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cxBtn">
  111. <div class="cxBtnItem">
  112. <a href="/renyuanchaxun">人员查询</a>
  113. </div>
  114. <div class="cxBtnItem">
  115. <a href="/cheliangchaxun">车辆查询</a>
  116. </div>
  117. <div class="cxBtnItem">
  118. <a href="/dishizhongxin">地市中心</a>
  119. </div>
  120. <div class="cxBtnItem">
  121. <a href="/diaoyanxuanti">调研选题</a>
  122. </div>
  123. <div class="cxBtnItem">
  124. <a href="/jieshaoxinchaxun">介绍信查询</a>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </template>
  130. <script setup>
  131. import { ref } from 'vue'
  132. const isShowNav = ref(false)
  133. </script>
  134. <style scoped lang="less">
  135. // PC端 >1400px
  136. @media screen and (min-width: 1401px) {
  137. .headTitle {
  138. display: none;
  139. }
  140. .phoneNavList {
  141. display: none;
  142. }
  143. .pageHead {
  144. width: 100%;
  145. height: 315PX;
  146. background: url(../../public/index/banner.jpg) no-repeat center top;
  147. background-size: 100% 100%;
  148. .head {
  149. width: 100%;
  150. background-color: rgba(255, 255, 255, .7);
  151. border-bottom: 2PX solid #ccc;
  152. margin-bottom: 20PX;
  153. .inner {
  154. width: 1400PX;
  155. margin: 0 auto;
  156. line-height: 38PX;
  157. font-family: "微软雅黑", "microsoft yahei";
  158. display: flex;
  159. justify-content: space-between;
  160. .left {
  161. a {
  162. color: #0f50d5;
  163. font-size: 18PX;
  164. }
  165. }
  166. .right {
  167. a {
  168. color: #0f50d5;
  169. font-size: 18PX;
  170. padding: 0 10PX;
  171. box-sizing: border-box;
  172. }
  173. span {
  174. font-size: 14PX;
  175. color: #333;
  176. }
  177. }
  178. }
  179. }
  180. .content {
  181. width: 100%;
  182. height: 190PX;
  183. width: 1300PX;
  184. margin: 0 auto;
  185. .topTitle {
  186. display: flex;
  187. justify-content: flex-end;
  188. a {
  189. font-size: 22PX;
  190. color: #0828bb;
  191. font-weight: bold;
  192. padding-left: 2%;
  193. text-shadow: 1PX 0 0 #fff, 0 1PX 0 #fff, 0 -1PX 0 #fff, -1PX 0 0 #fff, 1PX 0 1PX #fff, 0 1PX 1PX #fff, 0 -1PX 1PX #fff, -1PX 0 1PX #fff;
  194. }
  195. }
  196. .bottomContent {
  197. font-family: "微软雅黑", "microsoft yahei";
  198. display: flex;
  199. justify-content: space-between;
  200. .leftLogo {
  201. img {
  202. width: 180PX;
  203. height: 145PX;
  204. margin-top: 10PX;
  205. }
  206. }
  207. .contentRight {
  208. .title {
  209. height: 120PX;
  210. line-height: 120PX;
  211. a {
  212. font-size: 81PX;
  213. color: #0828bb;
  214. font-weight: bold;
  215. letter-spacing: 15PX;
  216. text-shadow: 2PX 0 0 #fff, 0 2PX 0 #fff, 0 -2PX 0 #fff, -2PX 0 0 #fff, 2PX 0 2PX #fff, 0 2PX 2PX #fff, 0 -2PX 2PX #fff, -2PX 0 2PX #fff;
  217. }
  218. }
  219. .subtitle {
  220. height: 40PX;
  221. line-height: 40PX;
  222. display: flex;
  223. justify-content: space-between;
  224. a {
  225. font-size: 22PX;
  226. color: #0828bb;
  227. font-weight: bold;
  228. text-shadow: 1PX 0 0 #fff, 0 1PX 0 #fff, 0 -1PX 0 #fff, -1PX 0 0 #fff, 1PX 0 1PX #fff, 0 1PX 1PX #fff, 0 -1PX 1PX #fff, -1PX 0 1PX #fff;
  229. }
  230. }
  231. }
  232. }
  233. }
  234. .cxBtn {
  235. width: 1300PX;
  236. margin: 0 auto;
  237. height: 40PX;
  238. line-height: 40PX;
  239. display: flex;
  240. justify-content: center;
  241. .cxBtnItem {
  242. width: 100PX;
  243. margin: 0 10PX;
  244. display: inline-block;
  245. line-height: 30PX;
  246. background: linear-gradient(to bottom, #52dcfb, #187ef1);
  247. text-align: center;
  248. a {
  249. font-size: 18PX;
  250. color: #fff;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. // 801px -- 1400px
  257. @media screen and (min-width: 801px) and (max-width: 1400px) {
  258. .headTitle {
  259. display: none;
  260. }
  261. .phoneNavList {
  262. display: none;
  263. }
  264. .pageHead {
  265. width: 100%;
  266. height: 310PX;
  267. background: url(../../public/index/banner.jpg) no-repeat center top;
  268. background-size: 100% 100%;
  269. .head {
  270. font-size: 14px;
  271. width: 100%;
  272. background-color: rgba(255, 255, 255, .7);
  273. border-bottom: 2px solid #ccc;
  274. margin-bottom: 20PX;
  275. padding: 0 1%;
  276. box-sizing: border-box;
  277. .inner {
  278. width: 100%;
  279. margin: 0 auto;
  280. line-height: 30px;
  281. font-family: "微软雅黑", "microsoft yahei";
  282. display: flex;
  283. justify-content: space-between;
  284. .left {
  285. a {
  286. color: #0f50d5;
  287. }
  288. }
  289. .right {
  290. a {
  291. color: #0f50d5;
  292. padding: 0 10px;
  293. box-sizing: border-box;
  294. }
  295. span {
  296. color: #333;
  297. }
  298. }
  299. }
  300. }
  301. .content {
  302. width: 100%;
  303. padding: 0 1%;
  304. box-sizing: border-box;
  305. .topTitle {
  306. display: flex;
  307. justify-content: flex-end;
  308. a {
  309. font-size: 22PX;
  310. color: #0828bb;
  311. font-weight: bold;
  312. padding-left: 2%;
  313. text-shadow: 1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff, 1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff, -1px 0 1px #fff;
  314. }
  315. }
  316. .bottomContent {
  317. font-family: "微软雅黑", "microsoft yahei";
  318. .leftLogo {
  319. width: 20%;
  320. float: left;
  321. img {
  322. width: 85px;
  323. height: 66px;
  324. margin-top: 10PX;
  325. margin-right: 20PX;
  326. }
  327. }
  328. .contentRight {
  329. width: 80%;
  330. float: left;
  331. .title {
  332. width: 100%;
  333. height: 100PX;
  334. line-height: 110PX;
  335. text-align: center;
  336. a {
  337. font-size: 28px;
  338. color: #0828bb;
  339. font-weight: bold;
  340. letter-spacing: 10px;
  341. text-shadow: 2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, -2px 0 0 #fff, 2px 0 2px #fff, 0 2px 2px #fff, 0 -2px 2px #fff, -2px 0 2px #fff;
  342. }
  343. }
  344. .subtitle {
  345. width: 100%;
  346. height: 40PX;
  347. line-height: 40PX;
  348. display: flex;
  349. justify-content: space-between;
  350. a {
  351. font-size: 22PX;
  352. color: #0828bb;
  353. font-weight: bold;
  354. text-shadow: 1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff, 1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff, -1px 0 1px #fff;
  355. }
  356. }
  357. }
  358. }
  359. }
  360. .cxBtn {
  361. width: 100%;
  362. margin: 0 auto;
  363. height: 40PX;
  364. padding-top: 10PX;
  365. display: flex;
  366. justify-content: center;
  367. .cxBtnItem {
  368. width: 100PX;
  369. margin: 0 10px;
  370. display: inline-block;
  371. line-height: 35PX;
  372. background: linear-gradient(to bottom, #52dcfb, #187ef1);
  373. text-align: center;
  374. a {
  375. font-size: 18PX;
  376. color: #fff;
  377. font-family: "微软雅黑", "microsoft yahei";
  378. }
  379. }
  380. }
  381. }
  382. }
  383. // 手机端 <= 800px
  384. @media screen and (max-width: 800px) {
  385. .headTitle {
  386. position: fixed;
  387. top: 0;
  388. left: 0;
  389. z-index: 9999999;
  390. font-family: "微软雅黑", "microsoft yahei";
  391. width: 100%;
  392. height: 90px;
  393. line-height: 90px;
  394. font-size: 30px;
  395. background-color: #f1f1f1;
  396. padding: 0 20px;
  397. box-sizing: border-box;
  398. overflow: hidden;
  399. .left {
  400. a {
  401. font-size: 30px;
  402. color: #000;
  403. }
  404. }
  405. .right {
  406. span {
  407. display: inline-block;
  408. margin-right: 20px;
  409. }
  410. img {
  411. width: 34px;
  412. height: 34px;
  413. vertical-align: -3px;
  414. }
  415. }
  416. }
  417. .phoneNavList {
  418. position: fixed;
  419. top: 90px;
  420. left: 0;
  421. z-index: 9999999;
  422. width: 100%;
  423. padding: 40px;
  424. box-sizing: border-box;
  425. background-color: #158d91;
  426. .login {
  427. width: 100%;
  428. height: 100px;
  429. line-height: 100px;
  430. border-bottom: 1px solid #c1c1c1;
  431. padding: 0 20px;
  432. a {
  433. font-size: 37px;
  434. color: #fff;
  435. padding: 10px 0;
  436. }
  437. }
  438. .navlist1 {
  439. width: 100%;
  440. display: flex;
  441. flex-wrap: wrap;
  442. justify-content: flex-start;
  443. border-bottom: 1px solid #c1c1c1;
  444. padding: 14px 0;
  445. a {
  446. font-size: 37px;
  447. color: #fff;
  448. padding: 6px 20px;
  449. }
  450. }
  451. .close {
  452. width: 100%;
  453. margin-top: 20px;
  454. text-align: center;
  455. img {
  456. width: 67px;
  457. height: 67px;
  458. }
  459. }
  460. }
  461. .pageHead {
  462. margin-top: 90px;
  463. font-family: "微软雅黑", "microsoft yahei";
  464. position: relative;
  465. width: 100%;
  466. height: 300px;
  467. background: url(../../public/index/banner.jpg) no-repeat center top;
  468. background-size: 100% 100%;
  469. overflow: hidden;
  470. .head {
  471. display: none;
  472. }
  473. .content {
  474. width: 100%;
  475. margin: 0 auto;
  476. .topTitle {
  477. display: none;
  478. }
  479. .bottomContent {
  480. width: 100%;
  481. height: auto;
  482. overflow: hidden;
  483. padding: 40px 20px;
  484. box-sizing: border-box;
  485. .leftLogo {
  486. width: 20%;
  487. float: left;
  488. margin-top: 0;
  489. img {
  490. width: 100%;
  491. }
  492. }
  493. .contentRight {
  494. width: 78%;
  495. float: right;
  496. overflow: hidden;
  497. height: auto;
  498. margin-top: 30px;
  499. .title {
  500. width: 100%;
  501. text-align: center;
  502. a {
  503. font-size: 37px;
  504. letter-spacing: 4px;
  505. color: #0828bb;
  506. font-weight: bold;
  507. text-shadow: 2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, -2px 0 0 #fff, 2px 0 2px #fff, 0 2px 2px #fff, 0 -2px 2px #fff, -2px 0 2px #fff;
  508. }
  509. }
  510. .subtitle {
  511. width: 100%;
  512. margin-top: 26px;
  513. display: flex;
  514. justify-content: space-between;
  515. a {
  516. font-size: 24px;
  517. color: #0828bb;
  518. font-weight: bold;
  519. text-shadow: 1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff, 1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff, -1px 0 1px #fff;
  520. }
  521. }
  522. }
  523. }
  524. }
  525. .cxBtn {
  526. width: 100%;
  527. margin: 0 auto;
  528. display: flex;
  529. justify-content: center;
  530. .cxBtnItem {
  531. width: 19%;
  532. margin: 0 10px;
  533. display: inline-block;
  534. height: 60px;
  535. line-height: 60px;
  536. background: linear-gradient(to bottom, #52dcfb, #187ef1);
  537. text-align: center;
  538. a {
  539. font-size: 24px;
  540. color: #fff;
  541. }
  542. }
  543. }
  544. }
  545. }
  546. </style>