Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
e6f3a606
Commit
e6f3a606
authored
Sep 18, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页部分样式
parent
807b6c00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
21 deletions
+54
-21
MP_verify_SQlZoxDI1cfmjZhX.txt
MP_verify_SQlZoxDI1cfmjZhX.txt
+2
-0
common.scss
public/css/common.scss
+12
-2
banner2.png
src/assets/img/index/banner2.png
+0
-0
PageTop.vue
src/components/index/PageTop.vue
+20
-8
index.vue
src/views/index.vue
+20
-11
index.vue
src/views/index/pages/index.vue
+0
-0
No files found.
MP_verify_SQlZoxDI1cfmjZhX.txt
0 → 100755
View file @
e6f3a606
SQlZoxDI1cfmjZhX
\ No newline at end of file
public/css/common.scss
View file @
e6f3a606
...
...
@@ -233,6 +233,7 @@ input.el-input__inner {
.requireContent
.companyInfo
.rightInfo
{
padding-left
:
65px
;
max-height
:
80px
;
}
.requireContent
.companyInfo
.rightInfo
p
{
...
...
@@ -241,6 +242,10 @@ input.el-input__inner {
font-weight
:
bold
;
cursor
:
pointer
;
padding-bottom
:
6px
;
width
:
180px
;
overflow
:hidden
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
}
.requireContent
.companyInfo
.rightInfo
span
{
...
...
@@ -249,7 +254,12 @@ input.el-input__inner {
line-height
:
19px
;
color
:
#9197B4
;
height
:
40px
;
display
:
-
webkit-box
;
text-overflow
:
ellipsis
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
3
;
word-break
:
break-all
;
overflow
:
hidden
;
}
.requireContent
img
{
...
...
@@ -261,7 +271,7 @@ input.el-input__inner {
}
.requireContent
.contentInfo
p
{
padding
:
3
px
0
;
padding
:
5
px
0
;
}
.requireContent
.contentInfo
p
>
span
{
...
...
src/assets/img/index/banner2.png
0 → 100644
View file @
e6f3a606
637 KB
src/components/index/PageTop.vue
View file @
e6f3a606
<
template
>
<div
:class=
"[initStyle?'boxWrapper initBoxWrapper':'boxWrapper noinitBoxWrapper',isShow?'':'loginedTopWrapper']"
>
<div
:class=
"[initStyle?'boxWrapper initBoxWrapper':'boxWrapper noinitBoxWrapper',is
Other?'whiteWrapper':'',is
Show?'':'loginedTopWrapper']"
>
<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-01@2x.png"
alt=
""
v-if=
"(!initStyle&&isShow)||!isShow"
@
click=
"$router.push('/')"
>
...
...
@@ -125,10 +125,16 @@
name
:
'PageTop'
,
props
:
{
initStyle
:
{
type
:
Boolean
type
:
Boolean
,
default
:
true
},
isShow
:{
type
:
Boolean
type
:
Boolean
,
default
:
false
},
isOther
:{
type
:
Boolean
,
default
:
false
}
},
data
()
{
...
...
@@ -167,13 +173,16 @@
methods
:
{
handleClick
(
index
)
{
this
.
currentIndex
=
index
;
if
((
index
==
1
||
index
==
2
)
&&!
this
.
userInfo
)
{
this
.
$router
.
push
(
'/login'
);
}
if
(
index
==
5
)
this
.
$router
.
push
(
"/aboutwe"
);
if
(
index
==
3
)
this
.
$router
.
push
(
"/lndustryfocus"
);
if
(
index
==
0
)
this
.
$router
.
push
(
"/"
);
// if(index!=0&&!this.userInfo
) {
// this.$router.push('/login');
// }else
if
(
index
==
1
){
if
(
index
==
4
)
{
console
.
log
(
1
)
}
if
(
index
==
1
){
this
.
$router
.
push
(
"/seeprojectlist"
);
}
else
if
(
index
==
2
){
this
.
$router
.
push
(
"/bigBusiness/list"
)
...
...
@@ -340,6 +349,9 @@
}
}
.whiteWrapper
{
background
:
#fff
!
important
;
}
.initBoxWrapper
{
background-color
:
transparent
;
...
...
@@ -367,6 +379,7 @@
.noinitBoxWrapper
{
background-color
:
#fff
;
box-shadow
:
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
.header-content
li
{
color
:
#3F3F53
;
font-weight
:
bold
;
...
...
@@ -411,7 +424,6 @@
top
:
0
;
left
:
0
;
padding
:
0
40px
;
box-shadow
:
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
}
.loginedTopWrapper
{
...
...
src/views/index.vue
View file @
e6f3a606
<
template
>
<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"
>
<router-view/>
</div>
...
...
@@ -20,37 +20,46 @@
isInit
:
true
,
isShow
:
false
,
indexwe
:
0
,
isOther
:
false
}
},
methods
:
{
sendItemNav
(
val
){
this
.
indexwe
=
val
;
if
(
val
>=
2
){
if
(
val
!=
0
){
this
.
isInit
=
false
;
this
.
isOther
=
true
;
}
else
{
this
.
isInit
=
true
;
}
},
sendbtn
(
val
){
this
.
indexwe
=
val
;
},
handleScroll
()
{
if
(
this
.
indexwe
<=
2
){
var
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
this
.
isInit
=
scrollTop
>
1
?
false
:
true
;
var
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
this
.
indexwe
==
0
){
this
.
isOther
=
false
;
this
.
isInit
=
scrollTop
>
20
?
false
:
true
;
}
else
{
this
.
isOther
=
true
;
this
.
isInit
=
false
;
}
},
},
created
(){
if
(
this
.
$route
.
name
!=
"dashboard"
)
this
.
isShow
=
fals
e
;
else
this
.
isShow
=
tru
e
;
if
(
this
.
indexwe
==
0
||
this
.
indexwe
>
2
)
this
.
isShow
=
tru
e
;
else
this
.
isShow
=
fals
e
;
},
activated
(){
if
(
this
.
$route
.
name
!=
"dashboard"
)
this
.
isShow
=
fals
e
;
else
this
.
isShow
=
tru
e
;
if
(
this
.
indexwe
==
0
||
this
.
indexwe
>
2
)
this
.
isShow
=
tru
e
;
else
this
.
isShow
=
fals
e
;
},
mounted
()
{
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
);
if
(
this
.
$route
.
name
!=
"dashboard"
)
this
.
isShow
=
fals
e
;
else
this
.
isShow
=
tru
e
;
if
(
this
.
indexwe
==
0
||
this
.
indexwe
>
2
)
this
.
isShow
=
tru
e
;
else
this
.
isShow
=
fals
e
;
}
};
</
script
>
...
...
src/views/index/pages/index.vue
View file @
e6f3a606
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment