123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761 |
- <template>
- <div class="header_app">
- <hea-der class="tophea_box"></hea-der>
- <div class="back-clor">
- <div class="header_top">
- <div class="logo" @click="$util.goRoute({ name: 'home' })">
- <img class="logo_img" src="@/assets/img/logo.png" alt="" srcset="" />
- </div>
- <div class="input_box">
- <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" text-color="#065BA9" active-text-color="#065BA9" @select="handleSelect">
- <el-menu-item index="overView">全览图</el-menu-item>
- <el-menu-item index="article">相关文章</el-menu-item>
- <el-menu-item index="product">产品详情</el-menu-item>
- <el-menu-item index="antibody">抗体数据库</el-menu-item>
- <el-menu-item index="profile">资料下载</el-menu-item>
- </el-menu>
- </div>
- <div class="header_c">
- <div class="clout">
- <img class="clout_img" src="@/assets/img/slogan.png" alt="" />
- <userInfo class="user_info"></userInfo>
- </div>
- </div>
- <!-- 移动端 -->
- <div style="display:none" class="menu" @click="tapcanceltpmd">
- <img class="menu_img" src="@/assets/img/menu.png" alt="" />
- </div>
- <div class="menubox" v-if="tapshowpmd">
- <div class="cancel" @click="tapcanceltpmdn">
- <img src="@/assets/img/dele.png" alt="" class="cancel_images" />
- </div>
- <!-- 移动端菜单 -->
- <el-menu class="el-menu-demo" default-active="1" background-color="#005bab" text-color="#ffffff" active-text-color="#ffffff" @select="handleSelect">
- <el-menu-item index="contact">全览图</el-menu-item>
- <el-menu-item index="contact">相关文章</el-menu-item>
- <el-menu-item index="product">产品详情</el-menu-item>
- <el-menu-item index="contact">抗体数据库</el-menu-item>
- <el-menu-item index="profile">资料下载</el-menu-item>
- <!-- <el-menu-item index="contact">{{ $t("button.contactUs") }}</el-menu-item> -->
- </el-menu>
- </div>
- </div>
- </div>
- <!-- <indexTaps></indexTaps> -->
- </div>
- </template>
- <script>
- import userInfo from "@/components/userInfo";
- import heaDer from "@/components/header";
- export default {
- components: {
- heaDer,
- // indexTaps,
- userInfo
- },
- name: "homeHeader",
- data() {
- return {
- showMove: localStorage.getItem("user"),
- tapshowpmd: false,
- activeIndex: "",
- tapshow: false,
- activity: true,
- activityshow: true
- };
- },
- methods: {
- tapcancel() {
- this.tapshow = false;
- },
- tapcanceltpmd() {
- this.tapshowpmd = true;
- },
- tapcanceltpmdn() {
- this.tapshowpmd = false;
- },
- handleSelect(key, keyPath) {
- if (key) {
- this.$util.goRoute({ name: key });
- } else {
- this.$message("Launching soon", 3000);
- }
- this.tapshowpmd = false;
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- @media screen and (min-width: 751px) and (max-width: 9999px) {
- .tophea_box {
- display: none;
- }
- .el-dropdown-menu /deep/ {
- margin-top: 6px;
- padding: 0;
- background:
- color:
- border: none;
- .el-dropdown-menu__item {
- color:
- }
- .el-dropdown-menu__item:hover {
- background:
- }
- }
- .header_app {
- .back-clor {
- width: 100%;
- background-color:
- box-shadow: 0px 0px 40px 0px rgba(5,28,129,0.32);
- .header_top {
- width: 1200px;
- min-height: 80px;
- margin: auto;
- display: flex;
- align-items: center;
- // padding: 10px 0;
- // padding: 0.625rem 0;
- .logo {
- width: 96px;
- // margin-right: 40px;
- cursor: pointer;
- .logo_img {
- display: block;
- width: 100%;
- }
- .logo_d {
- color:
- padding-bottom: 0.625rem;
- border-bottom: 1px solid
- }
- }
- .input_box /deep/ {
- // margin-left: 2.25rem;
- flex: 1;
- .dropDown-img{
- width: 0.5rem;
- margin-left: 0.4rem;
- }
- .drop-down{
- z-index: 999;
- position: absolute;
- top: 80px;
- width: 200px;
- margin-left: 30px;
- background:
- padding: 0 1rem;
- box-sizing: border-box;
- display: none;
- overflow: hidden;
- box-shadow: 0px 0px 40px 0px rgba(5,28,129,0.32);
- }
- @keyframes move-drop {
- 0% {
- opacity: 0;
- margin-top: 30px;
- }
- 100% {
- opacity: 1;
- margin-top: 0px;
- }
- }
- .el-menu-item:hover .drop-down{
- display: block;
- animation: move-drop;
- animation-duration: .5s;
- animation-fill-mode: forwards;
- }
- .drop-text{
- text-align: center;
- font-size: 12px;
- line-height: 1;
- padding: 1rem 0;
- box-sizing: border-box;
- color:
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- a{
- text-decoration: none;
- }
- }
- .drop-text:last-child{
- border: none;
- }
- .el-menu {
- border-bottom: none;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- .el-menu-item {
- flex: 1;
- text-align: center;
- height: 80px;
- line-height: 80px;
- border-bottom: none;
- padding: 0 0.6rem;
- position: relative;
- font-size: 18px;
- font-family: "Arial-BoldMT", Arial;
- // font-weight: normal;
- color:
- font-weight: bold;
- &:hover {
- background-color:
- }
- // &::before {
- // position: absolute;
- // width: 1px;
- // height: 1.25rem;
- // background-color:
- // left: 0;
- // top: 0.3125rem;
- // transform: translateX(-50%);
- // content: "";
- // }
- &:nth-of-type(1)::before {
- width: 0;
- }
- }
- .is-active {
- background-color:
- border-bottom: none;
- position: relative;
- &::after {
- position: absolute;
- width: 70%;
- height: 1px;
- // background-color:
- content: "";
- left: 50%;
- bottom: -6px;
- transform: translateX(-50%);
- border-radius: 8rpx;
- }
- }
- }
- }
- .header_c {
- position: relative;
- // margin-left: 1%;
- .clout {
- font-weight: normal;
- display: flex;
- align-items: center;
- font-family: Arial;
- .clout_img {
- display: none;
- width: 260px;
- }
- }
- .clout_active {
- position: absolute;
- width: 3px;
- height: 20px;
- background: rgba(0, 91, 171, 0.2);
- top: 50%;
- left: -0.8rem;
- transform: translateY(-50%);
- }
- }
- }
- }
- .tap_telephone {
- height: 50px;
- position: fixed;
- bottom: 70px;
- right: 0;
- background-color:
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
- border-radius: 8px 0px 0px 8px;
- display: flex;
- align-items: center;
- padding: 0 22px 0 12px;
- cursor: pointer;
- z-index: 999;
- .telephone_img {
- width: 24px;
- margin-right: 8px;
- .telephone_i {
- width: 100%;
- }
- }
- .telephone_name {
- font-size: 20px;
- font-family: Arial;
- font-weight: normal;
- color:
- }
- }
- .taps {
- position: fixed;
- width: 100%;
- bottom: 0;
- right: 0;
- z-index: 999;
- .taps_s {
- display: inline-block;
- padding: 1.25rem 1.25rem 2rem;
- position: absolute;
- bottom: 3rem;
- right: 1.4rem;
- background-color:
- border-radius: 0.4rem;
- .taps_a {
- position: relative;
- display: inline-block;
- padding: 1.25rem 1.25rem 2rem;
- position: relative;
- background-color:
- border-radius: 0.4rem;
- .logo {
- display: flex;
- align-items: center;
- margin-bottom: 38px;
- .logo_img {
- width: 80px;
- }
- .logo_d {
- // font-size: 14px;
- // font-style:oblique;
- // font-family: "Arial-BoldMT",Arial;
- // font-weight: bold;
- // color:
- margin-left: 1rem;
- // position: relative;
- .clout_img {
- width: 260px;
- }
- // &::after{
- // position: absolute;
- // width: 3px;
- // height: 1.6rem;
- // background: rgba(0, 91, 171, 0.2);
- // content: "";
- // left:-1rem;
- // top: 50%;
- // transform: translateY(-50%);
- // }
- }
- }
- .taps_d {
- color:
- font-weight: 600;
- font-size: 18px;
- margin-top: 0.4rem;
- margin-bottom: 3rem;
- }
- .taps_num {
- display: flex;
- align-items: center;
- .num_images {
- width: 24px;
- }
- .num {
- color:
- margin-left: 8px;
- font-family: Arial;
- font-size: 14px;
- }
- }
- .taps_num + .taps_num {
- margin-top: 24px;
- }
- .taps_num_t {
- cursor: pointer;
- }
- .cancel {
- position: absolute;
- top: -0.8rem;
- right: -0.5rem;
- cursor: pointer;
- .cancel_images {
- width: 1.5rem;
- }
- }
- .taps_bot {
- font-size: 14px;
- font-family: Arial;
- color:
- margin-top: 22px;
- }
- }
- }
- }
- .activity {
- position: fixed;
- // bottom: 0;
- bottom: 20%;
- right: 0;
- z-index: 999;
- .taps_s {
- .activity_d {
- width: 200px;
- position: relative;
- margin-right: 0px;
- .images {
- width: 100%;
- cursor: pointer;
- }
- .images_icon {
- width: 20px;
- position: absolute;
- top: 6px;
- right: 6px;
- cursor: pointer;
- }
- }
- }
- }
- }
- .el-menu-demo /deep/{
- .is-active{
- .el-submenu__title{
- font-size: 18px !important;
- border-bottom: none !important;
- }
- }
- .el-submenu{
- flex: 1;
- text-align: center;
- .el-submenu__title{
- font-weight: 700;
- font-size: 18px;
- height: 80px;
- line-height: 80px;
- }
- }
- .el-icon-arrow-down{
- color:
- }
- .el-icon-arrow-down:before{
- content: "\e790" !important;
- }
- }
- }
- @media screen and (min-width: 751px) and(max-width: 1000px) {
- .header_top {
- width: 100% !important;
- padding: 0 20px !important;
- .input_box {
- .el-menu-item {
- padding: 0 4px !important;
- font-size: 14px !important;
- }
- }
- .logo {
- margin-right: 10px !important;
- }
- }
- }
- @media screen and (min-width: 0px) and (max-width: 750px) {
- .tophea_box {
- display: block;
- }
- .go_landing {
- width: 100%;
- background-color:
- .center_landing {
- padding: 0 0.2rem 0 0.28rem;
- height: 0.32rem;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .center_landingl {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .block-col-2 /deep/ {
- cursor: pointer;
- margin-right: 0.16rem;
- .el-dropdown {
- height: 0.32rem;
- line-height: 0.32rem;
- width: 0.88rem;
- display: block;
- }
- .el-dropdown-link {
- color:
- margin-left: 0.12rem;
- }
- .el-icon-arrow-down {
- margin-left: 0.1rem;
- }
- .el-dropdown:hover {
- background:
- }
- }
- .center_text {
- display: none;
- }
- .center_textpmd {
- color:
- font-size: 12px;
- }
- }
- .center_landingpmd {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .landingpmd_img {
- width: 0.24rem;
- height: 0.24rem;
- margin-right: 0.12rem;
- }
- .landingpmd_imgf {
- width: 0.24rem;
- height: 0.24rem;
- }
- }
- .center_landingr {
- display: none;
- }
- }
- }
- .el-dropdown-menu /deep/ {
- margin-top: 6px;
- padding: 0;
- background:
- color:
- border: none;
- .el-dropdown-menu__item {
- color:
- }
- .el-dropdown-menu__item:hover {
- background:
- }
- }
- .input_box {
- display: none;
- }
- .clout_active {
- display: none;
- }
- .menu {
- display: block !important;
- }
- .tap_telephone {
- height: 0.5rem;
- position: fixed;
- bottom: 1rem;
- right: 0.16rem;
- background-color:
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
- border-radius: 0.25rem;
- display: flex;
- align-items: center;
- padding: 0 0.09rem;
- cursor: pointer;
- z-index: 98;
- .telephone_img {
- width: 0.32rem;
- .telephone_i {
- width: 100%;
- }
- }
- .telephone_name {
- display: none;
- font-size: 0.14rem;
- font-family: Arial;
- font-weight: normal;
- color:
- }
- }
- // 弹框
- .taps {
- position: fixed;
- width: 100%;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 9999;
- .taps_s {
- display: inline-block;
- padding: 0.25rem;
- position: absolute;
- bottom: 0;
- right: 0;
- background-color:
- .taps_a {
- position: relative;
- display: inline-block;
- position: relative;
- background-color:
- .logo {
- display: flex;
- align-items: center;
- margin-bottom: 0.38rem;
- .logo_img {
- width: 20%;
- }
- .logo_d {
- // font-size: 0.12rem;
- // font-style:oblique;
- // font-family: "Arial-BoldMT",Arial;
- // font-weight: normal;
- // color:
- margin-left: 0.2rem;
- // position: relative;
- .clout_img {
- width: 260px;
- }
- // &::after{
- // position: absolute;
- // width: 0.02rem;
- // height: 0.1rem;
- // background: rgba(0, 91, 171, 0.2);
- // content: "";
- // left:-0.1rem;
- // top: 50%;
- // transform: translateY(-50%);
- // }
- }
- }
- .taps_num {
- display: flex;
- align-items: center;
- .num_images {
- width: 0.24rem;
- }
- .num {
- color:
- margin-left: 0.08rem;
- font-family: Arial;
- font-size: 0.14rem;
- }
- }
- .taps_num + .taps_num {
- margin-top: 0.2rem;
- }
- .cancel {
- position: absolute;
- top: -0.15rem;
- right: -0.15rem;
- cursor: pointer;
- .cancel_images {
- width: 0.24rem;
- }
- }
- .taps_bot {
- font-size: 0.14rem;
- font-family: Arial;
- color:
- margin-top: 0.2rem;
- }
- }
- }
- }
- .header_app {
- .back-clor {
- width: 100%;
- background-color:
- .header_top {
- width: 100%;
- height: 0.48rem;
- display: flex;
- align-items: center;
- justify-content: space-around;
- .logo {
- width: 15%;
- margin: 0;
- .logo_img {
- display: block;
- width: 100%;
- }
- }
- .menu {
- width: 6%;
- .menu_img {
- display: block;
- width: 100%;
- }
- }
- .header_c {
- border-left: 2px solid rgba(0, 91, 171, 0.2);
- padding-left: 0.1rem;
- .user_info {
- display: none;
- }
- .clout {
- display: flex;
- align-items: center;
- .clout_img {
- width: 260px;
- }
- }
- }
- }
- }
- }
- .menubox /deep/{
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background-color:
- z-index: 9999;
- .cancel {
- width: 100%;
- height: 0.45rem;
- // border-bottom: 1px solid
- display: flex;
- align-items: center;
- justify-content: right;
- .cancel_images {
- width: 0.3rem;
- margin-right: 0.2rem;
- }
- }
- p {
- width: 100%;
- height: 0.45rem;
- line-height: 0.45rem;
- text-indent: 0.24rem;
- color: white;
- font-size: 0.14rem;
- border-bottom: 1px solid
- a {
- color: white;
- text-decoration: none;
- font-size: 0.14rem;
- }
- }
- .el-submenu{
- border-top: 1px solid
- .el-submenu__title{
- font-size: 0.14rem;
- background-color:
- .el-submenu__icon-arrow{
- color:
- }
- }
- .el-menu-item{
- border: none !important;
- }
- }
- .el-menu-item{
- color: white;
- text-decoration: none;
- font-size: 0.14rem !important;
- border-top: 1px solid
- background-color:
- }
- .el_menus{
- border: none !important;
- }
- }
- .activity {
- display: none;
- }
- }
- </style>
|