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
84d4151a
Commit
84d4151a
authored
Sep 09, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关于欣新
parent
90a299d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
11 deletions
+32
-11
aboutXx.vue
pages/aboutXx.vue
+27
-6
index.vue
pages/index.vue
+5
-5
No files found.
pages/aboutXx.vue
View file @
84d4151a
...
@@ -24,28 +24,37 @@
...
@@ -24,28 +24,37 @@
:class=
"tabIndex== 0?'v-type-active':''"
:class=
"tabIndex== 0?'v-type-active':''"
class=
"v-type"
class=
"v-type"
@
click=
"changeArea('history01')"
>
@
click=
"changeArea('history01')"
>
品牌故事
<label>
品牌故事
</label>
<span/>
<span/>
</li>
</li>
<li
<li
:class=
"tabIndex== 1?'v-type-active':''"
:class=
"tabIndex== 1?'v-type-active':''"
class=
"v-type"
class=
"v-type"
@
click=
"changeArea('history02')"
>
@
click=
"changeArea('history02')"
>
企业文化
<label>
企业文化
</label>
<span/>
<span/>
</li>
</li>
<li
<li
:class=
"tabIndex== 2?'v-type-active':''"
:class=
"tabIndex== 2?'v-type-active':''"
class=
"v-type"
class=
"v-type"
@
click=
"changeArea('history03')"
>
品牌历史
<span/></li>
@
click=
"changeArea('history03')"
>
<label>
品牌历史
</label>
<span/>
</li>
<li
<li
:class=
"tabIndex== 3?'v-type-active':''"
:class=
"tabIndex== 3?'v-type-active':''"
class=
"v-type"
class=
"v-type"
@
click=
"changeArea('history04')"
>
品牌建设
<span/></li>
@
click=
"changeArea('history04')"
>
<label>
品牌建设
</label>
<span/>
</li>
<li
<li
:class=
"tabIndex== 4?'v-type-active':''"
:class=
"tabIndex== 4?'v-type-active':''"
class=
"v-type"
class=
"v-type"
@
click=
"changeArea('history05')"
>
联系我们
<span/></li>
@
click=
"changeArea('history05')"
>
<label>
联系我们
</label>
<span/>
</li>
</ul>
</ul>
</div>
</div>
<div>
<div>
...
@@ -319,11 +328,23 @@
...
@@ -319,11 +328,23 @@
font-size
:
14px
;
font-size
:
14px
;
text-align
:
center
;
text-align
:
center
;
color
:
#999
;
color
:
#999
;
height
:
21px
;
label
{
color
:
#999
;
height
:
21px
;
display
:
inline-block
;
display
:
flex
;
align-items
:
flex-end
;
justify-content
:
center
;
}
}
}
.v-type-active
{
.v-type-active
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333
;
height
:
36px
;
label
{
color
:
#333
!
important
;
}
span
{
span
{
width
:
20px
;
width
:
20px
;
height
:
2px
;
height
:
2px
;
...
...
pages/index.vue
View file @
84d4151a
...
@@ -347,7 +347,7 @@
...
@@ -347,7 +347,7 @@
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
// 设备/屏幕高度
// 设备/屏幕高度
let
scrollObj
=
document
.
getElementById
(
"scroll-area"
);
// 滚动区域
let
scrollObj
=
document
.
getElementById
(
"scroll-area"
);
// 滚动区域
let
mapAreaScrollTop
=
document
.
getElementById
(
"mapArea"
).
offsetTop
;
//
滚动
区域
let
mapAreaScrollTop
=
document
.
getElementById
(
"mapArea"
).
offsetTop
;
//
地图
区域
let
activityScrollTop
=
document
.
getElementById
(
"activityId"
).
offsetTop
;
// 滚动区域
let
activityScrollTop
=
document
.
getElementById
(
"activityId"
).
offsetTop
;
// 滚动区域
if
(
scrollObj
)
{
if
(
scrollObj
)
{
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
...
@@ -370,10 +370,10 @@
...
@@ -370,10 +370,10 @@
}
}
},
100
);
},
100
);
}
}
if
(
scrollTop
>
activityScrollTop
)
{
//
if(scrollTop > activityScrollTop) {
_t
.
cityNum
=
0
;
//
_t.cityNum = 0;
_t
.
companyNum
=
0
;
//
_t.companyNum = 0;
}
//
}
}
}
}
}
},
},
...
...
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