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
9a4d5c91
authored
Apr 14, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改样式
parent
946dc543
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
30 deletions
src/components/TabHeader.vue
src/views/Bill/index.vue
src/views/More/index.vue
src/components/TabHeader.vue
View file @
9a4d5c91
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
id=
"showheader"
class=
"header"
>
<div
id=
"showheader"
class=
"header"
>
<van-nav-bar
id=
"nav"
:title=
"title"
left-text
left-arrow
>
<van-nav-bar
id=
"nav"
:title=
"title"
left-text
left-arrow
>
<template
#
title
>
<template
#
title
>
<a
class=
"header-title"
:class=
"isActive?'title-active':''"
href=
"/
bill
"
>
人事服务
</a>
<a
class=
"header-title"
:class=
"isActive?'title-active':''"
href=
"/"
>
人事服务
</a>
<a
class=
"header-title"
:class=
"isActive?'':'title-active'"
href=
"./more"
>
更多服务
</a>
<a
class=
"header-title"
:class=
"isActive?'':'title-active'"
href=
"./more"
>
更多服务
</a>
</
template
>
</
template
>
...
@@ -30,10 +30,10 @@ export default {
...
@@ -30,10 +30,10 @@ export default {
var
u
=
navigator
.
userAgent
;
var
u
=
navigator
.
userAgent
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
//ios终端
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
//ios终端
this
.
top
=
isiOS
;
this
.
top
=
isiOS
;
if
(
window
.
location
.
href
.
indexOf
(
"bill"
))
{
if
(
window
.
location
.
href
.
indexOf
(
"more"
)
>
0
)
{
this
.
isActive
=
true
;
}
else
{
this
.
isActive
=
false
;
this
.
isActive
=
false
;
}
else
{
this
.
isActive
=
true
;
}
}
}
}
};
};
...
@@ -54,11 +54,7 @@ export default {
...
@@ -54,11 +54,7 @@ export default {
font-size
:
16px
!important
;
font-size
:
16px
!important
;
}
}
.van-nav-bar
{
.van-nav-bar
{
background
:
linear-gradient
(
background
:
#0978e7
;
135deg
,
rgba
(
37
,
141
,
244
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
}
}
.header-title
{
.header-title
{
...
@@ -70,4 +66,7 @@ export default {
...
@@ -70,4 +66,7 @@ export default {
color
:
#ffffff
;
color
:
#ffffff
;
font-size
:
18px
;
font-size
:
18px
;
}
}
.van-hairline--bottom
::after
{
border-bottom-width
:
0px
;
}
</
style
>
</
style
>
src/views/Bill/index.vue
View file @
9a4d5c91
...
@@ -142,11 +142,10 @@
...
@@ -142,11 +142,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
'@/components'
import
{
TabHeader
}
from
'@/components'
export
default
{
export
default
{
components
:
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
[
Icon
.
name
]:
Icon
,
[
Icon
.
name
]:
Icon
,
TabHeader
TabHeader
},
},
...
@@ -168,12 +167,7 @@ export default {
...
@@ -168,12 +167,7 @@ export default {
.header
{
.header
{
height
:
136px
;
height
:
136px
;
padding
:
0
16px
;
padding
:
0
16px
;
border-top
:
1px
solid
rgba
(
15
,
130
,
245
,
1
);
background
:
#0978e7
;
background
:
linear-gradient
(
135deg
,
rgba
(
15
,
130
,
245
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
.header_date_time
{
.header_date_time
{
height
:
75px
;
height
:
75px
;
}
}
...
...
src/views/More/index.vue
View file @
9a4d5c91
<
template
>
<
template
>
<div>
<div>
<div
class=
"header"
>
<div
class=
"header"
>
<
van-nav-bar
title=
"更多服务"
left-arrow
@
click-left=
"onClickLeft
"
/>
<
tab-header
:title=
"title
"
/>
</div>
</div>
<div
class=
"contener"
>
<div
class=
"contener"
>
<div
class=
"header"
>
<div
class=
"header"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
<div
class=
"header_info"
>
<div
class=
"header_info"
>
<div
class=
"left"
>
<div
class=
"left"
>
<img
src
=
""
alt
/>
<img
src
alt
/>
<span>
充值
</span>
<span>
充值
</span>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
...
@@ -50,12 +50,17 @@
...
@@ -50,12 +50,17 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
"@/components"
;
export
default
{
export
default
{
components
:
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
[
Icon
.
name
]:
Icon
,
[
Icon
.
name
]:
Icon
TabHeader
},
data
()
{
return
{
title
:
"人事服务"
};
},
},
methods
:
{
methods
:
{
onClickLeft
()
{
onClickLeft
()
{
...
@@ -70,12 +75,7 @@ export default {
...
@@ -70,12 +75,7 @@ export default {
.header
{
.header
{
height
:
136px
;
height
:
136px
;
padding
:
0
16px
;
padding
:
0
16px
;
border-top
:
1px
solid
rgba
(
15
,
130
,
245
,
1
);
background
:
#0978e7
;
background
:
linear-gradient
(
135deg
,
rgba
(
15
,
130
,
245
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
.header_box
{
.header_box
{
height
:
174px
;
height
:
174px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
background
:
rgba
(
255
,
255
,
255
,
1
);
...
@@ -95,8 +95,8 @@ export default {
...
@@ -95,8 +95,8 @@ export default {
.paid
{
.paid
{
width
:
50%
;
width
:
50%
;
float
:
left
;
float
:
left
;
.paid_color{
.paid_color
{
color
:
#
FF
9100
;
color
:
#
ff
9100
;
}
}
}
}
span
{
span
{
...
...
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