pageNavigation.vue 25 KB

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