Commit e6f3a606 authored by zhangyanni's avatar zhangyanni

首页部分样式

parent 807b6c00
SQlZoxDI1cfmjZhX
\ No newline at end of file
...@@ -233,6 +233,7 @@ input.el-input__inner { ...@@ -233,6 +233,7 @@ input.el-input__inner {
.requireContent .companyInfo .rightInfo { .requireContent .companyInfo .rightInfo {
padding-left: 65px; padding-left: 65px;
max-height: 80px;
} }
.requireContent .companyInfo .rightInfo p { .requireContent .companyInfo .rightInfo p {
...@@ -241,6 +242,10 @@ input.el-input__inner { ...@@ -241,6 +242,10 @@ input.el-input__inner {
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
padding-bottom: 6px; padding-bottom: 6px;
width: 180px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
} }
.requireContent .companyInfo .rightInfo span { .requireContent .companyInfo .rightInfo span {
...@@ -249,7 +254,12 @@ input.el-input__inner { ...@@ -249,7 +254,12 @@ input.el-input__inner {
line-height: 19px; line-height: 19px;
color: #9197B4; color: #9197B4;
height: 40px; height: 40px;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
word-break: break-all;
overflow: hidden;
} }
.requireContent img { .requireContent img {
...@@ -261,7 +271,7 @@ input.el-input__inner { ...@@ -261,7 +271,7 @@ input.el-input__inner {
} }
.requireContent .contentInfo p { .requireContent .contentInfo p {
padding: 3px 0; padding: 5px 0;
} }
.requireContent .contentInfo p > span { .requireContent .contentInfo p > span {
......
<template> <template>
<div :class="[initStyle?'boxWrapper initBoxWrapper':'boxWrapper noinitBoxWrapper',isShow?'':'loginedTopWrapper']"> <div :class="[initStyle?'boxWrapper initBoxWrapper':'boxWrapper noinitBoxWrapper',isOther?'whiteWrapper':'',isShow?'':'loginedTopWrapper']">
<div class="header-left"> <div class="header-left">
<img src="../../assets/img/index/techbook-LOGO-02@2x.png" alt="" v-if="initStyle&&isShow" @click="$router.push('/')"> <img src="../../assets/img/index/techbook-LOGO-02@2x.png" alt="" v-if="initStyle&&isShow" @click="$router.push('/')">
<img src="../../assets/img/index/techbook-LOGO-01@2x.png" alt="" v-if="(!initStyle&&isShow)||!isShow" @click="$router.push('/')"> <img src="../../assets/img/index/techbook-LOGO-01@2x.png" alt="" v-if="(!initStyle&&isShow)||!isShow" @click="$router.push('/')">
...@@ -125,10 +125,16 @@ ...@@ -125,10 +125,16 @@
name: 'PageTop', name: 'PageTop',
props: { props: {
initStyle: { initStyle: {
type: Boolean type: Boolean,
default:true
}, },
isShow:{ isShow:{
type:Boolean type:Boolean,
default:false
},
isOther:{
type:Boolean,
default:false
} }
}, },
data() { data() {
...@@ -167,13 +173,16 @@ ...@@ -167,13 +173,16 @@
methods: { methods: {
handleClick(index) { handleClick(index) {
this.currentIndex = index; this.currentIndex = index;
if((index==1||index==2)&&!this.userInfo) {
this.$router.push('/login');
}
if(index==5) this.$router.push("/aboutwe"); if(index==5) this.$router.push("/aboutwe");
if(index==3) this.$router.push("/lndustryfocus"); if(index==3) this.$router.push("/lndustryfocus");
if(index==0) this.$router.push("/"); if(index==0) this.$router.push("/");
// if(index!=0&&!this.userInfo) { if(index==4) {
// this.$router.push('/login'); console.log(1)
// }else }
if(index==1){ if(index==1){
this.$router.push("/seeprojectlist"); this.$router.push("/seeprojectlist");
}else if(index==2){ }else if(index==2){
this.$router.push("/bigBusiness/list") this.$router.push("/bigBusiness/list")
...@@ -340,6 +349,9 @@ ...@@ -340,6 +349,9 @@
} }
} }
.whiteWrapper{
background: #fff !important;
}
.initBoxWrapper { .initBoxWrapper {
background-color: transparent; background-color: transparent;
...@@ -367,6 +379,7 @@ ...@@ -367,6 +379,7 @@
.noinitBoxWrapper { .noinitBoxWrapper {
background-color: #fff; background-color: #fff;
box-shadow:0px 1px 5px 0px rgba(0,0,0,0.1);
.header-content li { .header-content li {
color: #3F3F53; color: #3F3F53;
font-weight: bold; font-weight: bold;
...@@ -411,7 +424,6 @@ ...@@ -411,7 +424,6 @@
top: 0; top: 0;
left: 0; left: 0;
padding: 0 40px; padding: 0 40px;
box-shadow:0px 1px 5px 0px rgba(0,0,0,0.1);
} }
.loginedTopWrapper{ .loginedTopWrapper{
......
<template> <template>
<div class="page-wrapper"> <div class="page-wrapper">
<page-top :initStyle="isInit" :isShow="isShow" @itemNav="sendItemNav"></page-top> <page-top :initStyle="isInit" :isShow="isShow" :isOther="isOther" @itemNav="sendItemNav"></page-top>
<div class="page-content popper-boundaries"> <div class="page-content popper-boundaries">
<router-view/> <router-view/>
</div> </div>
...@@ -20,37 +20,46 @@ ...@@ -20,37 +20,46 @@
isInit: true, isInit: true,
isShow: false, isShow: false,
indexwe:0, indexwe:0,
isOther:false
} }
}, },
methods: { methods: {
sendItemNav(val){ sendItemNav(val){
this.indexwe = val; this.indexwe = val;
if(val >= 2){ if(val!=0){
this.isInit = false; this.isInit = false;
this.isOther = true;
}else{
this.isInit =true;
} }
}, },
sendbtn(val){ sendbtn(val){
this.indexwe = val; this.indexwe = val;
}, },
handleScroll() { handleScroll() {
if(this.indexwe <= 2){ var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; if(this.indexwe==0){
this.isInit = scrollTop > 1 ? false : true; this.isOther = false;
this.isInit = scrollTop > 20 ? false : true;
}else{
this.isOther = true;
this.isInit = false;
} }
}, },
}, },
created(){ created(){
if (this.$route.name != "dashboard") this.isShow = false; if(this.indexwe==0||this.indexwe>2) this.isShow = true;
else this.isShow = true; else this.isShow = false;
}, },
activated(){ activated(){
if (this.$route.name != "dashboard") this.isShow = false; if(this.indexwe==0||this.indexwe>2) this.isShow = true;
else this.isShow = true; else this.isShow = false;
}, },
mounted() { mounted() {
window.addEventListener('scroll', this.handleScroll); window.addEventListener('scroll', this.handleScroll);
if (this.$route.name != "dashboard") this.isShow = false; if(this.indexwe==0||this.indexwe>2) this.isShow = true;
else this.isShow = true; else this.isShow = false;
} }
}; };
</script> </script>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment