Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
Project
Project
Details
Activity
Releases
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
lixy
vue-ssr
Commits
4aa4bda6
Commit
4aa4bda6
authored
Sep 04, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除无用项
parent
6174f46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
aboutXx.vue
pages/aboutXx.vue
+0
-7
No files found.
pages/aboutXx.vue
View file @
4aa4bda6
...
...
@@ -166,24 +166,18 @@
let
top2
=
document
.
querySelector
(
'#history02'
).
offsetTop
;
let
top3
=
document
.
querySelector
(
'#history03'
).
offsetTop
;
let
top4
=
document
.
querySelector
(
'#history04'
).
offsetTop
;
console
.
log
(
top1
+
"--"
+
top2
+
"--"
+
top3
+
"--"
+
top4
)
if
(
scrollTop
<
201
){
this
.
barFixed
=
false
;
this
.
tabIndex
=
0
;
console
.
log
(
scrollTop
)
}
else
if
(
scrollTop
>=
201
&&
scrollTop
<
top2
-
301
){
this
.
tabIndex
=
0
;
console
.
log
(
scrollTop
)
}
else
if
(
scrollTop
>=
top2
-
301
&&
scrollTop
<
top3
-
301
){
this
.
tabIndex
=
1
;
console
.
log
(
scrollTop
)
}
else
if
(
scrollTop
>=
top3
-
301
&&
scrollTop
<
top4
-
301
){
this
.
tabIndex
=
2
;
console
.
log
(
scrollTop
)
}
else
if
(
scrollTop
>=
top4
-
301
){
this
.
tabIndex
=
3
;
console
.
log
(
scrollTop
)
}
},
/**
...
...
@@ -192,7 +186,6 @@
changeArea
(
id
){
this
.
barFixed
=
true
;
let
top
=
document
.
querySelector
(
'#'
+
id
).
offsetTop
;
console
.
log
(
top
);
if
(
id
==
"history01"
){
this
.
tabIndex
=
0
;
document
.
documentElement
.
scrollTop
=
top
-
260
;
...
...
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