pageNavigation.vue 33 KB

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