pageHead.vue 24 KB

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