pageHead.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  1. <template>
  2. <header>
  3. <div class="headerContainer">
  4. <div class="headerBox">
  5. <div class="headerMain">
  6. <div class="headerBox_left">欢迎来到全国法制资讯发布中心!</div>
  7. <div class="headerBox_right">
  8. <NuxtLink to="#">收藏</NuxtLink>
  9. <span>|</span>
  10. <NuxtLink to="/">人员查询</NuxtLink>
  11. <span>|</span>
  12. <NuxtLink to="/">车辆查询</NuxtLink>
  13. <span>|</span>
  14. <NuxtLink to="/" @click="phone_close_fun">用户登录</NuxtLink>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="logoBox">
  19. <div class="logoBox_left">
  20. <NuxtLink to="/">
  21. <img src="../../public/header/logo.png" alt="logo">
  22. </NuxtLink>
  23. </div>
  24. <div class="logoBox_right">
  25. <div class="logoBox_right_top">
  26. <NuxtLink to="http://www.mps.gov.cn/">公安部</NuxtLink>
  27. <NuxtLink to="http://www.court.gov.cn/">最高人民法院</NuxtLink>
  28. <NuxtLink to="http://www.spp.gov.cn/">最高人民检察院</NuxtLink>
  29. <NuxtLink to="http://www.moj.gov.cn/">司法部</NuxtLink>
  30. <NuxtLink to="http://www.ccdi.gov.cn/">中央纪委国家监委</NuxtLink>
  31. </div>
  32. <div class="logoBox_right_center">
  33. <h2>
  34. <NuxtLink to="/">全国法制资讯发布中心 官网</NuxtLink>
  35. </h2>
  36. </div>
  37. <div class="logoBox_right_bottom">
  38. <h4 class="g_text">
  39. <NuxtLink to="/">全国政务信息一体化应用平台</NuxtLink>
  40. </h4>
  41. <h4>
  42. <NuxtLink to="/">fzxfb.org.cn</NuxtLink>
  43. </h4>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </header>
  49. <!-- <header>
  50. <nav class="headerNav">
  51. <div class="inner">
  52. <div class="left">
  53. <span>
  54. <a href="http://znxyw.org.cn/" target="_blank">中农兴业网团</NuxtLink>
  55. </span>
  56. <span>旗下网站:<span>农业百强网站(政府类30强)</span></span>
  57. <div class="phone_head_btn" @click="togglePanel"></div>
  58. </div>
  59. <div class="right ">
  60. <div class="menu">
  61. <button class="reg" @click="goTopic">
  62. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/topicon1.png" alt="商圈">商圈
  63. </button>
  64. <button class="reg" @click="goAdvertising">
  65. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/topicon2.png" alt="广告服务">广告服务
  66. </button>
  67. <button class="reg" @click="goLogin" v-show="!showToken">
  68. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/topicon3.png" alt="登录">登录
  69. </button>
  70. <button class="reg" @click="goRegister" v-show="!showToken">
  71. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/topicon4.png" alt="注册">注册
  72. </button>
  73. <button class="reg" @click="userCenter" v-if="showToken">
  74. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/topicon3.png" alt="用户信息">
  75. {{ username }}
  76. </button>
  77. <button class="reg" @click="goSearch">
  78. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/head/searchicon.png" alt="搜索">搜索
  79. </button>
  80. </div>
  81. <ul class="userInfo11" v-if="isShow">
  82. <li @click="gotosystem">个人中心</li>
  83. <li @click="exit">退出</li>
  84. </ul>
  85. </div>
  86. </div>
  87. </nav>
  88. <div class="headerLogo">
  89. <div class="inner">
  90. <img :src="logo" :alt="webSiteName" class="left" @click="backHome">
  91. <div class="titlead" v-if="adImg">
  92. <a href="http://sannongdy.org.cn/" v-if="adImg.image_url == null" target="_blank"
  93. :title="adImg.introduce">
  94. <img :src="adImg.thumb" :alt="adImg.introduce" data-tag="imgurl.ad_tag" :id="adImg.ad_tag">
  95. </NuxtLink>
  96. <a :href="adImg.image_url" v-else :title="adImg.introduce">
  97. <img :src="adImg.image_src" :alt="adImg.introduce" data-tag="imgurl.ad_tag" :id="adImg.ad_tag">
  98. </NuxtLink>
  99. </div>
  100. <div class="logo_right_box">
  101. <div class="logo_right_btn" @click="goTopic">
  102. <img class="logo_right_btn_img" src="../../public/image/4.png" alt="商圈">
  103. <span class="logo_right_btn_text" >商圈</span>
  104. </div>
  105. <div class="logo_right_btn" @click="user_fun">
  106. <img class="logo_right_btn_img" src="../../public/image/6.png" alt="用户">
  107. <span class="logo_right_btn_text" >用户</span>
  108. </div>
  109. <div class="logo_right_btn" @click="goSearch">
  110. <img class="logo_right_btn_img" src="../../public/image/7.png" alt="搜索">
  111. <span class="logo_right_btn_text" >搜索</span>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <El-dialog v-model="dialogTableVisible" width="800">
  117. <div class="tips">
  118. <p>
  119. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/tips.png"> 提示:注册请联系管理员操作!
  120. </p>
  121. <p>联系电话:010-56019387</p>
  122. <p>QQ : 2909421493 、213552413</p>
  123. </div>
  124. </El-dialog>
  125. <El-dialog v-model="dialogTableVisible_phone" width="800">
  126. <div class="tips">
  127. <p>
  128. <img src="http://img.bjzxtw.org.cn/master/bjzxtw/public/topic/tips.png"> 注册请联系管理员操作!
  129. </p>
  130. <p>联系电话:010-56019387</p>
  131. <p>QQ : 2909421493 、213552413</p>
  132. <div class="dialog_load_btn" @click="phone_close_fun">登录</div>
  133. </div>
  134. </El-dialog>
  135. <section class="HomePanel_out" v-show="panelVisible">
  136. <HomePanel></HomePanel>
  137. </section>
  138. </header> -->
  139. </template>
  140. <script setup>
  141. // 引入全局状态-HomePanel_out
  142. const panelVisible = useState('panelVisible')
  143. //1.加载基本依赖 start ---------------------------------------->
  144. import { ref, watch, onMounted } from 'vue'
  145. import { ElDialog, ElMessage } from 'element-plus'
  146. import { getToken, setToken, removeToken } from '@/store/useCookieStore'
  147. import { setTicket, removeTicket } from '@/store/useticketStore'
  148. //网站地址
  149. const { $webUrl, $CwebUrl, $BwebUrl, $LoginWebUrl } = useNuxtApp()
  150. //1.加载基本依赖 end ---------------------------------------->
  151. //1.登录逻辑 start ---------------------------------------->
  152. let ticket = ref('')
  153. let token = ref('')
  154. let route = useRoute()
  155. //页面每次刷新先判断一下用户状态是否已经过期了
  156. //如果没有过期再储存token
  157. ticket.value = route.query.ticket
  158. token.value = route.query.admintoken
  159. if (ticket.value) {
  160. setTicket(ticket.value)
  161. }
  162. if (token.value) {
  163. setToken(token.value)
  164. }
  165. //搜索框
  166. let keyword = useState('keyword', () => '')
  167. //用户名
  168. let username = useState('username', () => '用户中心')
  169. //是否删除
  170. let isDel = useState('isDel', () => 1)
  171. //是否显示用户中心
  172. let isShow = useState('isShow', () => false)
  173. let token1 = useState("token1", () => '')
  174. let showToken = useState("showToken", () => '')
  175. token1.value = getToken()
  176. //检测登录状态
  177. let tokenStatus = ref('');
  178. tokenStatus.value = getToken()
  179. if (tokenStatus.value == undefined) {
  180. console.log("-------------------------------------未获取到用户token")
  181. } else {
  182. console.log("--------------------------------已获取到用户token")
  183. }
  184. //点击登录按钮
  185. let goLogin = () => {
  186. //开启线上登录模式 start---------------------------------------->
  187. isDel.value = 0
  188. token1.value = getToken()
  189. window.open($BwebUrl + "/#/login?backurl=" + $CwebUrl, '_blank');
  190. //开启线上登录模式 end---------------------------------------->
  191. //开启本地登录模式 start---------------------------------------->
  192. // window.location.href = $BwebUrl + "/auth/login.php?backurl=" + $CwebUrl;
  193. //"http://adminpre.bjzxtw.org.cn/auth/login.php?backurl=http://nwpre.bjzxtw.org.cn";
  194. //开启本地登录模式 end---------------------------------------->
  195. }
  196. let dialogTableVisible = ref(false)
  197. let dialogTableVisible_phone = ref(false)
  198. //点击注册按钮
  199. let goRegister = () => {
  200. dialogTableVisible.value = true
  201. }
  202. //点击用户中心
  203. let userCenter = () => {
  204. if (isShow.value) {
  205. isShow.value = false
  206. return
  207. } else {
  208. isShow.value = true
  209. return
  210. }
  211. }
  212. // 添加点击事件处理函数
  213. const handleClickOutside = (event) => {
  214. // 获取用户信息菜单元素
  215. const userInfoMenu = document.querySelector('.userInfo11');
  216. // 获取用户按钮元素
  217. const userButton = document.querySelector('.reg img[alt="用户信息"]')?.parentElement;
  218. // 如果点击的不是菜单本身且不是用户按钮,则隐藏菜单
  219. if (userInfoMenu &&
  220. !userInfoMenu.contains(event.target) &&
  221. !userButton?.contains(event.target)) {
  222. isShow.value = false;
  223. }
  224. }
  225. //2.登录逻辑 end ---------------------------------------->
  226. //3.跳转菜单逻辑 start ---------------------------------------->
  227. let gotosystem = () => {
  228. let url = $BwebUrl + '/#/login?userurl=' + $CwebUrl;
  229. isShow.value = false;
  230. //window.location.href = url;
  231. window.open(url, '_blank');
  232. }
  233. //点击退出按钮
  234. let exit = () => {
  235. window.location.href = $CwebUrl;
  236. isDel.value = 1
  237. token1.value = getToken()
  238. isShow.value = false;
  239. let tokendata = getToken()
  240. let url = $LoginWebUrl + '/api/logout?backurl=' + $CwebUrl + '&admintoken=' + tokendata;
  241. window.location.href = url;
  242. removeToken()
  243. removeTicket()
  244. }
  245. //点击返回首页
  246. let backHome = () => {
  247. window.location.href = $CwebUrl;
  248. }
  249. //点击搜索按钮
  250. let goSearch = () => {
  251. const route = `/search/search?keyword=${keyword.value}`;
  252. window.location.href = route;
  253. }
  254. // 点击广告服务
  255. let goAdvertising = () => {
  256. // window.open('/advertising?activeName=1', '_blank');//测试
  257. //本地启动广告服务
  258. //线上启动
  259. if (getToken()) {
  260. window.open($CwebUrl + '/advertising?activeName=1', '_blank');
  261. } else {
  262. goLogin()
  263. }
  264. }
  265. //点击商圈
  266. let goTopic = () => {
  267. if (getToken()) {
  268. window.open($CwebUrl + '/topic', '_blank');
  269. } else {
  270. goLogin()
  271. }
  272. }
  273. //点击用户==手机版11
  274. let user_fun = () => {
  275. if (getToken()) {
  276. //已经登录
  277. goLogin()
  278. } else {
  279. //没有登录
  280. dialogTableVisible_phone.value = true
  281. return
  282. }
  283. }
  284. // 添加关闭对话框处理函数
  285. const phone_close_fun = () => {
  286. // 在这里可以添加关闭对话框前需要执行的逻辑
  287. dialogTableVisible_phone.value = false;
  288. // 确保对话框关闭
  289. goLogin()
  290. }
  291. // 监听token状态
  292. watch(token1, (newval, oldval) => {
  293. showToken.value = newval
  294. }, {
  295. deep: true,
  296. immediate: true,
  297. })
  298. // 获得网站logo
  299. const logo = ref("")
  300. const webSiteName = ref("")
  301. let getLogo = async () => {
  302. const responseStatus = await requestDataPromise('/web/getWebsiteHead', {
  303. method: 'GET',
  304. query: {},
  305. });
  306. if (responseStatus.code == 200) {
  307. logo.value = responseStatus.data.logo;
  308. webSiteName.value = responseStatus.data.website_name;
  309. } else if (responseStatus.code == 0) {
  310. window.location.href = $CwebUrl + '/404';
  311. }
  312. }
  313. getLogo();
  314. //3.跳转菜单逻辑 end ---------------------------------------->
  315. //4.获取广告 start ---------------------------------------->
  316. let adImg = ref({})
  317. //4.获取广告 end ---------------------------------------->
  318. //5.获取登录状态 start ---------------------------------------->
  319. // 在组件卸载时移除事件监听
  320. onUnmounted(() => {
  321. document.removeEventListener('click', handleClickOutside);
  322. })
  323. onMounted(async () => {
  324. //添加监听关闭个人中心菜单
  325. document.addEventListener('click', handleClickOutside);
  326. //从客户端获取登录状态
  327. //从客户端阶段开始 持续查询登录状态
  328. let getLoginStatus = async () => {
  329. //获得token
  330. const token = getToken();
  331. const { $webUrl, $CwebUrl } = useNuxtApp();
  332. if (token == undefined) {
  333. //如果没有获取到token 不访问后端获取在线状态
  334. console.log("没有获取到token!无需查询登录状态!")
  335. showToken.value = false;
  336. } else {
  337. //如果获取到了token 访问后端查询状态
  338. console.log("已获取到用户token,开始查询登录状态!")
  339. const queryParams = new URLSearchParams({
  340. token: getToken()
  341. });
  342. let url = `${$webUrl}/api/loginStatus?${queryParams.toString()}`
  343. const responseStatus = await fetch(url, {
  344. method: 'GET',
  345. headers: {
  346. 'Content-Type': 'application/json',
  347. 'Userurl': $CwebUrl,
  348. //'token': getToken(),
  349. 'Origin': $CwebUrl
  350. }
  351. });
  352. const result = await responseStatus.json();
  353. console.log(result)
  354. if (result.code == 200) {
  355. console.log("用户已经登录!");
  356. showToken.value = true;
  357. }
  358. if (result.code == -1) {
  359. isShow.value = false;
  360. showToken.value = false;
  361. removeToken();
  362. removeTicket();
  363. ElMessage.error('您没有权限登录该网站!')
  364. }
  365. if (result.code == -2) {
  366. isShow.value = false;
  367. showToken.value = false;
  368. removeToken();
  369. removeTicket();
  370. ElMessage.error('您已退出登录!')
  371. }
  372. }
  373. }
  374. getLoginStatus();
  375. setInterval(getLoginStatus, 3000);
  376. //从客户端获取广告
  377. //从客户端获取行政职能部门 加快打开速度
  378. const { $webUrl, $CwebUrl } = useNuxtApp();
  379. //广告1
  380. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_top`
  381. const responseAd1 = await fetch(url, {
  382. headers: {
  383. 'Content-Type': 'application/json',
  384. 'Userurl': $CwebUrl,
  385. 'Origin': $CwebUrl
  386. }
  387. });
  388. const resultAd1 = await responseAd1.json();
  389. adImg.value = resultAd1.data[0];
  390. //从客户端获取用户名
  391. let userInfoUrl = `${$webUrl}/user/getUserInfo`
  392. const userInfoResponse = await fetch(userInfoUrl, {
  393. headers: {
  394. 'Content-Type': 'application/json',
  395. 'Userurl': $CwebUrl,
  396. 'Origin': $CwebUrl
  397. }
  398. });
  399. const userInfo = await userInfoResponse.json();
  400. if (userInfo.code == 200) {
  401. username.value = userInfo.data.nickname
  402. }
  403. })
  404. //5.获取登录状态 end ---------------------------------------->
  405. //点击手机
  406. // 添加全局状态
  407. // const panelVisible = useState('panelVisible', () => false)
  408. const togglePanel = () => {
  409. panelVisible.value = true
  410. }
  411. </script>
  412. <style lang="less" scoped>
  413. //PC端 start ---------------------------------------->
  414. .headerContainer {
  415. width: 100%;
  416. }
  417. .headerBox {
  418. width: 100%;
  419. height: 40px;
  420. margin-bottom: 20px;
  421. display: flex;
  422. align-items: center;
  423. justify-content: center;
  424. background: rgba(255, 255, 255, .6);
  425. .headerMain {
  426. display: flex;
  427. align-items: center;
  428. justify-content: space-between;
  429. width: 1400px;
  430. .headerBox_left {
  431. font-size: 18px;
  432. color:#0f50d5;
  433. }
  434. .headerBox_right {
  435. display: flex;
  436. align-items: center;
  437. justify-content: flex-end;
  438. a {
  439. font-size: 18px;
  440. color:#0f50d5;
  441. margin-left: 6px;
  442. }
  443. span {
  444. margin-left: 6px;
  445. }
  446. }
  447. }
  448. }
  449. .logoBox {
  450. width: 1300px;
  451. height: 190px;
  452. margin: 0 auto;
  453. display: flex;
  454. align-items: center;
  455. justify-content: space-between;
  456. .logoBox_left {
  457. width: 180px;
  458. img {
  459. width: 180px;
  460. height: 145px;
  461. margin-top: 40px;
  462. }
  463. }
  464. .logoBox_right {
  465. width: 1000px;
  466. height: 190px;
  467. .logoBox_right_top {
  468. text-align: right;
  469. a {
  470. font-size: 22px;
  471. color: #0828bb;
  472. font-weight: bold;
  473. padding-left: 2%;
  474. -webkit-text-stroke: 1px #FFF;
  475. }
  476. }
  477. .logoBox_right_center {
  478. h2 {
  479. width: 100%;
  480. height: 120px;
  481. line-height: 120px;
  482. }
  483. a {
  484. font-size: 81px;
  485. color: #0828bb;
  486. font-weight: bold;
  487. -webkit-text-stroke: 3px #FFF;
  488. }
  489. }
  490. .logoBox_right_bottom {
  491. display: flex;
  492. align-items: center;
  493. justify-content: space-between;
  494. h4 {
  495. height: 40px;
  496. line-height: 40px;
  497. a {
  498. font-size: 22px;
  499. color: #0828bb;
  500. font-weight: bold;
  501. -webkit-text-stroke: .5px #FFF;
  502. }
  503. }
  504. }
  505. }
  506. }
  507. //PC端 end ---------------------------------------->
  508. // .userInfo11 {
  509. // width: 100px;
  510. // height: 80px;
  511. // background-color: #fff;
  512. // box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  513. // border-radius: 3px;
  514. // position: absolute;
  515. // top: 40px;
  516. // right: 35px;
  517. // font-size: 14px;
  518. // z-index: 999;
  519. // li {
  520. // height: 40px;
  521. // line-height: 40px;
  522. // color: #333333;
  523. // padding-left: 10px;
  524. // }
  525. // >li:hover {
  526. // color: #028E21;
  527. // }
  528. // }
  529. // .tips {
  530. // padding: 20px 0;
  531. // text-align: center;
  532. // font-size: 20px;
  533. // color: #40663B;
  534. // font-weight: bold;
  535. // img {
  536. // width: 78px;
  537. // height: 78px;
  538. // vertical-align: middle;
  539. // margin-right: 20px;
  540. // p {
  541. // line-height: 30px;
  542. // }
  543. // }
  544. // p {
  545. // line-height: 40px;
  546. // }
  547. // >p:first-child {
  548. // margin-bottom: 30px;
  549. // }
  550. // }
  551. // /* 页面头部 */
  552. // header {
  553. // width: 100%;
  554. // // height: 201px;
  555. // font-size: 12px;
  556. // font-family: PingFang SC-Regular;
  557. // color: #666666;
  558. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/head/headtopbg.png") repeat-x;
  559. // }
  560. // .headerNav {
  561. // width: 100%;
  562. // height: 33px;
  563. // line-height: 33px;
  564. // }
  565. // .headerNav .left>span {
  566. // margin-right: 20px;
  567. // a {
  568. // color: #666666;
  569. // }
  570. // }
  571. // .headerNav .right {
  572. // display: flex;
  573. // margin-right: 10px;
  574. // position: relative;
  575. // button {
  576. // font-size: 12px;
  577. // color: #666666;
  578. // border: none;
  579. // background: none;
  580. // cursor: pointer;
  581. // }
  582. // .login {
  583. // width: 36px;
  584. // height: 19px;
  585. // color: #fff;
  586. // border-radius: 4px;
  587. // background-color: #028E21;
  588. // margin-right: 15px;
  589. // cursor: pointer;
  590. // }
  591. // .menu,.right-top-menu {
  592. // display: flex;
  593. // }
  594. // .reg {
  595. // margin-right: 20px;
  596. // display: flex;
  597. // align-items: center;
  598. // justify-content: center;
  599. // height: 33px;
  600. // img {
  601. // margin-right: 5px;
  602. // }
  603. // }
  604. // }
  605. // .headerNav .right {
  606. // float: right;
  607. // font-size: 12px;
  608. // span {
  609. // margin-right: 20px;
  610. // }
  611. // .home,.collection {
  612. // display: inline-block;
  613. // width: 16px;
  614. // height: 16px;
  615. // vertical-align: -3px;
  616. // }
  617. // .home {
  618. // background-image: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png");
  619. // }
  620. // .collection {
  621. // background-image: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png");
  622. // }
  623. // .exit {
  624. // line-height: 30px;
  625. // }
  626. // }
  627. // // 头部logo
  628. // .headerLogo {
  629. // height: 145px;
  630. // position: relative;
  631. // .titlead {
  632. // position: absolute;
  633. // bottom: 5px;
  634. // right: 0;
  635. // width: 830px;
  636. // height: 120px;
  637. // overflow: hidden;
  638. // a {
  639. // display: block;
  640. // height: 110px;
  641. // overflow: hidden;
  642. // }
  643. // img {
  644. // width: 100%;
  645. // height: 110px;
  646. // }
  647. // }
  648. // .inner {
  649. // position: relative;
  650. // height: 145px;
  651. // }
  652. // .inner>img {
  653. // margin-top: 22px;
  654. // cursor: pointer;
  655. // }
  656. // // 搜索框部分
  657. // .search {
  658. // float: left;
  659. // width: 440px;
  660. // height: 40px;
  661. // background-color: #fff;
  662. // line-height: 40px;
  663. // margin-left: 39px;
  664. // margin: 71px 39px 48px;
  665. // position: relative;
  666. // em {
  667. // display: inline-block;
  668. // width: 30px;
  669. // height: 30px;
  670. // background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/image/search.png") no-repeat;
  671. // position: absolute;
  672. // top: 5px;
  673. // left: 15px;
  674. // }
  675. // input {
  676. // float: left;
  677. // width: 351px;
  678. // height: 40px;
  679. // border: none;
  680. // outline: none;
  681. // padding-left: 65px;
  682. // box-sizing: border-box;
  683. // border: 1px solid #028E21;
  684. // border-right: none;
  685. // border-radius: 4px 0px 0px 4px;
  686. // }
  687. // button {
  688. // float: right;
  689. // width: 89px;
  690. // height: 40px;
  691. // background-color: #028E21;
  692. // border-radius: 0px 4px 4px 0px;
  693. // border: none;
  694. // font-size: 14px;
  695. // color: #fff;
  696. // font-family: PingFang SC, PingFang SC;
  697. // font-weight: 500;
  698. // }
  699. // }
  700. // // 右侧小图标
  701. // .serve {
  702. // float: right;
  703. // height: 60px;
  704. // margin-top: 60px;
  705. // margin-right: 60px;
  706. // >li {
  707. // float: left;
  708. // height: 64px;
  709. // margin-left: 48px;
  710. // }
  711. // >li>a {
  712. // display: inline-block;
  713. // height: 64px;
  714. // }
  715. // >li img {
  716. // width: 29px;
  717. // height: 29px;
  718. // padding: 8px 14px;
  719. // }
  720. // >li p {
  721. // height: 28px;
  722. // text-align: center;
  723. // color: #666666;
  724. // }
  725. // }
  726. // }
  727. //移动端 start ---------------------------------------->
  728. @media screen and (min-width:801px){
  729. .logo_right_box{display:none;}
  730. .phone_head_btn{display:none;}
  731. .menu_phone{display:none;}
  732. .pc_none{display:none;}
  733. }
  734. @media screen and (max-width:800px){/*ipad_phone*/
  735. .headerNav .inner .left{width:100%;}
  736. .phone_head_btn{display:block;float:right;width:26px;height:26px; margin-top:4px;
  737. background:url(../../public/image/2.png) no-repeat 0 0px;background-size:100% 100%;
  738. }
  739. .headerNav{overflow:hidden;height:auto; padding:5px 0px;background:#f7f7f7;}
  740. .headerNav .left > span{margin-right:0px;}
  741. .headerNav .left > span:nth-of-type(1){margin-right:8px;}
  742. .headerLogo{
  743. height:auto;
  744. margin-top:8px;
  745. }
  746. .headerLogo .left{
  747. float:none;
  748. }
  749. .headerLogo .inner{
  750. display: flex;margin:4px auto; height:auto;
  751. justify-content: space-between;
  752. }
  753. .headerLogo .titlead{
  754. position:relative;bottom:auto;right:auto;height:auto;
  755. width:100%;
  756. display: flex;
  757. align-items: center;
  758. justify-content: center;
  759. }
  760. .headerLogo .titlead img{
  761. height:100%;
  762. }
  763. .headerLogo .titlead a{
  764. height:100%;
  765. }
  766. .headerLogo .inner>img{
  767. height:40px;
  768. margin:0px 10px 0px 0px;
  769. }
  770. .headerNav .right{
  771. margin-right:0px;
  772. width:100%;
  773. display:block;
  774. text-align:center;
  775. }
  776. .headerNav .right .menu{
  777. display:block;
  778. width:100%;
  779. word-break: keep-all;
  780. white-space: nowrap;
  781. }
  782. .headerNav .right .menu .reg:nth-of-type(1){
  783. float:left;
  784. margin:0px!important;
  785. }
  786. .headerNav .right .menu .reg:nth-last-of-type(1){
  787. float:right;
  788. margin:0px!important;
  789. }
  790. .headerNav .right .reg{
  791. margin:0px 4.2vw!important;width:auto;font-size:3vw;
  792. display:inline-block!important;line-height:33px;
  793. }
  794. .headerLogo .titlead {
  795. display:none;
  796. }
  797. .logo_right_box{
  798. .logo_right_btn{
  799. float:left;
  800. width:10vw;
  801. margin-left:7vw;
  802. text-align:center;
  803. }
  804. .logo_right_btn:nth-of-type(1){
  805. margin-left:0px;
  806. }
  807. .logo_right_btn_img{
  808. width:6vw;
  809. display:inline-block;
  810. }
  811. .logo_right_btn_text{
  812. display:block;
  813. width:100%;
  814. height:16px;
  815. color:#333;
  816. text-align:center;
  817. line-height:16px;
  818. font-size:3vw;
  819. }
  820. }
  821. .tips{
  822. font-size:16px;
  823. }
  824. .tips img{
  825. width:60px;
  826. height:60px;
  827. margin-right:7px;
  828. }
  829. .tips p{
  830. line-height:28px;
  831. }
  832. .tips > p:first-child(1){
  833. margin-bottom:13px;
  834. }
  835. .dialog_load_btn{
  836. line-height:33px;
  837. width:111px;
  838. margin:40px auto 0;
  839. border-radius:4px;
  840. height:33px;text-align:center;
  841. background: #40663B;
  842. font-size: 14px;
  843. color: #fff;
  844. }
  845. .inner .right{
  846. display:none!important;
  847. }
  848. .phone_none{display:none;}
  849. }
  850. .el-overlay{
  851. width:100%;
  852. .el-overlay-dialog{
  853. width:90%;
  854. left:5%;
  855. }
  856. .el-dialog{
  857. width:100%;
  858. }
  859. }
  860. //移动端 end ---------------------------------------->
  861. </style>