Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr-mobile
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-mobile
Commits
09493619
Commit
09493619
authored
Sep 09, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情定位
parent
59a254c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
30 deletions
+30
-30
aboutXx.vue
pages/aboutXx.vue
+10
-10
index.vue
pages/campsiteDetail/index.vue
+6
-6
index.vue
pages/tourDetail/index.vue
+6
-6
index.vue
pages/vehicleDetail/index.vue
+8
-8
No files found.
pages/aboutXx.vue
View file @
09493619
...
...
@@ -222,39 +222,39 @@
if
(
id
==
"history01"
){
console
.
log
(
this
.
barFixed
);
if
(
this
.
barFixed
){
document
.
documentElement
.
scrollTop
=
10
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
10
;
}
else
{
document
.
documentElement
.
scrollTop
=
10
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
10
;
}
this
.
barFixed
=
true
;
this
.
tabIndex
=
0
;
}
else
if
(
id
==
"history02"
){
this
.
tabIndex
=
1
;
if
(
this
.
barFixed
){
document
.
documentElement
.
scrollTop
=
top
-
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
130
;
}
else
{
document
.
documentElement
.
scrollTop
=
top
-
200
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
200
;
}
}
else
if
(
id
==
"history03"
){
this
.
tabIndex
=
2
;
if
(
this
.
barFixed
){
document
.
documentElement
.
scrollTop
=
top
-
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
130
;
}
else
{
document
.
documentElement
.
scrollTop
=
top
-
200
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
200
;
}
}
else
if
(
id
==
"history04"
)
{
this
.
tabIndex
=
3
;
if
(
this
.
barFixed
)
{
document
.
documentElement
.
scrollTop
=
top
-
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
130
;
}
else
{
document
.
documentElement
.
scrollTop
=
top
-
200
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
200
;
}
}
else
if
(
id
==
"history05"
){
this
.
tabIndex
=
4
;
if
(
this
.
barFixed
){
document
.
documentElement
.
scrollTop
=
top
-
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
130
;
}
else
{
document
.
documentElement
.
scrollTop
=
top
-
200
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top
-
200
;
}
}
this
.
barFixed
=
true
;
...
...
pages/campsiteDetail/index.vue
View file @
09493619
...
...
@@ -192,9 +192,9 @@
let
top1
=
document
.
querySelector
(
'#lastestDubbing'
).
offsetTop
;
let
top
=
document
.
querySelector
(
'#activityIntro'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
130
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -204,9 +204,9 @@
let
top
=
document
.
querySelector
(
'#nav'
).
offsetTop
;
var
top1
=
document
.
querySelector
(
'#activityIntro'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
130
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -215,9 +215,9 @@
this
.
active
=
"rank"
;
let
top1
=
document
.
querySelector
(
'#rankLlistDetail'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
130
;
}
this
.
searchBarFixed
=
true
;
}
...
...
pages/tourDetail/index.vue
View file @
09493619
...
...
@@ -217,9 +217,9 @@
this
.
active
=
"lastest"
;
let
top1
=
document
.
querySelector
(
'#lastestDubbing'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
132
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -229,9 +229,9 @@
let
top
=
document
.
querySelector
(
'#nav'
).
offsetTop
;
var
top1
=
document
.
querySelector
(
'#activityIntro'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
132
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -240,9 +240,9 @@
this
.
active
=
"rank"
;
let
top1
=
document
.
querySelector
(
'#rankLlistDetail'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
130
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
132
;
}
this
.
searchBarFixed
=
true
;
},
...
...
pages/vehicleDetail/index.vue
View file @
09493619
...
...
@@ -271,9 +271,9 @@
let
top1
=
document
.
querySelector
(
'#lastestDubbing'
).
offsetTop
;
let
top
=
document
.
querySelector
(
'#activityIntro'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
135
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
135
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -283,9 +283,9 @@
let
top
=
document
.
querySelector
(
'#nav'
).
offsetTop
;
var
top1
=
document
.
querySelector
(
'#activityIntro'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
135
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
135
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -294,9 +294,9 @@
this
.
active
=
"rank"
;
let
top1
=
document
.
querySelector
(
'#rankLlistDetail'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
135
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
135
;
}
this
.
searchBarFixed
=
true
;
},
...
...
@@ -305,9 +305,9 @@
this
.
active
=
"model"
;
let
top1
=
document
.
querySelector
(
'#modelsDetails'
).
offsetTop
;
if
(
this
.
searchBarFixed
){
document
.
documentElement
.
scrollTop
=
top1
+
180
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
180
;
}
else
{
document
.
documentElement
.
scrollTop
=
top1
+
135
;
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
top1
+
135
;
}
this
.
searchBarFixed
=
true
;
},
...
...
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