pageNavigation.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267
  1. <template>
  2. <div class="headerNavBox">
  3. <NuxtLink to="http://fzxfb.org.cn/list-renyuanchaxun.html">人员查询</NuxtLink>
  4. <NuxtLink to="http://fzxfb.org.cn/list-cheliangchaxun.html">车辆查询</NuxtLink>
  5. <NuxtLink to="http://fzxfb.org.cn/list-dishizhongxin.html">地市中心</NuxtLink>
  6. <NuxtLink to="http://fzxfb.org.cn/list-diaoyanxuanti.html">调研选题</NuxtLink>
  7. <NuxtLink to="http://fzxfb.org.cn/list-jieshaoxinchaxun.html">介绍信查询</NuxtLink>
  8. </div>
  9. <div class="headerNavMainBox">
  10. <div class="headerNavTop">
  11. <div class="first"><NuxtLink to="/">首页</NuxtLink></div>
  12. <ul>
  13. <li><NuxtLink to="/">法制资讯</NuxtLink></li>
  14. <li><NuxtLink to="/">政策法规</NuxtLink></li>
  15. <li><NuxtLink to="/">各地动态</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. </ul>
  36. </div>
  37. <div class="headerNavCenter">
  38. <div class="first"><NuxtLink to="/">互动</NuxtLink></div>
  39. <ul>
  40. <li><NuxtLink to="http://zwptfz.znxyw.org.cn/?s=ldxx&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn" target="_blank">领导信箱</NuxtLink></li>
  41. <li><NuxtLink to="http://zwptfz.znxyw.org.cn/?s=jbts&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn" target="_blank">投诉举报</NuxtLink></li>
  42. <li><NuxtLink to="http://zwptfz.znxyw.org.cn/?s=wszw&amp;web_name=全国法制资讯发布中心&amp;web_url=fzxfb.org.cn" target="_blank">网上政务</NuxtLink></li>
  43. <li><NuxtLink to="/">志愿服务</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. </ul>
  52. </div>
  53. <div class="headerNavBottom">
  54. <div class="first"><NuxtLink to="/">查询</NuxtLink></div>
  55. <ul>
  56. <li><NuxtLink to="/">人员查询</NuxtLink></li>
  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. </ul>
  68. </div>
  69. </div>
  70. <!-- <div class="navigate">
  71. <div class="partOne">
  72. <div class="inner">
  73. <div class="navLeft">
  74. <div class="navIndex phone_none">
  75. <NuxtLink :to="'/'"> 首页</NuxtLink>
  76. </div>
  77. <div class="navIndex pc_none">
  78. <NuxtLink
  79. to="/" title="首页"
  80. class="phone_nav_index"
  81. :class="{ 'phone_nav_index_only': $route.path === '/' }"
  82. >
  83. 首页
  84. </NuxtLink>
  85. </div>
  86. <div class="navClass">
  87. <div>主题资讯</div>
  88. <div>互动资讯</div>
  89. </div>
  90. </div>
  91. <ul class="navigationOne">
  92. <div class="nav_in clearfix phone_none">
  93. <li v-for="(item, index) in navigation1" :key="index">
  94. <NuxtLink :href="getLinkPath(item)" :title="item.alias" v-if="index <= 23"
  95. :target="item.is_url == 1 ? '_blank' : '_self'">
  96. <span class="active" v-if="item.category_id == routeId">{{ item.alias }}</span>
  97. <span v-else>{{ item.alias }}</span>
  98. </NuxtLink>
  99. </li>
  100. </div>
  101. <div class="nav_in clearfix pc_none">
  102. <li v-for="(item, index) in navigation1" :key="index">
  103. <NuxtLink :href="getLinkPath(item)" :title="item.alias" v-if="index <= 23"
  104. :target="item.is_url == 1 ? '_blank' : '_self'">
  105. <span class="active" v-if="item.category_id == routeId">{{ item.alias }}</span>
  106. <span v-else>{{ item.alias }}</span>
  107. </NuxtLink>
  108. </li>
  109. </div>
  110. </ul>
  111. </div>
  112. </div>
  113. <div class="cityBox">
  114. <div class="cityMain">
  115. <div class="cityTitle">地方频道</div>
  116. <ul class="cityList" v-if="provinceList.length > 0">
  117. <li v-for="item in provinceList">
  118. <NuxtLink :to="{ path: `/search/${item.id}` }">
  119. {{ item.abbreviation }}
  120. </NuxtLink>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. <div class="select" >
  126. <div class="inner">
  127. <div class="role left">
  128. <div class="title">行政职能查询 </div>
  129. <div class="searchRole">
  130. <El-select v-model="depValue" placeholder="职能部门" filterable size="large" style="width: 330px">
  131. <El-option v-for="(item, index) in department" :key="index" :label="item.name"
  132. :value="item.id" />
  133. </El-select>
  134. <em @click="goToPrimary"></em>
  135. </div>
  136. </div>
  137. <div class="region left">
  138. <div class="title">行政区划查询</div>
  139. <div class="searchRole" v-if="provinceList.length > 0">
  140. <El-select v-model="province" placeholder="请选择省" size="large" style="width: 80px">
  141. <El-option v-for="item in provinceList" :key="item.id" :label="item.name"
  142. @click="change(item.id)" :value="item.id" />
  143. </El-select>
  144. <i></i>
  145. <El-select v-model="city" placeholder="请选择市" no-data-text="请先选择省份" size="large"
  146. style="width: 80px">
  147. <El-option v-for="(item, index) in cityList" :key="item.id" :label="item.name"
  148. @click="change1(item.id)" :value="item.id" />
  149. </El-select>
  150. <i></i>
  151. <El-select v-model="region" placeholder="请选择区/县" no-data-text="请先选择市" size="large"
  152. style="width: 100px">
  153. <El-option v-for="item in regionList" :key="item.id" :label="item.name" :value="item.id" />
  154. </El-select>
  155. <em @click="goToPrimary"></em>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <section class="navigate_phone" v-if="false">
  162. <div class="nav_select_btn_box">
  163. <div class="nav_select_btn nav_department_btn_box" >
  164. 行政职能查询
  165. <div class="nav_department_drop_box">
  166. <a class="nav_department_drop_a" title="" v-for="(per_obj,per_index) in department" :key="per_obj" @click="nav_department_drop_a_fun(per_obj.id)">
  167. {{per_obj.name}}
  168. </a>
  169. </div>
  170. </div>
  171. <div class="nav_select_btn" @click="showZonePanel = true">行政区划查询</div>
  172. </div>
  173. <div class="nav_department_panel" v-show="showZonePanel">
  174. <div class="panel_head_box">
  175. <span class="panel_head_btn nav_department_btn" @click="close_panel_fun"></span>
  176. <h4 class="panel_head_h4">行政区划查询</h4>
  177. </div>
  178. <div class="nav_department_panel_in">
  179. <div class="nav_department_panel_ul">
  180. <a class="nav_department_panel_ul_a" title="" v-for="(per_obj,per_index) in provinceList"
  181. :key="per_obj" @click="change(per_obj.id)"
  182. :class="{'nav_department_panel_ul_a_only':provinceid == per_obj.id}" >
  183. {{ per_obj.name}}
  184. </a>
  185. </div>
  186. <div class="nav_department_panel_ul nav_department_panel_ul_2">
  187. <a class="nav_department_panel_ul_a" title="" v-for="(per_obj,per_index) in cityList" :key="per_obj"
  188. @click="change1(per_obj.id)"
  189. :class="{'nav_department_panel_ul_a_only':cityid == per_obj.id}" >
  190. {{ per_obj.name}}
  191. </a>
  192. </div>
  193. <div class="nav_department_panel_ul nav_department_panel_ul_3">
  194. <a class="nav_department_panel_ul_a" title=""
  195. v-for="(per_obj,per_index) in regionList" :key="per_obj"
  196. @click="change2(per_obj.id)"
  197. :class="{'nav_department_panel_ul_a_only':regionid == per_obj.id}"
  198. >
  199. {{ per_obj.name}}
  200. </a>
  201. </div>
  202. <div class="nav_department_panel_foot clearfix">
  203. <div class="nav_department_panel_foot_btn nav_department_panel_foot_btn_clear" @click="foot_btn_clear_fun">清空</div>
  204. <div class="nav_department_panel_foot_btn nav_department_panel_foot_btn_sure" @click="goToPrimary">确定</div>
  205. </div>
  206. </div>
  207. </div>
  208. </section> -->
  209. </template>
  210. <script setup>
  211. //1.加载依赖 start ---------------------------------------->
  212. import { ElMessage } from 'element-plus'
  213. import { ref, onMounted } from 'vue';
  214. import { ElSelect, ElOption } from 'element-plus'
  215. import { useRoute } from 'vue-router';
  216. const showZonePanel = ref(false)
  217. const nuxtApp = useNuxtApp();
  218. const axios = nuxtApp.$axios;
  219. const route = useRoute();
  220. const routeId = route.params.id; //获得该页面的id
  221. //1.加载依赖 end ---------------------------------------->
  222. //2.加载模块数据 start ---------------------------------------->
  223. // const navigation1 = ref("");
  224. const navigation1 = useState('globalNavData', () => ([]))
  225. async function getPageData2() {
  226. const mkdata = await requestDataPromise('/web/getWebsiteModelCategory', {
  227. method: 'GET',
  228. query: {
  229. 'placeid': 1,
  230. 'pid': 0,
  231. 'num': 35
  232. },
  233. });
  234. navigation1.value = mkdata.data;
  235. }
  236. getPageData2();
  237. //格式化跳转路径
  238. // const getLinkPath = (item) => {
  239. // if(item.is_url==1){
  240. // return `${item.web_url}`;
  241. // }else if(item.children_count == 0){
  242. // //return `/${item.aLIas_pinyin}/`;
  243. // return `/newsList/${item.category_id}?page=1`;
  244. // }else{
  245. // //return `/${item.aLIas_pinyin}/`;
  246. // return `/primaryNavigation/${item.category_id}`;
  247. // }
  248. // }
  249. const getLinkPath = (item) => {
  250. if (item.is_url == 1) {
  251. return `${item.web_url}`;
  252. } else if (item.children_count == 0) {
  253. return `/${item.aLIas_pinyin}/list-1.html`;
  254. } else {
  255. return `/${item.aLIas_pinyin}/index.html`;
  256. }
  257. }
  258. //2.加载模块数据 end ---------------------------------------->
  259. //3.职能部门 start ---------------------------------------->
  260. let department = ref("")
  261. const depValue = ref("")
  262. const typeValue = ref("")
  263. // let departmentList = async () => {
  264. // const mkdata = await requestDataPromise('/web/selectWebsiteDepartment', {
  265. // method: 'GET',
  266. // query: {
  267. // 'keyword': department.value,
  268. // },
  269. // });
  270. // if(mkdata.code == 200){
  271. // department.value = mkdata.data;
  272. // }else{
  273. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  274. // console.log("错误位置:获取职能部门")
  275. // console.log("后端错误反馈:",mkdata.message)
  276. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  277. // }
  278. // }
  279. // //获得所有部门
  280. // departmentList();
  281. //3.职能部门 end ---------------------------------------->
  282. //4.展示行政区划 start ---------------------------------------->
  283. //let areaList = ref("")
  284. //4.1 省
  285. let province = ref("")
  286. let provinceid = ref("")
  287. let provinceList = ref("")
  288. //4.2 市
  289. let city = ref("")
  290. let cityid = ref("")
  291. let cityList = ref("")
  292. //4.3 县
  293. let region = ref("")
  294. let regionid = ref("")
  295. let regionList = ref("")
  296. //选择省
  297. // let areaArrList = async () => {
  298. // const mkdata = await requestDataPromise('/web/selectWebsiteArea', {
  299. // method: 'GET',
  300. // query: {},
  301. // });
  302. // if(mkdata.code == 200){
  303. // provinceList.value = mkdata.data;
  304. // }else{
  305. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  306. // console.log("错误位置:获取行政区划")
  307. // console.log("后端错误反馈:",mkdata.message)
  308. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  309. // }
  310. // }
  311. // //一开始只需要获取一下省
  312. // areaArrList();
  313. //选择市
  314. let change = async (id) => {
  315. provinceid.value = id;
  316. const shengData = await requestDataPromise('/web/selectWebsiteArea', {
  317. method: 'GET',
  318. query: {
  319. 'pid': id,
  320. },
  321. });
  322. cityList.value = shengData.data;
  323. regionList.value = [];// 清空县
  324. }
  325. //选择县
  326. let change1 = async (id) => {
  327. cityid.value = id;
  328. const xianData = await requestDataPromise('/web/selectWebsiteArea', {
  329. method: 'GET',
  330. query: {
  331. 'pid': id,
  332. },
  333. });
  334. regionList.value = xianData.data;
  335. }
  336. let change2 = async (id) => {
  337. regionid.value = id;
  338. }
  339. //4.展示行政区划 end ---------------------------------------->
  340. //5.执行搜索 start ---------------------------------------->
  341. const getcityid = ref("")
  342. //跳转到搜索页面
  343. // let goToSearch = (id) => {
  344. // console.log(id)
  345. // const route = `/search/search?catids=${id}`;
  346. // window.location.href = route;
  347. // }
  348. //获得cityid和11
  349. let goToPrimary = async () => {
  350. if (province.value != "") { getcityid.value = province.value }
  351. if (city.value != "") { getcityid.value = city.value }
  352. if (region.value != "") { getcityid.value = region.value }
  353. console.log("getcityid.value=======",getcityid.value)
  354. if (province.value == "" && city.value == "" && region.value == "" && depValue.value == "") {
  355. ElMessage.error('请选择行政区划或者职能部门!')
  356. } else {
  357. const route = `/search/search?catids=${getcityid.value}&department_id=${depValue.value}`;
  358. window.location.href = route;
  359. // const responseStatus = await requestDataPromise('/web/selectWebsiteCategory', {
  360. // method: 'GET',
  361. // query: {
  362. // 'cityid': getcityid.value,
  363. // 'department_id': depValue.value
  364. // },
  365. // });
  366. // if (responseStatus.data.catid && responseStatus.data.catid.length > 0) {
  367. // const catids = responseStatus.data.catid.join(',');
  368. // const route = `/search/search?catids=${catids}`;
  369. // window.location.href = route;
  370. // } else {
  371. // // 可以在这里处理数组为空的情况
  372. // console.log('没有可用的分类ID');
  373. // const route = `/search/search`;
  374. // window.location.href = route;
  375. // }
  376. }
  377. }
  378. const close_panel_fun = () => {
  379. foot_btn_clear_fun();
  380. showZonePanel.value = false;
  381. }
  382. const foot_btn_clear_fun = () => {
  383. regionList.value = [];// 清空县
  384. region.value = "";// 清空县 名称
  385. city.value = "";// 清空市 名称
  386. cityList.value = [];// 清空市
  387. province.value = "";// 清空省 名称
  388. provinceid.value = "";// 清空省 id
  389. }
  390. let shake_bool = true // 声明在组件作用域顶部==防抖
  391. const nav_department_drop_a_fun = (departmentId) => {
  392. if(shake_bool===true){//第1次点击
  393. shake_bool = false;
  394. depValue.value = departmentId;
  395. goToPrimary();
  396. // 行政职能查询
  397. ElMessage({
  398. message: '页面跳转中请稍等',
  399. type: 'success'
  400. });
  401. nav_department_drop_a_fun.timer = setTimeout(() => {
  402. shake_bool = true;
  403. }, 3333);
  404. }else{
  405. ElMessage({
  406. message: '请勿重复点击',
  407. type: 'warning'
  408. });
  409. }
  410. }
  411. //5.执行搜索 end ---------------------------------------->
  412. onMounted(async () => {
  413. //从客户端获取行政职能部门 加快打开速度
  414. try {
  415. const { $webUrl, $CwebUrl } = useNuxtApp();
  416. const response = await fetch($webUrl + '/web/selectWebsiteDepartment', {
  417. headers: {
  418. 'Content-Type': 'application/json',
  419. 'Userurl': $CwebUrl,
  420. 'Origin': $CwebUrl
  421. }
  422. });
  423. const result = await response.json();
  424. department.value = result.data;
  425. } catch (error) {
  426. console.error('获取部门数据失败:', error);
  427. }
  428. //从客户端获取行政区划
  429. try {
  430. const { $webUrl, $CwebUrl } = useNuxtApp();
  431. const response2 = await fetch($webUrl + '/web/selectWebsiteArea', {
  432. headers: {
  433. 'Content-Type': 'application/json',
  434. 'Userurl': $CwebUrl,
  435. 'Origin': $CwebUrl
  436. }
  437. });
  438. const result2 = await response2.json();
  439. provinceList.value = result2.data;
  440. } catch (error) {
  441. console.error('获取行政区划数据失败:', error);
  442. }
  443. const targetElement = document.querySelector('.pc_none li .router-link-exact-active');
  444. const parentElement = document.querySelector('.nav_in');
  445. if (targetElement && parentElement) {
  446. const targetRect = targetElement.getBoundingClientRect();
  447. const parentRect = parentElement.getBoundingClientRect();
  448. const distanceToParentLeft = targetRect.left - parentRect.left;
  449. const navigationElement = document.querySelector('.partOne .navigationOne');
  450. if (navigationElement) {
  451. navigationElement.scrollLeft = distanceToParentLeft - 66;
  452. }
  453. }
  454. })
  455. </script>
  456. <style lang="less" scoped>
  457. //PC端 start ---------------------------------------->
  458. .headerNavBox {
  459. text-align: center;
  460. a {
  461. width: 100px;
  462. margin: 0 10px;
  463. display: inline-block;
  464. height: 40px;
  465. line-height: 40px;
  466. background: #158d91;
  467. text-align: center;
  468. font-size: 18px;
  469. color: #fff;
  470. }
  471. }
  472. .headerNavMainBox {
  473. width: 1400px;
  474. overflow: hidden;
  475. margin: 20px auto 0;
  476. .headerNavTop,.headerNavCenter,.headerNavBottom {
  477. display: flex;
  478. align-items: center;
  479. justify-content: space-between;
  480. ul {
  481. width: 95%;
  482. display: flex;
  483. flex-wrap: wrap;
  484. li {
  485. width: 120px;
  486. height: 35px;
  487. line-height: 35px;
  488. text-align: center;
  489. a {
  490. font-size: 16px;
  491. color: #fff;
  492. font-weight: bold;
  493. }
  494. }
  495. }
  496. }
  497. .headerNavTop {
  498. width: 100%;
  499. height: 70px;
  500. overflow: hidden;
  501. background: #158d91;
  502. .first {
  503. width: 5%;
  504. height: 70px;
  505. line-height: 70px;
  506. overflow: hidden;
  507. float: left;
  508. text-align: center;
  509. a {
  510. font-size: 16px;
  511. color: #fff;
  512. font-weight: bold;
  513. }
  514. }
  515. }
  516. .headerNavCenter {
  517. width: 100%;
  518. height: 40px;
  519. overflow: hidden;
  520. background: #0072ff;
  521. margin-top: 4px;
  522. .first {
  523. width: 5%;
  524. height: 40px;
  525. line-height: 40px;
  526. float: left;
  527. color: #fff;
  528. font-size: 16px;
  529. font-weight: bold;
  530. text-align: center;
  531. a {
  532. font-size: 16px;
  533. color: #fff;
  534. font-weight: bold;
  535. }
  536. }
  537. }
  538. .headerNavBottom {
  539. background: #f90;
  540. height: 40px;
  541. margin-top: 4px;
  542. overflow: hidden;
  543. .first {
  544. width: 5%;
  545. height: 40px;
  546. line-height: 40px;
  547. float: left;
  548. color: #fff;
  549. font-size: 16px;
  550. font-weight: bold;
  551. text-align: center;
  552. a {
  553. font-size: 16px;
  554. color: #fff;
  555. font-weight: bold;
  556. }
  557. }
  558. }
  559. }
  560. //PC端 end ---------------------------------------->
  561. // 导航部分
  562. // .partOne .navigationOne,
  563. // .partOne .navigationOne>li,
  564. // .partTwo .navigationTwo,
  565. // .partTwo .navigationTwo>li {
  566. // float: left;
  567. // }
  568. // .partOne {
  569. // width: 100%;
  570. // height: 110px;
  571. // margin-bottom: 10px;
  572. // background-color: #fff;
  573. // font-size: 20px;
  574. // font-family: PingFang SC-Semibold;
  575. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/head/menubg.png") no-repeat center;
  576. // .inner {
  577. // display: flex;
  578. // justify-content: space-between;
  579. // .navLeft {
  580. // width:160px;
  581. // font-size: 16px;
  582. // display: flex;
  583. // }
  584. // .navIndex {
  585. // height: 100px;
  586. // line-height: 120px;
  587. // a {
  588. // font-size: 16px;
  589. // color: #fff;
  590. // font-weight: bold;
  591. // &:hover {
  592. // color: #ABE874;
  593. // }
  594. // }
  595. // }
  596. // .navClass {
  597. // padding-top: 29px;
  598. // padding-left: 30px;
  599. // font-weight: bold;
  600. // color: #fff;
  601. // a {
  602. // color: #fff;
  603. // &:hover {
  604. // color: #ABE874;
  605. // }
  606. // }
  607. // div:nth-child(2){
  608. // padding-top:20px;
  609. // }
  610. // }
  611. // }
  612. // .navigationOne {
  613. // width: 1200px;
  614. // color: #333;
  615. // display: flex;
  616. // flex-wrap: wrap;
  617. // padding-top: 20px;
  618. // li {
  619. // width: 68px;
  620. // font-family: PingFang SC;
  621. // height: 40px;
  622. // line-height: 40px;
  623. // font-size: 16px;
  624. // text-align: left;
  625. // font-style: normal;
  626. // text-transform: none;
  627. // margin: 0 10px;
  628. // text-align: center;
  629. // a {
  630. // color: #fff;
  631. // display: block;
  632. // }
  633. // }
  634. // >li:hover a {
  635. // color: #ABE874;
  636. // }
  637. // .active{
  638. // color: #ABE874;
  639. // }
  640. // }
  641. // }
  642. // .partThree {
  643. // width: 100%;
  644. // height: 105px;
  645. // .inner {
  646. // margin-bottom: 5px;
  647. // display: flex;
  648. // }
  649. // .channel,.areaChannel {
  650. // float: left;
  651. // margin-top: 17px;
  652. // }
  653. // .channel {
  654. // width: 56px;
  655. // height: 20px;
  656. // font-family: PingFang SC, PingFang SC;
  657. // font-weight: 600;
  658. // font-size: 14px;
  659. // color: #666666;
  660. // line-height: 20px;
  661. // text-align: left;
  662. // font-style: normal;
  663. // text-transform: none;
  664. // }
  665. // .areaChannel {
  666. // width: 1122px;
  667. // margin-left: 14px;
  668. // >span {
  669. // display: inline-block;
  670. // height: 16px;
  671. // line-height: 16px;
  672. // margin-bottom: 10px;
  673. // padding: 0 8px;
  674. // text-align: center;
  675. // font-family: PingFang SC, PingFang SC;
  676. // font-weight: 400;
  677. // font-size: 14px;
  678. // text-align: center;
  679. // font-style: normal;
  680. // text-transform: none;
  681. // border-right: 1px solid #e6e6e6;
  682. // a {
  683. // display: inline-block;
  684. // height: 16px;
  685. // color: #868686;
  686. // }
  687. // a:hover {
  688. // color: #868686;
  689. // }
  690. // }
  691. // >span:last-child,
  692. // >span:nth-child(18),
  693. // >span:nth-child(32) {
  694. // border-right: none;
  695. // }
  696. // >span:hover a {
  697. // color: #139602;
  698. // }
  699. // }
  700. // }
  701. // .logo {
  702. // margin-top: 5px;
  703. // height: 90px;
  704. // img {
  705. // width: 1200px;
  706. // height: 90px;
  707. // }
  708. // }
  709. // // 行政查询
  710. // .select {
  711. // width: 100%;
  712. // height: 62px;
  713. // line-height: 62px;
  714. // margin-top: 10px;
  715. // .inner {
  716. // width: 1200px;
  717. // height: 62px;
  718. // margin-top: 10px;
  719. // background-color: #fafafa;
  720. // }
  721. // .role,.region {
  722. // float: left;
  723. // height: 62px;
  724. // .el-select--large::v-deep .el-select__wrapper {
  725. // font-size: 14px;
  726. // gap: 6px;
  727. // line-height: 24px;
  728. // min-height: 35px;
  729. // padding: 0;
  730. // border: none;
  731. // box-shadow: none;
  732. // }
  733. // .el-select__placeholder::v-deep.is-transparent {
  734. // color: #999999;
  735. // font-weight: 600;
  736. // }
  737. // >.title {
  738. // float: left;
  739. // width: 120px;
  740. // font-family: PingFang SC, PingFang SC;
  741. // font-weight: 600;
  742. // font-size: 20px;
  743. // color: #666666;
  744. // text-align: left;
  745. // font-style: normal;
  746. // text-transform: none;
  747. // }
  748. // .searchRole {
  749. // float: left;
  750. // padding-left: 20px;
  751. // box-sizing: border-box;
  752. // i {
  753. // display: inline-block;
  754. // width: 1px;
  755. // height: 12px;
  756. // background-color: #d9d9d9;
  757. // margin: 0 10px;
  758. // vertical-align: middle;
  759. // }
  760. // }
  761. // }
  762. // .role {
  763. // padding-left: 16px;
  764. // .searchRole {
  765. // width: 440px;
  766. // height: 40px;
  767. // line-height: 35px;
  768. // background-color: #fff;
  769. // border: 1px solid #ededed;
  770. // margin: 10px 20px 12px 22px;
  771. // border-radius: 25px;
  772. // em {
  773. // display: inline-block;
  774. // width: 29px;
  775. // height: 29px;
  776. // margin: 4px;
  777. // margin-right: 25px;
  778. // margin-left: 20px;
  779. // vertical-align: -13px;
  780. // background: url('http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png');
  781. // cursor: pointer;
  782. // }
  783. // >.ipt {
  784. // width: 245px;
  785. // font-family: PingFang SC, PingFang SC;
  786. // font-weight: 600;
  787. // font-size: 14px;
  788. // color: #666;
  789. // line-height: 16px;
  790. // padding-left: 22px;
  791. // box-sizing: border-box;
  792. // text-align: left;
  793. // font-style: normal;
  794. // text-transform: none;
  795. // border: none;
  796. // outline: none;
  797. // }
  798. // >.ipt::placeholder {
  799. // color: #cccccc;
  800. // }
  801. // span {
  802. // color: #999999;
  803. // }
  804. // }
  805. // }
  806. // .region {
  807. // .searchRole {
  808. // width: 440px;
  809. // height: 40px;
  810. // line-height: 35px;
  811. // background-color: #fff;
  812. // border: 1px solid #ededed;
  813. // margin: 10px 0px 12px 16px;
  814. // border-radius: 25px;
  815. // }
  816. // em {
  817. // display: inline-block;
  818. // width: 29px;
  819. // height: 29px;
  820. // margin-left: 48px;
  821. // vertical-align: middle;
  822. // background: url('http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png');
  823. // cursor: pointer;
  824. // }
  825. // i {
  826. // display: inline-block;
  827. // width: 24px;
  828. // height: 24px;
  829. // margin-right: 11px;
  830. // vertical-align: middle;
  831. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png");
  832. // }
  833. // span {
  834. // color: #999999;
  835. // margin-right: 22px;
  836. // }
  837. // }
  838. // }
  839. // .cityBox {
  840. // height: 60px;
  841. // background: #9CD26B;
  842. // display: flex;
  843. // margin: 0 auto;
  844. // .cityMain {
  845. // width: 1200px;
  846. // height: 60px;
  847. // line-height: 60px;
  848. // margin: 0 auto;
  849. // display: flex;
  850. // justify-content: flex-start;
  851. // .cityTitle {
  852. // font-size: 16px;
  853. // color: #fff;
  854. // font-weight: bold;
  855. // padding-left: 60px;
  856. // margin-right: 30px;
  857. // width: 76px;
  858. // }
  859. // .cityList {
  860. // li {
  861. // font-size: 16px;
  862. // float: left;
  863. // color: #fff;
  864. // margin-right: 14px;
  865. // cursor: pointer;
  866. // a {
  867. // font-size: 16px;
  868. // color: #fff;
  869. // cursor: pointer;
  870. // &:hover {
  871. // color: #ABE874;
  872. // }
  873. // }
  874. // }
  875. // }
  876. // }
  877. // }
  878. // 移动端 start ---------------------------------------->
  879. @media screen and (min-width:801px){
  880. .nav_in{
  881. display:flex;
  882. width:100%;
  883. flex-wrap: wrap;
  884. }
  885. .pc_none{
  886. display:none;
  887. }
  888. }
  889. @media screen and (max-width:800px){
  890. /*ipad_phone*/
  891. .partOne{
  892. height:auto;
  893. background:#49a769;
  894. margin-top:11px;
  895. padding:6px 0px;
  896. }
  897. .partOne .inner{
  898. overflow: hidden;
  899. position:relative;
  900. }
  901. .partOne .inner .navLeft{
  902. display:flex;
  903. overflow:hidden;
  904. word-break: keep-all;
  905. white-space: nowrap;
  906. height:33px;
  907. text-align:left;
  908. width:auto;
  909. float:left;
  910. font-weight:bold;
  911. margin-right:20px;
  912. }
  913. .partOne .inner .navIndex{
  914. line-height:31px;
  915. height:33px;
  916. overflow:hidden;
  917. width:auto;
  918. }
  919. .partOne .inner .navClass{
  920. line-height:33px;
  921. height:33px;
  922. padding:0px;
  923. word-break: keep-all;
  924. white-space: nowrap;
  925. overflow:hidden;
  926. display:none;
  927. }
  928. .partOne .inner .navClass div{
  929. margin-left:8px;
  930. float:left;
  931. }
  932. .partOne .inner .navClass div:nth-child(2){
  933. padding:0px;
  934. }
  935. .partOne .navigationOne{
  936. height:33px;
  937. display:block;
  938. width:auto;
  939. flex:1;
  940. padding:0;
  941. margin:0;
  942. box-sizing:border-box;
  943. overflow-y: hidden;// 改为 overlay 模式
  944. overflow-x: auto;// 改为 overlay 模式
  945. /* 新增滚动条样式 */
  946. &::-webkit-scrollbar {
  947. // width: 10;
  948. height: 4px;
  949. }
  950. // 隐藏滚动条轨道
  951. &::-webkit-scrollbar-track {
  952. background: transparent;
  953. // width: 10;
  954. height: 4;
  955. }
  956. // 隐藏滚动条滑块
  957. &::-webkit-scrollbar-thumb {
  958. background: transparent;
  959. }
  960. }
  961. .nav_in{
  962. height:100%;
  963. word-break: keep-all;
  964. white-space: nowrap;
  965. box-sizing:border-box;
  966. }
  967. .partOne .navigationOne li{
  968. width:auto;
  969. display:inline-block;
  970. height:100%;
  971. line-height:33px;
  972. overflow:hidden;
  973. font-size:16px;
  974. }
  975. .partOne .navigationOne li:nth-of-type(1){
  976. margin-left:0px;
  977. }
  978. .cityBox{
  979. display: block;
  980. overflow:hidden;
  981. height:auto;
  982. display:none;
  983. }
  984. .cityBox .cityMain{
  985. display: block;
  986. overflow:hidden;
  987. height:auto;
  988. width:100%;
  989. }
  990. .cityBox .cityMain .cityTitle{
  991. line-height: 22px;
  992. padding:0;
  993. margin:10px 0px 0px 10px;
  994. width:auto;
  995. }
  996. .cityList{
  997. overflow:hidden;
  998. }
  999. .cityBox .cityMain .cityList li{
  1000. line-height:22px;
  1001. margin:11px;
  1002. }
  1003. .select{
  1004. overflow:hidden;
  1005. height:auto;
  1006. line-height:normal;
  1007. }
  1008. .select .inner{
  1009. width:96%;
  1010. margin:0px auto;
  1011. overflow:hidden;
  1012. height:auto;
  1013. }
  1014. .select .role{
  1015. padding:0;
  1016. height:auto;
  1017. overflow:hidden;
  1018. float:none;
  1019. }
  1020. .select .role .searchRole{
  1021. box-sizing:border-box;
  1022. width:333px;
  1023. float:left;
  1024. margin-left:0px;
  1025. }
  1026. .select .el-select{
  1027. width:230px!important;
  1028. }
  1029. .select .role .searchRole em{
  1030. margin:4px 10px;
  1031. float:right;
  1032. }
  1033. .select .role > .title, .select .region > .title{
  1034. float:none;
  1035. font-size:18px;
  1036. }
  1037. .select .region{
  1038. overflow:hidden;
  1039. height:auto;
  1040. float:none;
  1041. }
  1042. .select .region .searchRole{
  1043. float:none;
  1044. padding:10px 0;
  1045. width:90%;
  1046. margin:5px;
  1047. height:auto;
  1048. }
  1049. .select .region .el-select{
  1050. margin-left:17px;
  1051. }
  1052. .select .region em{
  1053. margin-left:22px;
  1054. }
  1055. .nav_select_btn_box{
  1056. padding:5px 0px;
  1057. border-bottom:1px solid #ededed;
  1058. width:92%;margin:0px auto;
  1059. }
  1060. .nav_select_btn_box::after{
  1061. content: '';
  1062. display: block;
  1063. height: 0;
  1064. visibility: hidden;
  1065. clear: both;
  1066. }
  1067. .nav_select_btn{
  1068. height: 33px;
  1069. line-height: 33px;
  1070. color: #333;font-size:14px;
  1071. padding:0px 30px 0px 6px;
  1072. float:left;margin:0px 20px 5px 0px;
  1073. background:url(../../public/image/Iconly.png) no-repeat right center;
  1074. background-size:auto 20px;
  1075. }
  1076. .nav_department_btn_box{
  1077. position:relative;
  1078. .nav_department_select{
  1079. width:100%;
  1080. height:100%;
  1081. position:absolute;
  1082. left:0px;
  1083. top:0px;
  1084. border:0;
  1085. }
  1086. }
  1087. .nav_department_drop_box{
  1088. position:absolute;
  1089. left:0px;
  1090. top:33px;
  1091. z-index:111;
  1092. width:100%;
  1093. height:333px;
  1094. border:1px solid #ededed;
  1095. background:#fff;
  1096. overflow:auto;
  1097. border-radius:6px;
  1098. box-sizing:border-box;
  1099. display:none;
  1100. }
  1101. .nav_department_btn_box:hover .nav_department_drop_box{
  1102. display:block;
  1103. }
  1104. .nav_department_drop_a{
  1105. width:100%;
  1106. height:44px;
  1107. line-height:44px;
  1108. display:block;
  1109. font-size:14px;
  1110. color:#333;
  1111. padding:0px 10px 0px;
  1112. box-sizing:border-box;
  1113. word-break: keep-all;
  1114. white-space: nowrap;
  1115. overflow:hidden;
  1116. text-overflow:ellipsis;
  1117. }
  1118. .partOne .inner .navIndex a{
  1119. font-size:16px;
  1120. font-weight:normal;
  1121. opacity:.6;
  1122. }
  1123. .partOne .inner .navIndex .phone_nav_index_only{
  1124. font-weight:bold;
  1125. opacity:1;
  1126. }
  1127. .nav_department_panel{
  1128. width:100%;
  1129. background:#fff;
  1130. left:0px;
  1131. top:0px;
  1132. position:fixed;
  1133. z-index:999;
  1134. height:100%;
  1135. }
  1136. .panel_head_box{
  1137. width:97%;
  1138. margin:0px auto 4px;
  1139. height:50px;
  1140. border-bottom:1px solid #b8b8b8;
  1141. text-align:center;
  1142. position:relative;
  1143. }
  1144. .panel_head_h4{
  1145. height:50px;
  1146. line-height:50px;
  1147. display:inline-block;
  1148. font-size:22px;
  1149. color:#333;
  1150. text-align:center;
  1151. }
  1152. .panel_head_btn{
  1153. float:right;
  1154. width:22px;
  1155. height:22px;
  1156. top:12px;
  1157. position:absolute;right:0px;
  1158. background:url('../../public/image/guanbi1.png') no-repeat center center;
  1159. background-size:100% 100%;
  1160. }
  1161. .nav_department_panel_in{
  1162. width:100%;
  1163. height:100%;
  1164. box-sizing:border-box;
  1165. overflow:auto;
  1166. position:relative;
  1167. padding-bottom:122px;
  1168. }
  1169. .nav_department_panel_ul{
  1170. width:30%;
  1171. float:left;
  1172. height:100%;
  1173. box-sizing:border-box;
  1174. overflow:auto;
  1175. }
  1176. .nav_department_panel_ul_2{
  1177. width:35%;
  1178. background:#F2F3F7;
  1179. }
  1180. .nav_department_panel_ul_3{
  1181. width:35%;
  1182. background:#F2F3F7;
  1183. }
  1184. .nav_department_panel_ul_a{
  1185. width:100%;
  1186. height:40px;
  1187. line-height:40px;
  1188. display:block;
  1189. font-size:16px;
  1190. color:#333;
  1191. padding:0px 10px 0px;
  1192. box-sizing:border-box;
  1193. word-break: keep-all;
  1194. white-space: nowrap;
  1195. overflow:hidden;
  1196. text-overflow:ellipsis;
  1197. }
  1198. .nav_department_panel_ul_a_only{
  1199. font-weight:bold;
  1200. color:#46D333;
  1201. }
  1202. .nav_department_panel_foot{
  1203. width:100%;
  1204. margin:0px auto;
  1205. height:36px;
  1206. position:absolute;
  1207. left:0px;bottom:70px;
  1208. background:#fff;
  1209. text-align:center;
  1210. .nav_department_panel_foot_btn{
  1211. width:33%;
  1212. height:36px;
  1213. line-height:36px;
  1214. display:inline-block;
  1215. text-align:center;
  1216. border-radius:16px;
  1217. font-size:16px;
  1218. padding:0px 10px;
  1219. margin:0px 11px;
  1220. }
  1221. .nav_department_panel_foot_btn_clear{
  1222. background:#abe874;
  1223. color:#fff;
  1224. }
  1225. .nav_department_panel_foot_btn_sure{
  1226. background:#46D333;
  1227. color:#fff;
  1228. }
  1229. }
  1230. .partOne .navigationOne li a span{
  1231. display:block;
  1232. line-height:33px;
  1233. height:33px;
  1234. opacity:0.6;
  1235. }
  1236. .nav_in .router-link-exact-active span{
  1237. font-size:16px;
  1238. font-weight:bold;
  1239. opacity:1!important;
  1240. }
  1241. .select{display:none;}
  1242. .phone_none{display:none;}
  1243. }
  1244. //移动端 end ---------------------------------------->
  1245. </style>