pageNavigation.vue 24 KB

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