pageNavigation.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <div class="headerNavBox">
  3. <NuxtLink to="/list-renyuanchaxun.html">人员查询</NuxtLink>
  4. <NuxtLink to="/list-cheliangchaxun.html">车辆查询</NuxtLink>
  5. <NuxtLink to="/list-dishizhongxin.html">地市中心</NuxtLink>
  6. <NuxtLink to="/list-diaoyanxuanti.html">调研选题</NuxtLink>
  7. <NuxtLink to="/list-jieshaoxinchaxun.html">介绍信查询</NuxtLink>
  8. </div>
  9. <div class="headerNav-pc">
  10. <div class="headerNavMainBox">
  11. <div class="headerNavTop">
  12. <div class="first">
  13. <NuxtLink to="/">首页</NuxtLink>
  14. </div>
  15. <ul>
  16. <li>
  17. <NuxtLink to="/sannongkejiao/nongcunjiaoyu/list-1.html">法制资讯</NuxtLink>
  18. </li>
  19. <li>
  20. <NuxtLink to="/sannongzixunzhifuxinxi/list-1.html">政策法规</NuxtLink>
  21. </li>
  22. <li>
  23. <NuxtLink to="/">各地动态</NuxtLink>
  24. </li>
  25. <li>
  26. <NuxtLink to="/">廉政时讯</NuxtLink>
  27. </li>
  28. <li>
  29. <NuxtLink to="/">政策解读</NuxtLink>
  30. </li>
  31. <li>
  32. <NuxtLink to="/">百家争鸣</NuxtLink>
  33. </li>
  34. <li>
  35. <NuxtLink to="/">经济与法</NuxtLink>
  36. </li>
  37. <li>
  38. <NuxtLink to="/">法治建设</NuxtLink>
  39. </li>
  40. <li>
  41. <NuxtLink to="/">法纪通报</NuxtLink>
  42. </li>
  43. <li>
  44. <NuxtLink to="/">社会调研</NuxtLink>
  45. </li>
  46. <li>
  47. <NuxtLink to="/">法制文化</NuxtLink>
  48. </li>
  49. <li>
  50. <NuxtLink to="/">特别关注</NuxtLink>
  51. </li>
  52. <li>
  53. <NuxtLink to="/">媒体视点</NuxtLink>
  54. </li>
  55. <li>
  56. <NuxtLink to="/">重点播报</NuxtLink>
  57. </li>
  58. <li>
  59. <NuxtLink to="/">今日说法</NuxtLink>
  60. </li>
  61. <li>
  62. <NuxtLink to="/">法制技术</NuxtLink>
  63. </li>
  64. <li>
  65. <NuxtLink to="/">执法在线</NuxtLink>
  66. </li>
  67. <li>
  68. <NuxtLink to="/">举报投诉</NuxtLink>
  69. </li>
  70. <li>
  71. <NuxtLink to="/">法制观察</NuxtLink>
  72. </li>
  73. <li>
  74. <NuxtLink to="/">典型案例</NuxtLink>
  75. </li>
  76. <li>
  77. <NuxtLink to="/">百姓话题</NuxtLink>
  78. </li>
  79. <li>
  80. <NuxtLink to="/">法制活动</NuxtLink>
  81. </li>
  82. </ul>
  83. </div>
  84. <div class="headerNavCenter">
  85. <div class="first">
  86. <NuxtLink to="/">互动</NuxtLink>
  87. </div>
  88. <ul>
  89. <li>
  90. <NuxtLink
  91. to="http://zwptfz.znxyw.org.cn/?s=ldxx&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  92. target="_blank">领导信箱</NuxtLink>
  93. </li>
  94. <li>
  95. <NuxtLink
  96. to="http://zwptfz.znxyw.org.cn/?s=jbts&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  97. target="_blank">投诉举报</NuxtLink>
  98. </li>
  99. <li>
  100. <NuxtLink
  101. to="http://zwptfz.znxyw.org.cn/?s=wszw&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  102. target="_blank">网上政务</NuxtLink>
  103. </li>
  104. <li>
  105. <NuxtLink to="/">志愿服务</NuxtLink>
  106. </li>
  107. <li>
  108. <NuxtLink to="/">公益活动</NuxtLink>
  109. </li>
  110. <li>
  111. <NuxtLink to="/">在线服务</NuxtLink>
  112. </li>
  113. <li>
  114. <NuxtLink to="/">网民留言</NuxtLink>
  115. </li>
  116. <li>
  117. <NuxtLink to="/">法制知识</NuxtLink>
  118. </li>
  119. <li>
  120. <NuxtLink to="/">法律咨询</NuxtLink>
  121. </li>
  122. <li>
  123. <NuxtLink to="/">通知公告</NuxtLink>
  124. </li>
  125. <li>
  126. <NuxtLink to="/">官网导航</NuxtLink>
  127. </li>
  128. </ul>
  129. </div>
  130. <div class="headerNavBottom">
  131. <div class="first">
  132. <NuxtLink to="/">查询</NuxtLink>
  133. </div>
  134. <ul>
  135. <li>
  136. <NuxtLink to="/">人员查询</NuxtLink>
  137. </li>
  138. <li>
  139. <NuxtLink to="/">车辆查询</NuxtLink>
  140. </li>
  141. <li>
  142. <NuxtLink to="/">地市中心</NuxtLink>
  143. </li>
  144. <li>
  145. <NuxtLink to="/">调研选题</NuxtLink>
  146. </li>
  147. <li>
  148. <NuxtLink to="/">介绍信查询</NuxtLink>
  149. </li>
  150. <li>
  151. <NuxtLink to="/">核心网站</NuxtLink>
  152. </li>
  153. <li>
  154. <NuxtLink to="/">政务百网</NuxtLink>
  155. </li>
  156. <li>
  157. <NuxtLink to="/">行业百网</NuxtLink>
  158. </li>
  159. <li>
  160. <NuxtLink to="/">规章制度</NuxtLink>
  161. </li>
  162. <li>
  163. <NuxtLink to="/">申请加入</NuxtLink>
  164. </li>
  165. <li>
  166. <NuxtLink to="/">项目官网</NuxtLink>
  167. </li>
  168. </ul>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="headerNavBox-mobile">
  173. <div class="headerNavBox-mobile-welcome">
  174. 欢迎来到全国法制资讯发布中心!
  175. </div>
  176. <div class="headerNavBox-mobile-btn">
  177. 首页
  178. <img src="@/public/index/btn.png" alt="" @click="openTopMenu = 2">
  179. </div>
  180. <div v-if="openTopMenu == 2" class="headerNavBox-mobile-menu">
  181. <div>
  182. <div class="headerNavBox-mobile-menu-list">
  183. <NuxtLink to="/" target="_blank">用户登录</NuxtLink>
  184. </div>
  185. <div class="headerNavBox-mobile-menu-list">
  186. <NuxtLink to="/sannongkejiao/nongcunjiaoyu/list-1.html">法制资讯</NuxtLink>
  187. <NuxtLink to="/sannongzixunzhifuxinxi/list-1.html">政策法规</NuxtLink>
  188. <NuxtLink to="/">各地动态</NuxtLink>
  189. <NuxtLink to="/">廉政时讯</NuxtLink>
  190. <NuxtLink to="/">政策解读</NuxtLink>
  191. <NuxtLink to="/">百家争鸣</NuxtLink>
  192. <NuxtLink to="/">经济与法</NuxtLink>
  193. <NuxtLink to="/">法治建设</NuxtLink>
  194. <NuxtLink to="/">法纪通报</NuxtLink>
  195. <NuxtLink to="/">社会调研</NuxtLink>
  196. <NuxtLink to="/">法制文化</NuxtLink>
  197. <NuxtLink to="/">特别关注</NuxtLink>
  198. <NuxtLink to="/">媒体视点</NuxtLink>
  199. <NuxtLink to="/">重点播报</NuxtLink>
  200. <NuxtLink to="/">今日说法</NuxtLink>
  201. <NuxtLink to="/">法制技术</NuxtLink>
  202. <NuxtLink to="/">执法在线</NuxtLink>
  203. <NuxtLink to="/">举报投诉</NuxtLink>
  204. <NuxtLink to="/">法制观察</NuxtLink>
  205. <NuxtLink to="/">典型案例</NuxtLink>
  206. <NuxtLink to="/">百姓话题</NuxtLink>
  207. <NuxtLink to="/">法制活动</NuxtLink>
  208. </div>
  209. <div class="headerNavBox-mobile-menu-list">
  210. <NuxtLink to="http://zwptfz.znxyw.org.cn/?s=ldxx&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  211. target="_blank">领导信箱</NuxtLink>
  212. <NuxtLink to="http://zwptfz.znxyw.org.cn/?s=jbts&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  213. target="_blank">投诉举报</NuxtLink>
  214. <NuxtLink to="http://zwptfz.znxyw.org.cn/?s=wszw&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn"
  215. target="_blank">网上政务</NuxtLink>
  216. <NuxtLink to="/">志愿服务</NuxtLink>
  217. <NuxtLink to="/">公益活动</NuxtLink>
  218. <NuxtLink to="/">在线服务</NuxtLink>
  219. <NuxtLink to="/">网民留言</NuxtLink>
  220. <NuxtLink to="/">法制知识</NuxtLink>
  221. <NuxtLink to="/">法律咨询</NuxtLink>
  222. <NuxtLink to="/">通知公告</NuxtLink>
  223. <NuxtLink to="/">官网导航</NuxtLink>
  224. </div>
  225. <div class="headerNavBox-mobile-menu-list">
  226. <NuxtLink to="/">人员查询</NuxtLink>
  227. <NuxtLink to="/">车辆查询</NuxtLink>
  228. <NuxtLink to="/">地市中心</NuxtLink>
  229. <NuxtLink to="/">调研选题</NuxtLink>
  230. <NuxtLink to="/">介绍信查询</NuxtLink>
  231. <NuxtLink to="/">核心网站</NuxtLink>
  232. <NuxtLink to="/">政务百网</NuxtLink>
  233. <NuxtLink to="/">行业百网</NuxtLink>
  234. <NuxtLink to="/">规章制度</NuxtLink>
  235. <NuxtLink to="/">申请加入</NuxtLink>
  236. <NuxtLink to="/">项目官网</NuxtLink>
  237. </div>
  238. </div>
  239. <div class="headerNavBox-mobile-menu-button">
  240. <img src="@/public/index/no.png" alt="" @click="openTopMenu = 1">
  241. </div>
  242. </div>
  243. </div>
  244. </template>
  245. <script setup>
  246. //1.加载依赖 start ---------------------------------------->
  247. import { ElMessage } from 'element-plus'
  248. import { ref, onMounted } from 'vue';
  249. import { ElSelect, ElOption } from 'element-plus'
  250. import { useRoute } from 'vue-router';
  251. const showZonePanel = ref(false)
  252. const nuxtApp = useNuxtApp();
  253. const axios = nuxtApp.$axios;
  254. const route = useRoute();
  255. const routeId = route.params.id; //获得该页面的id
  256. //1.加载依赖 end ---------------------------------------->
  257. //2.加载模块数据 start ---------------------------------------->
  258. // const navigation1 = ref("");
  259. const navigation1 = useState('globalNavData', () => ([]))
  260. async function getPageData2() {
  261. const mkdata = await requestDataPromise('/web/getWebsiteModelCategory', {
  262. method: 'GET',
  263. query: {
  264. 'placeid': 1,
  265. 'pid': 0,
  266. 'num': 35
  267. },
  268. });
  269. navigation1.value = mkdata.data;
  270. }
  271. getPageData2();
  272. const getLinkPath = (item) => {
  273. if (item.is_url == 1) {
  274. return `${item.web_url}`;
  275. } else if (item.children_count == 0) {
  276. return `/${item.aLIas_pinyin}/list-1.html`;
  277. } else {
  278. return `/${item.aLIas_pinyin}/index.html`;
  279. }
  280. }
  281. //2.加载模块数据 end ---------------------------------------->
  282. //3.职能部门 start ---------------------------------------->
  283. let department = ref("")
  284. const depValue = ref("")
  285. const typeValue = ref("")
  286. //3.职能部门 end ---------------------------------------->
  287. //4.展示行政区划 start ---------------------------------------->
  288. //let areaList = ref("")
  289. //4.1 省
  290. let province = ref("")
  291. let provinceid = ref("")
  292. let provinceList = ref("")
  293. //4.2 市
  294. let city = ref("")
  295. let cityid = ref("")
  296. let cityList = ref("")
  297. //4.3 县
  298. let region = ref("")
  299. let regionid = ref("")
  300. let regionList = ref("")
  301. //选择市
  302. let change = async (id) => {
  303. provinceid.value = id;
  304. const shengData = await requestDataPromise('/web/selectWebsiteArea', {
  305. method: 'GET',
  306. query: {
  307. 'pid': id,
  308. },
  309. });
  310. cityList.value = shengData.data;
  311. regionList.value = [];// 清空县
  312. }
  313. //选择县
  314. let change1 = async (id) => {
  315. cityid.value = id;
  316. const xianData = await requestDataPromise('/web/selectWebsiteArea', {
  317. method: 'GET',
  318. query: {
  319. 'pid': id,
  320. },
  321. });
  322. regionList.value = xianData.data;
  323. }
  324. let change2 = async (id) => {
  325. regionid.value = id;
  326. }
  327. //4.展示行政区划 end ---------------------------------------->
  328. //5.执行搜索 start ---------------------------------------->
  329. const getcityid = ref("")
  330. //获得cityid和11
  331. let goToPrimary = async () => {
  332. if (province.value != "") { getcityid.value = province.value }
  333. if (city.value != "") { getcityid.value = city.value }
  334. if (region.value != "") { getcityid.value = region.value }
  335. console.log("getcityid.value=======", getcityid.value)
  336. if (province.value == "" && city.value == "" && region.value == "" && depValue.value == "") {
  337. ElMessage.error('请选择行政区划或者职能部门!')
  338. } else {
  339. const route = `/search/search?catids=${getcityid.value}&department_id=${depValue.value}`;
  340. window.location.href = route;
  341. }
  342. }
  343. const close_panel_fun = () => {
  344. foot_btn_clear_fun();
  345. showZonePanel.value = false;
  346. }
  347. const foot_btn_clear_fun = () => {
  348. regionList.value = [];// 清空县
  349. region.value = "";// 清空县 名称
  350. city.value = "";// 清空市 名称
  351. cityList.value = [];// 清空市
  352. province.value = "";// 清空省 名称
  353. provinceid.value = "";// 清空省 id
  354. }
  355. let shake_bool = true // 声明在组件作用域顶部==防抖
  356. const nav_department_drop_a_fun = (departmentId) => {
  357. if (shake_bool === true) {//第1次点击
  358. shake_bool = false;
  359. depValue.value = departmentId;
  360. goToPrimary();
  361. // 行政职能查询
  362. ElMessage({
  363. message: '页面跳转中请稍等',
  364. type: 'success'
  365. });
  366. nav_department_drop_a_fun.timer = setTimeout(() => {
  367. shake_bool = true;
  368. }, 3333);
  369. } else {
  370. ElMessage({
  371. message: '请勿重复点击',
  372. type: 'warning'
  373. });
  374. }
  375. }
  376. //5.执行搜索 end ---------------------------------------->
  377. onMounted(async () => {
  378. //从客户端获取行政职能部门 加快打开速度
  379. try {
  380. const { $webUrl, $CwebUrl } = useNuxtApp();
  381. const response = await fetch($webUrl + '/web/selectWebsiteDepartment', {
  382. headers: {
  383. 'Content-Type': 'application/json',
  384. 'Userurl': $CwebUrl,
  385. 'Origin': $CwebUrl
  386. }
  387. });
  388. const result = await response.json();
  389. department.value = result.data;
  390. } catch (error) {
  391. console.error('获取部门数据失败:', error);
  392. }
  393. //从客户端获取行政区划
  394. try {
  395. const { $webUrl, $CwebUrl } = useNuxtApp();
  396. const response2 = await fetch($webUrl + '/web/selectWebsiteArea', {
  397. headers: {
  398. 'Content-Type': 'application/json',
  399. 'Userurl': $CwebUrl,
  400. 'Origin': $CwebUrl
  401. }
  402. });
  403. const result2 = await response2.json();
  404. provinceList.value = result2.data;
  405. } catch (error) {
  406. console.error('获取行政区划数据失败:', error);
  407. }
  408. const targetElement = document.querySelector('.pc_none li .router-link-exact-active');
  409. const parentElement = document.querySelector('.nav_in');
  410. if (targetElement && parentElement) {
  411. const targetRect = targetElement.getBoundingClientRect();
  412. const parentRect = parentElement.getBoundingClientRect();
  413. const distanceToParentLeft = targetRect.left - parentRect.left;
  414. const navigationElement = document.querySelector('.partOne .navigationOne');
  415. if (navigationElement) {
  416. navigationElement.scrollLeft = distanceToParentLeft - 66;
  417. }
  418. }
  419. })
  420. //打开顶部菜单 start ---------------------------------------->
  421. const openTopMenu = ref(1)
  422. //打开顶部菜单 end ---------------------------------------->
  423. </script>
  424. <style lang="less" scoped>
  425. //自适应 start ---------------------------------------->
  426. .headerNavBox-mobile {
  427. display: none;
  428. }
  429. .headerNav-pc {
  430. position: sticky;
  431. top: 0;
  432. z-index: 1000;
  433. width: 100%;
  434. }
  435. .headerNavBox {
  436. margin-top: 30PX;
  437. text-align: center;
  438. a {
  439. display: inline-block;
  440. margin: 0 20PX;
  441. width: 150PX;
  442. height: 40PX;
  443. line-height: 40PX;
  444. text-align: center;
  445. background: #fff;
  446. border-radius: 10PX;
  447. border: 1PX solid #0e28e6;
  448. font-size: 22PX;
  449. color: #0e28e6;
  450. font-weight: bold;
  451. }
  452. }
  453. .headerNavMainBox {
  454. max-width: 1400PX;
  455. width: 100%;
  456. background: #fff;
  457. overflow: hidden;
  458. border-radius: 4px;
  459. margin: 20px auto 0;
  460. .headerNavTop,
  461. .headerNavCenter,
  462. .headerNavBottom {
  463. ul {
  464. width: 92%;
  465. display: flex;
  466. flex-wrap: wrap;
  467. li {
  468. width: 120PX;
  469. height: 35PX;
  470. line-height: 35PX;
  471. text-align: center;
  472. display: flex;
  473. a {
  474. font-size: 20PX;
  475. color: #fff;
  476. }
  477. }
  478. }
  479. }
  480. .headerNavTop {
  481. width: 100%;
  482. overflow: hidden;
  483. background: #0e28e6;
  484. border-radius: 10PX;
  485. display: block;
  486. .first {
  487. width: 8%;
  488. height: 100PX;
  489. line-height: 100PX;
  490. overflow: hidden;
  491. float: left;
  492. text-align: center;
  493. a {
  494. font-size: 24PX;
  495. color: #fff;
  496. }
  497. }
  498. ul {
  499. margin-top: 11PX;
  500. }
  501. li {
  502. flex: 1;
  503. height: 40PX !important;
  504. line-height: 40PX !important;
  505. text-align: center !important;
  506. min-width: 9%;
  507. max-width: 13%;
  508. width: 13% !important;
  509. overflow: hidden;
  510. }
  511. li a {
  512. font-size: 20PX;
  513. color: #fff;
  514. font-weight: 400;
  515. }
  516. }
  517. .headerNavCenter {
  518. width: 100%;
  519. overflow: hidden;
  520. background: #fff;
  521. box-sizing: border-box;
  522. height: 40PX;
  523. border-radius: 10PX;
  524. border: 2PX solid #2a00dd;
  525. margin-top: 10PX;
  526. .first {
  527. background: #2a00dd;
  528. width: 8%;
  529. height: 40PX;
  530. line-height: 36PX;
  531. float: left;
  532. color: #fff;
  533. font-size: 24PX;
  534. font-weight: bold;
  535. text-align: center;
  536. a {
  537. font-size: 24PX;
  538. color: #fff;
  539. display: block;
  540. width: 100%;
  541. height: 40PX;
  542. line-height: 36PX;
  543. font-weight: normal;
  544. }
  545. }
  546. ul {
  547. width: 92%;
  548. height: auto;
  549. overflow: hidden;
  550. float: right;
  551. display: flex;
  552. flex-wrap: wrap;
  553. }
  554. ul li {
  555. flex: 1;
  556. height: 40PX;
  557. line-height: 40PX;
  558. text-align: center;
  559. min-width: 9%;
  560. max-width: 13%;
  561. width: 13%;
  562. overflow: hidden;
  563. }
  564. ul a {
  565. font-size: 20PX;
  566. color: #2a00dd !important;
  567. display: block;
  568. width: 100%;
  569. height: 40PX;
  570. line-height: 36PX;
  571. }
  572. }
  573. .headerNavBottom {
  574. width: 100%;
  575. overflow: hidden;
  576. background: #fff;
  577. box-sizing: border-box;
  578. height: 40PX;
  579. border-radius: 10PX;
  580. border: 2PX solid #dd3e00;
  581. margin-top: 10PX;
  582. .first {
  583. background: #dd3e00;
  584. width: 8%;
  585. height: 40PX;
  586. line-height: 36PX;
  587. float: left;
  588. color: #fff;
  589. font-size: 24PX;
  590. font-weight: bold;
  591. text-align: center;
  592. a {
  593. font-size: 24PX;
  594. color: #fff;
  595. display: block;
  596. width: 100%;
  597. height: 40PX;
  598. line-height: 36PX;
  599. font-weight: normal;
  600. }
  601. }
  602. ul {
  603. width: 92%;
  604. height: auto;
  605. overflow: hidden;
  606. float: right;
  607. display: flex;
  608. flex-wrap: wrap;
  609. }
  610. ul li {
  611. flex: 1;
  612. height: 40PX;
  613. line-height: 40PX;
  614. text-align: center;
  615. min-width: 9%;
  616. max-width: 13%;
  617. width: 13%;
  618. overflow: hidden;
  619. }
  620. ul a {
  621. font-size: 20PX;
  622. color: #dd3e00 !important;
  623. display: block;
  624. width: 100%;
  625. height: 40PX;
  626. line-height: 36PX;
  627. }
  628. }
  629. }
  630. @media screen and (max-width: 1400px) {
  631. .headerNavBox {
  632. margin-top: 15px;
  633. a {
  634. margin: 0 10px;
  635. width: 75px;
  636. height: 20px;
  637. line-height: 20px;
  638. border-radius: 5px;
  639. font-size: 11px;
  640. }
  641. }
  642. .headerNav-pc {
  643. box-sizing: border-box;
  644. padding: 0 10px;
  645. }
  646. .headerNavMainBox .headerNavTop ul li a,
  647. .headerNavMainBox .headerNavCenter ul li a,
  648. .headerNavMainBox .headerNavBottom ul li a {
  649. font-size: 11px;
  650. }
  651. .headerNavMainBox .headerNavTop .first a {
  652. font-size: 14px;
  653. }
  654. .headerNavMainBox .headerNavCenter .first a {
  655. font-size: 14px;
  656. }
  657. .headerNavMainBox .headerNavBottom .first a {
  658. font-size: 14px;
  659. }
  660. }
  661. @media screen and (min-width: 801px) and (max-width: 1400px) {
  662. .headerNavBox-mobile {
  663. display: none;
  664. }
  665. }
  666. @media screen and (max-width: 800px) {
  667. .headerNav-pc {
  668. position: sticky;
  669. top: 0;
  670. z-index: 1000;
  671. width: 100%;
  672. display: none;
  673. }
  674. .headerNavBox {
  675. width: 100%;
  676. text-align: center;
  677. display: flex;
  678. align-items: center;
  679. justify-content: space-between;
  680. box-sizing: border-box;
  681. padding: 0 5px;
  682. a {
  683. width: 19%;
  684. display: inline-block;
  685. height: 60px;
  686. line-height: 60px;
  687. box-sizing: border-box;
  688. border: solid 1px #0e28e6;
  689. text-align: center;
  690. font-size: 24px;
  691. color: #0e28e6;
  692. text-align: center;
  693. }
  694. }
  695. .headerNavMainBox {
  696. width: 100%;
  697. overflow: hidden;
  698. margin: 20px auto 0;
  699. .headerNavTop,
  700. .headerNavCenter,
  701. .headerNavBottom {
  702. display: flex;
  703. align-items: center;
  704. justify-content: space-between;
  705. ul {
  706. width: 95%;
  707. display: flex;
  708. flex-wrap: wrap;
  709. li {
  710. width: 120px;
  711. height: 35px;
  712. line-height: 35px;
  713. text-align: center;
  714. a {
  715. font-size: 16px;
  716. color: #fff;
  717. font-weight: bold;
  718. }
  719. }
  720. }
  721. }
  722. .headerNavTop {
  723. width: 100%;
  724. //height: 70px;
  725. overflow: hidden;
  726. background: #0e28e6;
  727. .first {
  728. height: 70px;
  729. padding-left: 5px;
  730. overflow: hidden;
  731. float: left;
  732. text-align: center;
  733. a {
  734. font-size: 16px;
  735. color: #fff;
  736. font-weight: bold;
  737. }
  738. }
  739. }
  740. .headerNavCenter {
  741. width: 100%;
  742. //height: 40px;
  743. overflow: hidden;
  744. background: #0072ff;
  745. margin-top: 4px;
  746. .first {
  747. height: 40px;
  748. padding-left: 5px;
  749. float: left;
  750. color: #fff;
  751. font-size: 16px;
  752. font-weight: bold;
  753. text-align: center;
  754. a {
  755. font-size: 16px;
  756. color: #fff;
  757. font-weight: bold;
  758. }
  759. }
  760. }
  761. .headerNavBottom {
  762. background: #f90;
  763. //height: 40px;
  764. margin-top: 4px;
  765. overflow: hidden;
  766. .first {
  767. //width: 5%;
  768. height: 40px;
  769. padding-left: 5px;
  770. float: left;
  771. color: #fff;
  772. font-size: 16px;
  773. font-weight: bold;
  774. text-align: center;
  775. a {
  776. font-size: 16px;
  777. color: #fff;
  778. font-weight: bold;
  779. }
  780. }
  781. }
  782. }
  783. .headerNavBox-mobile {
  784. position: fixed;
  785. top: 0;
  786. width: 100%;
  787. height: 80px;
  788. background: #f1f1f1;
  789. border-bottom: 1px solid #ccc;
  790. padding: 0 40px;
  791. position: fixed;
  792. top: 0;
  793. left: 0;
  794. z-index: 999;
  795. display: flex;
  796. align-items: center;
  797. justify-content: space-between;
  798. box-sizing: border-box;
  799. .headerNavBox-mobile-welcome {
  800. font-size: 32px;
  801. }
  802. .headerNavBox-mobile-btn {
  803. font-size: 32px;
  804. display: flex;
  805. align-items: center;
  806. justify-content: space-between;
  807. img {
  808. width: 40px;
  809. height: 40px;
  810. margin-left: 20px;
  811. }
  812. }
  813. }
  814. .headerNavBox-mobile-menu {
  815. position: fixed;
  816. top: 80px;
  817. left: 0;
  818. width: 100%;
  819. background: #0e28e6;
  820. box-sizing: border-box;
  821. padding: 20px;
  822. a {
  823. font-size: 40px;
  824. color: #fff;
  825. margin: 0 10px;
  826. white-space: nowrap;
  827. }
  828. .headerNavBox-mobile-menu-list {
  829. border-bottom: 1px solid #c1c1c1;
  830. padding: 30px 0;
  831. }
  832. .headerNavBox-mobile-menu-button {
  833. padding: 20px 0;
  834. img {
  835. width: 70px;
  836. height: 70px;
  837. display: block;
  838. margin: 0 auto;
  839. }
  840. }
  841. }
  842. }
  843. //自适应 end ----------------------------------------></style>