homeHeader.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. <template>
  2. <div class="header_app">
  3. <hea-der class="tophea_box"></hea-der>
  4. <div class="back-clor">
  5. <div class="header_top">
  6. <div class="logo" @click="$util.goRoute({ name: 'home' })">
  7. <img class="logo_img" src="@/assets/img/logo.png" alt="" srcset="" />
  8. </div>
  9. <div class="input_box">
  10. <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" text-color="#065BA9" active-text-color="#065BA9" @select="handleSelect">
  11. <el-menu-item index="overView">全览图</el-menu-item>
  12. <el-menu-item index="article">相关文章</el-menu-item>
  13. <el-menu-item index="product">产品详情</el-menu-item>
  14. <el-menu-item index="antibody">抗体数据库</el-menu-item>
  15. <el-menu-item index="profile">资料下载</el-menu-item>
  16. </el-menu>
  17. </div>
  18. <div class="header_c">
  19. <div class="clout">
  20. <img class="clout_img" src="@/assets/img/slogan.png" alt="" />
  21. <userInfo class="user_info"></userInfo>
  22. </div>
  23. </div>
  24. <!-- 移动端 -->
  25. <div style="display:none" class="menu" @click="tapcanceltpmd">
  26. <img class="menu_img" src="@/assets/img/menu.png" alt="" />
  27. </div>
  28. <div class="menubox" v-if="tapshowpmd">
  29. <div class="cancel" @click="tapcanceltpmdn">
  30. <img src="@/assets/img/dele.png" alt="" class="cancel_images" />
  31. </div>
  32. <!-- 移动端菜单 -->
  33. <el-menu class="el-menu-demo" default-active="1" background-color="#005bab" text-color="#ffffff" active-text-color="#ffffff" @select="handleSelect">
  34. <el-menu-item index="contact">全览图</el-menu-item>
  35. <el-menu-item index="contact">相关文章</el-menu-item>
  36. <el-menu-item index="product">产品详情</el-menu-item>
  37. <el-menu-item index="contact">抗体数据库</el-menu-item>
  38. <el-menu-item index="profile">资料下载</el-menu-item>
  39. <!-- <el-menu-item index="contact">{{ $t("button.contactUs") }}</el-menu-item> -->
  40. </el-menu>
  41. </div>
  42. </div>
  43. </div>
  44. <!-- <indexTaps></indexTaps> -->
  45. </div>
  46. </template>
  47. <script>
  48. import userInfo from "@/components/userInfo";
  49. import heaDer from "@/components/header";
  50. export default {
  51. components: {
  52. heaDer,
  53. // indexTaps,
  54. userInfo
  55. },
  56. name: "homeHeader",
  57. data() {
  58. return {
  59. showMove: localStorage.getItem("user"),
  60. tapshowpmd: false,
  61. activeIndex: "",
  62. tapshow: false,
  63. activity: true,
  64. activityshow: true
  65. };
  66. },
  67. methods: {
  68. tapcancel() {
  69. this.tapshow = false;
  70. },
  71. tapcanceltpmd() {
  72. this.tapshowpmd = true;
  73. },
  74. tapcanceltpmdn() {
  75. this.tapshowpmd = false;
  76. },
  77. handleSelect(key, keyPath) {
  78. if (key) {
  79. this.$util.goRoute({ name: key });
  80. } else {
  81. this.$message("Launching soon", 3000);
  82. }
  83. this.tapshowpmd = false;
  84. }
  85. }
  86. };
  87. </script>
  88. <style lang="scss" scoped>
  89. @media screen and (min-width: 751px) and (max-width: 9999px) {
  90. .tophea_box {
  91. display: none;
  92. }
  93. .el-dropdown-menu /deep/ {
  94. margin-top: 6px;
  95. padding: 0;
  96. background: #012c53;
  97. color: #fff;
  98. border: none;
  99. .el-dropdown-menu__item {
  100. color: #fff;
  101. }
  102. .el-dropdown-menu__item:hover {
  103. background: #00396c;
  104. }
  105. }
  106. .header_app {
  107. .back-clor {
  108. width: 100%;
  109. background-color: #fff;
  110. box-shadow: 0px 0px 40px 0px rgba(5,28,129,0.32);
  111. .header_top {
  112. width: 1200px;
  113. min-height: 80px;
  114. margin: auto;
  115. display: flex;
  116. align-items: center;
  117. // padding: 10px 0;
  118. // padding: 0.625rem 0;
  119. .logo {
  120. width: 96px;
  121. // margin-right: 40px;
  122. cursor: pointer;
  123. .logo_img {
  124. display: block;
  125. width: 100%;
  126. }
  127. .logo_d {
  128. color: #0053a8;
  129. padding-bottom: 0.625rem;
  130. border-bottom: 1px solid #0053a8;
  131. }
  132. }
  133. .input_box /deep/ {
  134. // margin-left: 2.25rem;
  135. flex: 1;
  136. .dropDown-img{
  137. width: 0.5rem;
  138. margin-left: 0.4rem;
  139. }
  140. .drop-down{
  141. z-index: 999;
  142. position: absolute;
  143. top: 80px;
  144. width: 200px;
  145. margin-left: 30px;
  146. background: #065BA9;
  147. padding: 0 1rem;
  148. box-sizing: border-box;
  149. display: none;
  150. overflow: hidden;
  151. box-shadow: 0px 0px 40px 0px rgba(5,28,129,0.32);
  152. }
  153. @keyframes move-drop {
  154. 0% {
  155. opacity: 0;
  156. margin-top: 30px;
  157. }
  158. 100% {
  159. opacity: 1;
  160. margin-top: 0px;
  161. }
  162. }
  163. .el-menu-item:hover .drop-down{
  164. display: block;
  165. animation: move-drop;
  166. animation-duration: .5s;
  167. animation-fill-mode: forwards;
  168. }
  169. .drop-text{
  170. text-align: center;
  171. font-size: 12px;
  172. line-height: 1;
  173. padding: 1rem 0;
  174. box-sizing: border-box;
  175. color: #fff;
  176. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  177. a{
  178. text-decoration: none;
  179. }
  180. }
  181. .drop-text:last-child{
  182. border: none;
  183. }
  184. .el-menu {
  185. border-bottom: none;
  186. display: flex;
  187. align-items: center;
  188. flex-wrap: wrap;
  189. .el-menu-item {
  190. flex: 1;
  191. text-align: center;
  192. height: 80px;
  193. line-height: 80px;
  194. border-bottom: none;
  195. padding: 0 0.6rem;
  196. position: relative;
  197. font-size: 18px;
  198. font-family: "Arial-BoldMT", Arial;
  199. // font-weight: normal;
  200. color: #005bab;
  201. font-weight: bold;
  202. &:hover {
  203. background-color: #fff;
  204. }
  205. // &::before {
  206. // position: absolute;
  207. // width: 1px;
  208. // height: 1.25rem;
  209. // background-color: #d9e6f2;
  210. // left: 0;
  211. // top: 0.3125rem;
  212. // transform: translateX(-50%);
  213. // content: "";
  214. // }
  215. &:nth-of-type(1)::before {
  216. width: 0;
  217. }
  218. }
  219. .is-active {
  220. background-color: #fff;
  221. border-bottom: none;
  222. position: relative;
  223. &::after {
  224. position: absolute;
  225. width: 70%;
  226. height: 1px;
  227. // background-color: #0053A8;
  228. content: "";
  229. left: 50%;
  230. bottom: -6px;
  231. transform: translateX(-50%);
  232. border-radius: 8rpx;
  233. }
  234. }
  235. }
  236. }
  237. .header_c {
  238. position: relative;
  239. // margin-left: 1%;
  240. .clout {
  241. font-weight: normal;
  242. display: flex;
  243. align-items: center;
  244. font-family: Arial;
  245. .clout_img {
  246. display: none;
  247. width: 260px;
  248. }
  249. }
  250. .clout_active {
  251. position: absolute;
  252. width: 3px;
  253. height: 20px;
  254. background: rgba(0, 91, 171, 0.2);
  255. top: 50%;
  256. left: -0.8rem;
  257. transform: translateY(-50%);
  258. }
  259. }
  260. }
  261. }
  262. .tap_telephone {
  263. height: 50px;
  264. position: fixed;
  265. bottom: 70px;
  266. right: 0;
  267. background-color: #005bab;
  268. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
  269. border-radius: 8px 0px 0px 8px;
  270. display: flex;
  271. align-items: center;
  272. padding: 0 22px 0 12px;
  273. cursor: pointer;
  274. z-index: 999;
  275. .telephone_img {
  276. width: 24px;
  277. margin-right: 8px;
  278. .telephone_i {
  279. width: 100%;
  280. }
  281. }
  282. .telephone_name {
  283. font-size: 20px;
  284. font-family: Arial;
  285. font-weight: normal;
  286. color: #ffffff;
  287. }
  288. }
  289. .taps {
  290. position: fixed;
  291. width: 100%;
  292. bottom: 0;
  293. right: 0;
  294. z-index: 999;
  295. .taps_s {
  296. display: inline-block;
  297. padding: 1.25rem 1.25rem 2rem;
  298. position: absolute;
  299. bottom: 3rem;
  300. right: 1.4rem;
  301. background-color: #f9fbfd;
  302. border-radius: 0.4rem;
  303. .taps_a {
  304. position: relative;
  305. display: inline-block;
  306. padding: 1.25rem 1.25rem 2rem;
  307. position: relative;
  308. background-color: #f9fbfd;
  309. border-radius: 0.4rem;
  310. .logo {
  311. display: flex;
  312. align-items: center;
  313. margin-bottom: 38px;
  314. .logo_img {
  315. width: 80px;
  316. }
  317. .logo_d {
  318. // font-size: 14px;
  319. // font-style:oblique;
  320. // font-family: "Arial-BoldMT",Arial;
  321. // font-weight: bold;
  322. // color: #005BAB;
  323. margin-left: 1rem;
  324. // position: relative;
  325. .clout_img {
  326. width: 260px;
  327. }
  328. // &::after{
  329. // position: absolute;
  330. // width: 3px;
  331. // height: 1.6rem;
  332. // background: rgba(0, 91, 171, 0.2);
  333. // content: "";
  334. // left:-1rem;
  335. // top: 50%;
  336. // transform: translateY(-50%);
  337. // }
  338. }
  339. }
  340. .taps_d {
  341. color: #000;
  342. font-weight: 600;
  343. font-size: 18px;
  344. margin-top: 0.4rem;
  345. margin-bottom: 3rem;
  346. }
  347. .taps_num {
  348. display: flex;
  349. align-items: center;
  350. .num_images {
  351. width: 24px;
  352. }
  353. .num {
  354. color: #005bab;
  355. margin-left: 8px;
  356. font-family: Arial;
  357. font-size: 14px;
  358. }
  359. }
  360. .taps_num + .taps_num {
  361. margin-top: 24px;
  362. }
  363. .taps_num_t {
  364. cursor: pointer;
  365. }
  366. .cancel {
  367. position: absolute;
  368. top: -0.8rem;
  369. right: -0.5rem;
  370. cursor: pointer;
  371. .cancel_images {
  372. width: 1.5rem;
  373. }
  374. }
  375. .taps_bot {
  376. font-size: 14px;
  377. font-family: Arial;
  378. color: #313131;
  379. margin-top: 22px;
  380. }
  381. }
  382. }
  383. }
  384. .activity {
  385. position: fixed;
  386. // bottom: 0;
  387. bottom: 20%;
  388. right: 0;
  389. z-index: 999;
  390. .taps_s {
  391. .activity_d {
  392. width: 200px;
  393. position: relative;
  394. margin-right: 0px;
  395. .images {
  396. width: 100%;
  397. cursor: pointer;
  398. }
  399. .images_icon {
  400. width: 20px;
  401. position: absolute;
  402. top: 6px;
  403. right: 6px;
  404. cursor: pointer;
  405. }
  406. }
  407. }
  408. }
  409. }
  410. .el-menu-demo /deep/{
  411. .is-active{
  412. .el-submenu__title{
  413. font-size: 18px !important;
  414. border-bottom: none !important;
  415. }
  416. }
  417. .el-submenu{
  418. flex: 1;
  419. text-align: center;
  420. .el-submenu__title{
  421. font-weight: 700;
  422. font-size: 18px;
  423. height: 80px;
  424. line-height: 80px;
  425. }
  426. }
  427. .el-icon-arrow-down{
  428. color: #065BA9 !important;
  429. }
  430. .el-icon-arrow-down:before{
  431. content: "\e790" !important;
  432. }
  433. }
  434. }
  435. @media screen and (min-width: 751px) and(max-width: 1000px) {
  436. .header_top {
  437. width: 100% !important;
  438. padding: 0 20px !important;
  439. .input_box {
  440. .el-menu-item {
  441. padding: 0 4px !important;
  442. font-size: 14px !important;
  443. }
  444. }
  445. .logo {
  446. margin-right: 10px !important;
  447. }
  448. }
  449. }
  450. @media screen and (min-width: 0px) and (max-width: 750px) {
  451. .tophea_box {
  452. display: block;
  453. }
  454. .go_landing {
  455. width: 100%;
  456. background-color: #273949;
  457. .center_landing {
  458. padding: 0 0.2rem 0 0.28rem;
  459. height: 0.32rem;
  460. display: flex;
  461. justify-content: space-between;
  462. align-items: center;
  463. .center_landingl {
  464. display: flex;
  465. justify-content: space-between;
  466. align-items: center;
  467. .block-col-2 /deep/ {
  468. cursor: pointer;
  469. margin-right: 0.16rem;
  470. .el-dropdown {
  471. height: 0.32rem;
  472. line-height: 0.32rem;
  473. width: 0.88rem;
  474. display: block;
  475. }
  476. .el-dropdown-link {
  477. color: #fff;
  478. margin-left: 0.12rem;
  479. }
  480. .el-icon-arrow-down {
  481. margin-left: 0.1rem;
  482. }
  483. .el-dropdown:hover {
  484. background: #005bab;
  485. }
  486. }
  487. .center_text {
  488. display: none;
  489. }
  490. .center_textpmd {
  491. color: #fff;
  492. font-size: 12px;
  493. }
  494. }
  495. .center_landingpmd {
  496. display: flex;
  497. justify-content: space-between;
  498. align-items: center;
  499. .landingpmd_img {
  500. width: 0.24rem;
  501. height: 0.24rem;
  502. margin-right: 0.12rem;
  503. }
  504. .landingpmd_imgf {
  505. width: 0.24rem;
  506. height: 0.24rem;
  507. }
  508. }
  509. .center_landingr {
  510. display: none;
  511. }
  512. }
  513. }
  514. .el-dropdown-menu /deep/ {
  515. margin-top: 6px;
  516. padding: 0;
  517. background: #012c53;
  518. color: #fff;
  519. border: none;
  520. .el-dropdown-menu__item {
  521. color: #fff;
  522. }
  523. .el-dropdown-menu__item:hover {
  524. background: #00396c;
  525. }
  526. }
  527. .input_box {
  528. display: none;
  529. }
  530. .clout_active {
  531. display: none;
  532. }
  533. .menu {
  534. display: block !important;
  535. }
  536. .tap_telephone {
  537. height: 0.5rem;
  538. position: fixed;
  539. bottom: 1rem;
  540. right: 0.16rem;
  541. background-color: #005bab;
  542. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
  543. border-radius: 0.25rem;
  544. display: flex;
  545. align-items: center;
  546. padding: 0 0.09rem;
  547. cursor: pointer;
  548. z-index: 98;
  549. .telephone_img {
  550. width: 0.32rem;
  551. .telephone_i {
  552. width: 100%;
  553. }
  554. }
  555. .telephone_name {
  556. display: none;
  557. font-size: 0.14rem;
  558. font-family: Arial;
  559. font-weight: normal;
  560. color: #ffffff;
  561. }
  562. }
  563. // 弹框
  564. .taps {
  565. position: fixed;
  566. width: 100%;
  567. top: 0;
  568. left: 0;
  569. bottom: 0;
  570. right: 0;
  571. background-color: rgba(0, 0, 0, 0.5);
  572. z-index: 9999;
  573. .taps_s {
  574. display: inline-block;
  575. padding: 0.25rem;
  576. position: absolute;
  577. bottom: 0;
  578. right: 0;
  579. background-color: #f9fbfd;
  580. .taps_a {
  581. position: relative;
  582. display: inline-block;
  583. position: relative;
  584. background-color: #f9fbfd;
  585. .logo {
  586. display: flex;
  587. align-items: center;
  588. margin-bottom: 0.38rem;
  589. .logo_img {
  590. width: 20%;
  591. }
  592. .logo_d {
  593. // font-size: 0.12rem;
  594. // font-style:oblique;
  595. // font-family: "Arial-BoldMT",Arial;
  596. // font-weight: normal;
  597. // color: #005BAB;
  598. margin-left: 0.2rem;
  599. // position: relative;
  600. .clout_img {
  601. width: 260px;
  602. }
  603. // &::after{
  604. // position: absolute;
  605. // width: 0.02rem;
  606. // height: 0.1rem;
  607. // background: rgba(0, 91, 171, 0.2);
  608. // content: "";
  609. // left:-0.1rem;
  610. // top: 50%;
  611. // transform: translateY(-50%);
  612. // }
  613. }
  614. }
  615. .taps_num {
  616. display: flex;
  617. align-items: center;
  618. .num_images {
  619. width: 0.24rem;
  620. }
  621. .num {
  622. color: #005bab;
  623. margin-left: 0.08rem;
  624. font-family: Arial;
  625. font-size: 0.14rem;
  626. }
  627. }
  628. .taps_num + .taps_num {
  629. margin-top: 0.2rem;
  630. }
  631. .cancel {
  632. position: absolute;
  633. top: -0.15rem;
  634. right: -0.15rem;
  635. cursor: pointer;
  636. .cancel_images {
  637. width: 0.24rem;
  638. }
  639. }
  640. .taps_bot {
  641. font-size: 0.14rem;
  642. font-family: Arial;
  643. color: #313131;
  644. margin-top: 0.2rem;
  645. }
  646. }
  647. }
  648. }
  649. .header_app {
  650. .back-clor {
  651. width: 100%;
  652. background-color: #fff;
  653. .header_top {
  654. width: 100%;
  655. height: 0.48rem;
  656. display: flex;
  657. align-items: center;
  658. justify-content: space-around;
  659. .logo {
  660. width: 15%;
  661. margin: 0;
  662. .logo_img {
  663. display: block;
  664. width: 100%;
  665. }
  666. }
  667. .menu {
  668. width: 6%;
  669. .menu_img {
  670. display: block;
  671. width: 100%;
  672. }
  673. }
  674. .header_c {
  675. border-left: 2px solid rgba(0, 91, 171, 0.2);
  676. padding-left: 0.1rem;
  677. .user_info {
  678. display: none;
  679. }
  680. .clout {
  681. display: flex;
  682. align-items: center;
  683. .clout_img {
  684. width: 260px;
  685. }
  686. }
  687. }
  688. }
  689. }
  690. }
  691. .menubox /deep/{
  692. position: fixed;
  693. width: 100%;
  694. height: 100%;
  695. top: 0;
  696. left: 0;
  697. bottom: 0;
  698. right: 0;
  699. background-color: #005bab;
  700. z-index: 9999;
  701. .cancel {
  702. width: 100%;
  703. height: 0.45rem;
  704. // border-bottom: 1px solid #f1f1f1;
  705. display: flex;
  706. align-items: center;
  707. justify-content: right;
  708. .cancel_images {
  709. width: 0.3rem;
  710. margin-right: 0.2rem;
  711. }
  712. }
  713. p {
  714. width: 100%;
  715. height: 0.45rem;
  716. line-height: 0.45rem;
  717. text-indent: 0.24rem;
  718. color: white;
  719. font-size: 0.14rem;
  720. border-bottom: 1px solid #f1f1f1;
  721. a {
  722. color: white;
  723. text-decoration: none;
  724. font-size: 0.14rem;
  725. }
  726. }
  727. .el-submenu{
  728. border-top: 1px solid #f1f1f1;
  729. .el-submenu__title{
  730. font-size: 0.14rem;
  731. background-color: #005bab !important;
  732. .el-submenu__icon-arrow{
  733. color: #fff !important;
  734. }
  735. }
  736. .el-menu-item{
  737. border: none !important;
  738. }
  739. }
  740. .el-menu-item{
  741. color: white;
  742. text-decoration: none;
  743. font-size: 0.14rem !important;
  744. border-top: 1px solid #f1f1f1;
  745. background-color: #005bab !important;
  746. }
  747. .el_menus{
  748. border: none !important;
  749. }
  750. }
  751. .activity {
  752. display: none;
  753. }
  754. }
  755. </style>