pageNavigation.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  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="/sannongkejiao/nongcunjiaoyu/list-1.html">法制资讯</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. max-width: 1400px;
  474. width: 100%;
  475. overflow: hidden;
  476. margin: 20px auto 0;
  477. .headerNavTop,.headerNavCenter,.headerNavBottom {
  478. display: flex;
  479. align-items: center;
  480. justify-content: space-between;
  481. ul {
  482. width: 95%;
  483. display: flex;
  484. flex-wrap: wrap;
  485. li {
  486. width: 120px;
  487. height: 35px;
  488. line-height: 35px;
  489. text-align: center;
  490. a {
  491. font-size: 16px;
  492. color: #fff;
  493. font-weight: bold;
  494. }
  495. }
  496. }
  497. }
  498. .headerNavTop {
  499. width: 100%;
  500. //height: 70px;
  501. overflow: hidden;
  502. background: #158d91;
  503. .first {
  504. width: 5%;
  505. height: 70px;
  506. line-height: 70px;
  507. overflow: hidden;
  508. float: left;
  509. text-align: center;
  510. a {
  511. font-size: 16px;
  512. color: #fff;
  513. font-weight: bold;
  514. }
  515. }
  516. }
  517. .headerNavCenter {
  518. width: 100%;
  519. //height: 40px;
  520. overflow: hidden;
  521. background: #0072ff;
  522. margin-top: 4px;
  523. .first {
  524. width: 5%;
  525. height: 40px;
  526. line-height: 40px;
  527. float: left;
  528. color: #fff;
  529. font-size: 16px;
  530. font-weight: bold;
  531. text-align: center;
  532. a {
  533. font-size: 16px;
  534. color: #fff;
  535. font-weight: bold;
  536. }
  537. }
  538. }
  539. .headerNavBottom {
  540. background: #f90;
  541. //height: 40px;
  542. margin-top: 4px;
  543. overflow: hidden;
  544. .first {
  545. width: 5%;
  546. height: 40px;
  547. line-height: 40px;
  548. float: left;
  549. color: #fff;
  550. font-size: 16px;
  551. font-weight: bold;
  552. text-align: center;
  553. a {
  554. font-size: 16px;
  555. color: #fff;
  556. font-weight: bold;
  557. }
  558. }
  559. }
  560. }
  561. //PC端 end ---------------------------------------->
  562. // 导航部分
  563. // .partOne .navigationOne,
  564. // .partOne .navigationOne>li,
  565. // .partTwo .navigationTwo,
  566. // .partTwo .navigationTwo>li {
  567. // float: left;
  568. // }
  569. // .partOne {
  570. // width: 100%;
  571. // height: 110px;
  572. // margin-bottom: 10px;
  573. // background-color: #fff;
  574. // font-size: 20px;
  575. // font-family: PingFang SC-Semibold;
  576. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/head/menubg.png") no-repeat center;
  577. // .inner {
  578. // display: flex;
  579. // justify-content: space-between;
  580. // .navLeft {
  581. // width:160px;
  582. // font-size: 16px;
  583. // display: flex;
  584. // }
  585. // .navIndex {
  586. // height: 100px;
  587. // line-height: 120px;
  588. // a {
  589. // font-size: 16px;
  590. // color: #fff;
  591. // font-weight: bold;
  592. // &:hover {
  593. // color: #ABE874;
  594. // }
  595. // }
  596. // }
  597. // .navClass {
  598. // padding-top: 29px;
  599. // padding-left: 30px;
  600. // font-weight: bold;
  601. // color: #fff;
  602. // a {
  603. // color: #fff;
  604. // &:hover {
  605. // color: #ABE874;
  606. // }
  607. // }
  608. // div:nth-child(2){
  609. // padding-top:20px;
  610. // }
  611. // }
  612. // }
  613. // .navigationOne {
  614. // width: 1200px;
  615. // color: #333;
  616. // display: flex;
  617. // flex-wrap: wrap;
  618. // padding-top: 20px;
  619. // li {
  620. // width: 68px;
  621. // font-family: PingFang SC;
  622. // height: 40px;
  623. // line-height: 40px;
  624. // font-size: 16px;
  625. // text-align: left;
  626. // font-style: normal;
  627. // text-transform: none;
  628. // margin: 0 10px;
  629. // text-align: center;
  630. // a {
  631. // color: #fff;
  632. // display: block;
  633. // }
  634. // }
  635. // >li:hover a {
  636. // color: #ABE874;
  637. // }
  638. // .active{
  639. // color: #ABE874;
  640. // }
  641. // }
  642. // }
  643. // .partThree {
  644. // width: 100%;
  645. // height: 105px;
  646. // .inner {
  647. // margin-bottom: 5px;
  648. // display: flex;
  649. // }
  650. // .channel,.areaChannel {
  651. // float: left;
  652. // margin-top: 17px;
  653. // }
  654. // .channel {
  655. // width: 56px;
  656. // height: 20px;
  657. // font-family: PingFang SC, PingFang SC;
  658. // font-weight: 600;
  659. // font-size: 14px;
  660. // color: #666666;
  661. // line-height: 20px;
  662. // text-align: left;
  663. // font-style: normal;
  664. // text-transform: none;
  665. // }
  666. // .areaChannel {
  667. // width: 1122px;
  668. // margin-left: 14px;
  669. // >span {
  670. // display: inline-block;
  671. // height: 16px;
  672. // line-height: 16px;
  673. // margin-bottom: 10px;
  674. // padding: 0 8px;
  675. // text-align: center;
  676. // font-family: PingFang SC, PingFang SC;
  677. // font-weight: 400;
  678. // font-size: 14px;
  679. // text-align: center;
  680. // font-style: normal;
  681. // text-transform: none;
  682. // border-right: 1px solid #e6e6e6;
  683. // a {
  684. // display: inline-block;
  685. // height: 16px;
  686. // color: #868686;
  687. // }
  688. // a:hover {
  689. // color: #868686;
  690. // }
  691. // }
  692. // >span:last-child,
  693. // >span:nth-child(18),
  694. // >span:nth-child(32) {
  695. // border-right: none;
  696. // }
  697. // >span:hover a {
  698. // color: #139602;
  699. // }
  700. // }
  701. // }
  702. // .logo {
  703. // margin-top: 5px;
  704. // height: 90px;
  705. // img {
  706. // width: 1200px;
  707. // height: 90px;
  708. // }
  709. // }
  710. // // 行政查询
  711. // .select {
  712. // width: 100%;
  713. // height: 62px;
  714. // line-height: 62px;
  715. // margin-top: 10px;
  716. // .inner {
  717. // width: 1200px;
  718. // height: 62px;
  719. // margin-top: 10px;
  720. // background-color: #fafafa;
  721. // }
  722. // .role,.region {
  723. // float: left;
  724. // height: 62px;
  725. // .el-select--large::v-deep .el-select__wrapper {
  726. // font-size: 14px;
  727. // gap: 6px;
  728. // line-height: 24px;
  729. // min-height: 35px;
  730. // padding: 0;
  731. // border: none;
  732. // box-shadow: none;
  733. // }
  734. // .el-select__placeholder::v-deep.is-transparent {
  735. // color: #999999;
  736. // font-weight: 600;
  737. // }
  738. // >.title {
  739. // float: left;
  740. // width: 120px;
  741. // font-family: PingFang SC, PingFang SC;
  742. // font-weight: 600;
  743. // font-size: 20px;
  744. // color: #666666;
  745. // text-align: left;
  746. // font-style: normal;
  747. // text-transform: none;
  748. // }
  749. // .searchRole {
  750. // float: left;
  751. // padding-left: 20px;
  752. // box-sizing: border-box;
  753. // i {
  754. // display: inline-block;
  755. // width: 1px;
  756. // height: 12px;
  757. // background-color: #d9d9d9;
  758. // margin: 0 10px;
  759. // vertical-align: middle;
  760. // }
  761. // }
  762. // }
  763. // .role {
  764. // padding-left: 16px;
  765. // .searchRole {
  766. // width: 440px;
  767. // height: 40px;
  768. // line-height: 35px;
  769. // background-color: #fff;
  770. // border: 1px solid #ededed;
  771. // margin: 10px 20px 12px 22px;
  772. // border-radius: 25px;
  773. // em {
  774. // display: inline-block;
  775. // width: 29px;
  776. // height: 29px;
  777. // margin: 4px;
  778. // margin-right: 25px;
  779. // margin-left: 20px;
  780. // vertical-align: -13px;
  781. // background: url('http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png');
  782. // cursor: pointer;
  783. // }
  784. // >.ipt {
  785. // width: 245px;
  786. // font-family: PingFang SC, PingFang SC;
  787. // font-weight: 600;
  788. // font-size: 14px;
  789. // color: #666;
  790. // line-height: 16px;
  791. // padding-left: 22px;
  792. // box-sizing: border-box;
  793. // text-align: left;
  794. // font-style: normal;
  795. // text-transform: none;
  796. // border: none;
  797. // outline: none;
  798. // }
  799. // >.ipt::placeholder {
  800. // color: #cccccc;
  801. // }
  802. // span {
  803. // color: #999999;
  804. // }
  805. // }
  806. // }
  807. // .region {
  808. // .searchRole {
  809. // width: 440px;
  810. // height: 40px;
  811. // line-height: 35px;
  812. // background-color: #fff;
  813. // border: 1px solid #ededed;
  814. // margin: 10px 0px 12px 16px;
  815. // border-radius: 25px;
  816. // }
  817. // em {
  818. // display: inline-block;
  819. // width: 29px;
  820. // height: 29px;
  821. // margin-left: 48px;
  822. // vertical-align: middle;
  823. // background: url('http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png');
  824. // cursor: pointer;
  825. // }
  826. // i {
  827. // display: inline-block;
  828. // width: 24px;
  829. // height: 24px;
  830. // margin-right: 11px;
  831. // vertical-align: middle;
  832. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png");
  833. // }
  834. // span {
  835. // color: #999999;
  836. // margin-right: 22px;
  837. // }
  838. // }
  839. // }
  840. // .cityBox {
  841. // height: 60px;
  842. // background: #9CD26B;
  843. // display: flex;
  844. // margin: 0 auto;
  845. // .cityMain {
  846. // width: 1200px;
  847. // height: 60px;
  848. // line-height: 60px;
  849. // margin: 0 auto;
  850. // display: flex;
  851. // justify-content: flex-start;
  852. // .cityTitle {
  853. // font-size: 16px;
  854. // color: #fff;
  855. // font-weight: bold;
  856. // padding-left: 60px;
  857. // margin-right: 30px;
  858. // width: 76px;
  859. // }
  860. // .cityList {
  861. // li {
  862. // font-size: 16px;
  863. // float: left;
  864. // color: #fff;
  865. // margin-right: 14px;
  866. // cursor: pointer;
  867. // a {
  868. // font-size: 16px;
  869. // color: #fff;
  870. // cursor: pointer;
  871. // &:hover {
  872. // color: #ABE874;
  873. // }
  874. // }
  875. // }
  876. // }
  877. // }
  878. // }
  879. // 移动端 start ---------------------------------------->
  880. @media screen and (min-width:801px){
  881. .nav_in{
  882. display:flex;
  883. width:100%;
  884. flex-wrap: wrap;
  885. }
  886. .pc_none{
  887. display:none;
  888. }
  889. }
  890. @media screen and (max-width:800px){
  891. /*ipad_phone*/
  892. .partOne{
  893. height:auto;
  894. background:#49a769;
  895. margin-top:11px;
  896. padding:6px 0px;
  897. }
  898. .partOne .inner{
  899. overflow: hidden;
  900. position:relative;
  901. }
  902. .partOne .inner .navLeft{
  903. display:flex;
  904. overflow:hidden;
  905. word-break: keep-all;
  906. white-space: nowrap;
  907. height:33px;
  908. text-align:left;
  909. width:auto;
  910. float:left;
  911. font-weight:bold;
  912. margin-right:20px;
  913. }
  914. .partOne .inner .navIndex{
  915. line-height:31px;
  916. height:33px;
  917. overflow:hidden;
  918. width:auto;
  919. }
  920. .partOne .inner .navClass{
  921. line-height:33px;
  922. height:33px;
  923. padding:0px;
  924. word-break: keep-all;
  925. white-space: nowrap;
  926. overflow:hidden;
  927. display:none;
  928. }
  929. .partOne .inner .navClass div{
  930. margin-left:8px;
  931. float:left;
  932. }
  933. .partOne .inner .navClass div:nth-child(2){
  934. padding:0px;
  935. }
  936. .partOne .navigationOne{
  937. height:33px;
  938. display:block;
  939. width:auto;
  940. flex:1;
  941. padding:0;
  942. margin:0;
  943. box-sizing:border-box;
  944. overflow-y: hidden;// 改为 overlay 模式
  945. overflow-x: auto;// 改为 overlay 模式
  946. /* 新增滚动条样式 */
  947. &::-webkit-scrollbar {
  948. // width: 10;
  949. height: 4px;
  950. }
  951. // 隐藏滚动条轨道
  952. &::-webkit-scrollbar-track {
  953. background: transparent;
  954. // width: 10;
  955. height: 4;
  956. }
  957. // 隐藏滚动条滑块
  958. &::-webkit-scrollbar-thumb {
  959. background: transparent;
  960. }
  961. }
  962. .nav_in{
  963. height:100%;
  964. word-break: keep-all;
  965. white-space: nowrap;
  966. box-sizing:border-box;
  967. }
  968. .partOne .navigationOne li{
  969. width:auto;
  970. display:inline-block;
  971. height:100%;
  972. line-height:33px;
  973. overflow:hidden;
  974. font-size:16px;
  975. }
  976. .partOne .navigationOne li:nth-of-type(1){
  977. margin-left:0px;
  978. }
  979. .cityBox{
  980. display: block;
  981. overflow:hidden;
  982. height:auto;
  983. display:none;
  984. }
  985. .cityBox .cityMain{
  986. display: block;
  987. overflow:hidden;
  988. height:auto;
  989. width:100%;
  990. }
  991. .cityBox .cityMain .cityTitle{
  992. line-height: 22px;
  993. padding:0;
  994. margin:10px 0px 0px 10px;
  995. width:auto;
  996. }
  997. .cityList{
  998. overflow:hidden;
  999. }
  1000. .cityBox .cityMain .cityList li{
  1001. line-height:22px;
  1002. margin:11px;
  1003. }
  1004. .select{
  1005. overflow:hidden;
  1006. height:auto;
  1007. line-height:normal;
  1008. }
  1009. .select .inner{
  1010. width:96%;
  1011. margin:0px auto;
  1012. overflow:hidden;
  1013. height:auto;
  1014. }
  1015. .select .role{
  1016. padding:0;
  1017. height:auto;
  1018. overflow:hidden;
  1019. float:none;
  1020. }
  1021. .select .role .searchRole{
  1022. box-sizing:border-box;
  1023. width:333px;
  1024. float:left;
  1025. margin-left:0px;
  1026. }
  1027. .select .el-select{
  1028. width:230px!important;
  1029. }
  1030. .select .role .searchRole em{
  1031. margin:4px 10px;
  1032. float:right;
  1033. }
  1034. .select .role > .title, .select .region > .title{
  1035. float:none;
  1036. font-size:18px;
  1037. }
  1038. .select .region{
  1039. overflow:hidden;
  1040. height:auto;
  1041. float:none;
  1042. }
  1043. .select .region .searchRole{
  1044. float:none;
  1045. padding:10px 0;
  1046. width:90%;
  1047. margin:5px;
  1048. height:auto;
  1049. }
  1050. .select .region .el-select{
  1051. margin-left:17px;
  1052. }
  1053. .select .region em{
  1054. margin-left:22px;
  1055. }
  1056. .nav_select_btn_box{
  1057. padding:5px 0px;
  1058. border-bottom:1px solid #ededed;
  1059. width:92%;margin:0px auto;
  1060. }
  1061. .nav_select_btn_box::after{
  1062. content: '';
  1063. display: block;
  1064. height: 0;
  1065. visibility: hidden;
  1066. clear: both;
  1067. }
  1068. .nav_select_btn{
  1069. height: 33px;
  1070. line-height: 33px;
  1071. color: #333;font-size:14px;
  1072. padding:0px 30px 0px 6px;
  1073. float:left;margin:0px 20px 5px 0px;
  1074. background:url(../../public/image/Iconly.png) no-repeat right center;
  1075. background-size:auto 20px;
  1076. }
  1077. .nav_department_btn_box{
  1078. position:relative;
  1079. .nav_department_select{
  1080. width:100%;
  1081. height:100%;
  1082. position:absolute;
  1083. left:0px;
  1084. top:0px;
  1085. border:0;
  1086. }
  1087. }
  1088. .nav_department_drop_box{
  1089. position:absolute;
  1090. left:0px;
  1091. top:33px;
  1092. z-index:111;
  1093. width:100%;
  1094. height:333px;
  1095. border:1px solid #ededed;
  1096. background:#fff;
  1097. overflow:auto;
  1098. border-radius:6px;
  1099. box-sizing:border-box;
  1100. display:none;
  1101. }
  1102. .nav_department_btn_box:hover .nav_department_drop_box{
  1103. display:block;
  1104. }
  1105. .nav_department_drop_a{
  1106. width:100%;
  1107. height:44px;
  1108. line-height:44px;
  1109. display:block;
  1110. font-size:14px;
  1111. color:#333;
  1112. padding:0px 10px 0px;
  1113. box-sizing:border-box;
  1114. word-break: keep-all;
  1115. white-space: nowrap;
  1116. overflow:hidden;
  1117. text-overflow:ellipsis;
  1118. }
  1119. .partOne .inner .navIndex a{
  1120. font-size:16px;
  1121. font-weight:normal;
  1122. opacity:.6;
  1123. }
  1124. .partOne .inner .navIndex .phone_nav_index_only{
  1125. font-weight:bold;
  1126. opacity:1;
  1127. }
  1128. .nav_department_panel{
  1129. width:100%;
  1130. background:#fff;
  1131. left:0px;
  1132. top:0px;
  1133. position:fixed;
  1134. z-index:999;
  1135. height:100%;
  1136. }
  1137. .panel_head_box{
  1138. width:97%;
  1139. margin:0px auto 4px;
  1140. height:50px;
  1141. border-bottom:1px solid #b8b8b8;
  1142. text-align:center;
  1143. position:relative;
  1144. }
  1145. .panel_head_h4{
  1146. height:50px;
  1147. line-height:50px;
  1148. display:inline-block;
  1149. font-size:22px;
  1150. color:#333;
  1151. text-align:center;
  1152. }
  1153. .panel_head_btn{
  1154. float:right;
  1155. width:22px;
  1156. height:22px;
  1157. top:12px;
  1158. position:absolute;right:0px;
  1159. background:url('../../public/image/guanbi1.png') no-repeat center center;
  1160. background-size:100% 100%;
  1161. }
  1162. .nav_department_panel_in{
  1163. width:100%;
  1164. height:100%;
  1165. box-sizing:border-box;
  1166. overflow:auto;
  1167. position:relative;
  1168. padding-bottom:122px;
  1169. }
  1170. .nav_department_panel_ul{
  1171. width:30%;
  1172. float:left;
  1173. height:100%;
  1174. box-sizing:border-box;
  1175. overflow:auto;
  1176. }
  1177. .nav_department_panel_ul_2{
  1178. width:35%;
  1179. background:#F2F3F7;
  1180. }
  1181. .nav_department_panel_ul_3{
  1182. width:35%;
  1183. background:#F2F3F7;
  1184. }
  1185. .nav_department_panel_ul_a{
  1186. width:100%;
  1187. height:40px;
  1188. line-height:40px;
  1189. display:block;
  1190. font-size:16px;
  1191. color:#333;
  1192. padding:0px 10px 0px;
  1193. box-sizing:border-box;
  1194. word-break: keep-all;
  1195. white-space: nowrap;
  1196. overflow:hidden;
  1197. text-overflow:ellipsis;
  1198. }
  1199. .nav_department_panel_ul_a_only{
  1200. font-weight:bold;
  1201. color:#46D333;
  1202. }
  1203. .nav_department_panel_foot{
  1204. width:100%;
  1205. margin:0px auto;
  1206. height:36px;
  1207. position:absolute;
  1208. left:0px;bottom:70px;
  1209. background:#fff;
  1210. text-align:center;
  1211. .nav_department_panel_foot_btn{
  1212. width:33%;
  1213. height:36px;
  1214. line-height:36px;
  1215. display:inline-block;
  1216. text-align:center;
  1217. border-radius:16px;
  1218. font-size:16px;
  1219. padding:0px 10px;
  1220. margin:0px 11px;
  1221. }
  1222. .nav_department_panel_foot_btn_clear{
  1223. background:#abe874;
  1224. color:#fff;
  1225. }
  1226. .nav_department_panel_foot_btn_sure{
  1227. background:#46D333;
  1228. color:#fff;
  1229. }
  1230. }
  1231. .partOne .navigationOne li a span{
  1232. display:block;
  1233. line-height:33px;
  1234. height:33px;
  1235. opacity:0.6;
  1236. }
  1237. .nav_in .router-link-exact-active span{
  1238. font-size:16px;
  1239. font-weight:bold;
  1240. opacity:1!important;
  1241. }
  1242. .select{display:none;}
  1243. .phone_none{display:none;}
  1244. }
  1245. //移动端 end ---------------------------------------->
  1246. </style>