Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7a578544
authored
Apr 14, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
deep修改框架样式
parent
6b514b24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
src/components/TabHeader.vue
src/utils/common.js
src/components/TabHeader.vue
View file @
7a578544
<
template
>
<div
id=
"showheader"
:class=
"this.top?'iosStyle header-warp':'header-warp'
"
>
<div
id=
"showheader"
class=
"header
"
>
<van-nav-bar
id=
"nav"
:title=
"title"
left-text
left-arrow
>
<template
#
title
>
<a
class=
"header-title
title-active
"
href=
"/bill"
>
人事服务
</a>
<a
class=
"header-title
"
:class=
"isActive?'title-active':''
"
href=
"/bill"
>
人事服务
</a>
<a
class=
"header-title"
href=
"./more"
>
更多服务
</a>
<a
class=
"header-title"
:class=
"isActive?'':'title-active'"
href=
"./more"
>
更多服务
</a>
</
template
>
</van-nav-bar>
</div>
...
...
@@ -12,6 +12,7 @@
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
common
}
from
"../utils/common"
;
export
default
{
components
:
{
[
NavBar
.
name
]:
NavBar
...
...
@@ -21,6 +22,7 @@ export default {
},
data
()
{
return
{
isActive
:
true
,
top
:
""
};
},
...
...
@@ -28,6 +30,11 @@ export default {
var
u
=
navigator
.
userAgent
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
//ios终端
this
.
top
=
isiOS
;
if
(
window
.
location
.
href
.
indexOf
(
"bill"
))
{
this
.
isActive
=
true
;
}
else
{
this
.
isActive
=
false
;
}
}
};
</
script
>
...
...
@@ -42,9 +49,9 @@ export default {
width
:
100%
;
z-index
:
1100
;
}
.van-nav-bar
.van-icon
{
color
:
#
333333
!important
;
font-size
:
25
px
!important
;
.
header
/
deep
/
.
van-nav-bar
.van-icon
{
color
:
#
fff
!important
;
font-size
:
16
px
!important
;
}
.van-nav-bar
{
background
:
linear-gradient
(
...
...
@@ -55,9 +62,12 @@ export default {
}
.header-title
{
color
:
#
fff
;
color
:
#
8ec9fd
;
font-size
:
16px
;
margin-right
:
30px
;
margin-right
:
25px
;
}
.title-active
{
color
:
#ffffff
;
font-size
:
18px
;
}
</
style
>
src/utils/common.js
0 → 100644
View file @
7a578544
export
default
class
common
{
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
}
}
\ No newline at end of file
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