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
e52880b6
authored
Apr 14, 2020
by
lishengfu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/hrs_app_h5/bill
parents
965b64d0
9a4d5c91
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
54 additions
and
54 deletions
src/components/Header.vue
src/components/TabHeader.vue
src/router/bill-router.js
src/router/index.js
src/router/trusteeship.js
src/views/Bill/index.vue
src/views/More/index.vue
src/components/Header.vue
View file @
e52880b6
<
template
>
<div
id=
"showheader"
:class=
"this.top?'iosStyle header-warp':'header-warp'"
>
<div
id=
"showheader"
class=
"header"
:class=
"this.top?'iosStyle header-warp':'header-warp'"
>
<van-nav-bar
id=
"nav"
:title=
"title"
left-text
left-arrow
/>
</div>
</
template
>
...
...
@@ -44,8 +44,15 @@ export default {
.van-nav-bar__title
{
font-size
:
18px
;
}
.van-nav-bar
.van-icon
{
color
:
#333333
!important
;
font-size
:
25px
!important
;
.header
/
deep
/
.van-nav-bar
.van-icon
{
color
:
#fff
!important
;
font-size
:
16px
!important
;
}
.van-nav-bar
{
background
:
linear-gradient
(
135deg
,
rgba
(
37
,
141
,
244
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
}
</
style
>
src/components/TabHeader.vue
View file @
e52880b6
...
...
@@ -2,7 +2,7 @@
<div
id=
"showheader"
class=
"header"
>
<van-nav-bar
id=
"nav"
:title=
"title"
left-text
left-arrow
>
<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>
</
template
>
...
...
@@ -30,10 +30,10 @@ 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
{
if
(
window
.
location
.
href
.
indexOf
(
"more"
)
>
0
)
{
this
.
isActive
=
false
;
}
else
{
this
.
isActive
=
true
;
}
}
};
...
...
@@ -54,11 +54,7 @@ export default {
font-size
:
16px
!important
;
}
.van-nav-bar
{
background
:
linear-gradient
(
135deg
,
rgba
(
37
,
141
,
244
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
background
:
#0978e7
;
}
.header-title
{
...
...
@@ -70,4 +66,7 @@ export default {
color
:
#ffffff
;
font-size
:
18px
;
}
.van-hairline--bottom
::after
{
border-bottom-width
:
0px
;
}
</
style
>
src/router/bill-router.js
View file @
e52880b6
...
...
@@ -9,6 +9,15 @@ export default [
}
},
{
path
:
"/trusteeship"
,
name
:
"trusteeship"
,
component
:
()
=>
import
(
"@/views/Trusteeship/index.vue"
),
meta
:
{
requiresAuth
:
true
,
title
:
"人事托管 "
}
},
{
path
:
"/index/record"
,
name
:
"index"
,
component
:
()
=>
import
(
"@/views/Bill/record.vue"
),
...
...
src/router/index.js
View file @
e52880b6
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
moreRouters
from
'./more-router.js'
import
trusteeship
from
'./trusteeship.js'
import
personRouters
from
'./bill-router.js'
import
billRouters
from
'./bill-router.js'
Vue
.
use
(
VueRouter
)
const
router
=
new
VueRouter
({
mode
:
'history'
,
base
:
process
.
env
.
BASE_URL
,
routes
:[
...
person
Routers
,
...
bill
Routers
,
...
moreRouters
,
...
trusteeship
],
scrollBehavior
(
to
,
from
,
savedPosition
)
{
return
{
x
:
0
,
y
:
0
}
...
...
src/router/trusteeship.js
deleted
100644 → 0
View file @
965b64d0
export
default
[
{
path
:
"/trusteeship"
,
name
:
"trusteeship"
,
component
:
()
=>
import
(
"@/views/Trusteeship/index.vue"
),
meta
:
{
requiresAuth
:
true
,
title
:
"人事托管 "
}
}
]
\ No newline at end of file
src/views/Bill/index.vue
View file @
e52880b6
<
template
>
<div>
<div
class=
"header"
>
<
van-nav-bar
title=
"更多服务"
left-arrow
@
click-left=
"onClickLeft
"
/>
<
tab-header
:title=
"title
"
/>
</div>
<div
class=
"contener"
>
<div
class=
"header"
>
...
...
@@ -142,11 +142,17 @@
</
template
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
'@/components'
export
default
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
[
Icon
.
name
]:
Icon
[
Icon
.
name
]:
Icon
,
TabHeader
},
data
(){
return
{
title
:
'人事服务'
}
},
methods
:
{
onClickLeft
()
{
...
...
@@ -161,12 +167,7 @@ export default {
.header
{
height
:
136px
;
padding
:
0
16px
;
border-top
:
1px
solid
rgba
(
15
,
130
,
245
,
1
);
background
:
linear-gradient
(
135deg
,
rgba
(
15
,
130
,
245
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
background
:
#0978e7
;
.header_date_time
{
height
:
75px
;
}
...
...
src/views/More/index.vue
View file @
e52880b6
<
template
>
<div>
<div
class=
"header"
>
<
van-nav-bar
title=
"更多服务"
left-arrow
@
click-left=
"onClickLeft
"
/>
<
tab-header
:title=
"title
"
/>
</div>
<div
class=
"contener"
>
<div
class=
"header"
>
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"header_info"
>
<div
class=
"left"
>
<img
src
=
""
alt
/>
<img
src
alt
/>
<span>
充值
</span>
</div>
<div
class=
"right"
>
...
...
@@ -50,12 +50,17 @@
</
template
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
"@/components"
;
export
default
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
[
Icon
.
name
]:
Icon
[
Icon
.
name
]:
Icon
,
TabHeader
},
data
()
{
return
{
title
:
"人事服务"
};
},
methods
:
{
onClickLeft
()
{
...
...
@@ -70,12 +75,7 @@ export default {
.header
{
height
:
136px
;
padding
:
0
16px
;
border-top
:
1px
solid
rgba
(
15
,
130
,
245
,
1
);
background
:
linear-gradient
(
135deg
,
rgba
(
15
,
130
,
245
,
1
)
0%
,
rgba
(
6
,
115
,
223
,
1
)
100%
);
background
:
#0978e7
;
.header_box
{
height
:
174px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
...
...
@@ -95,8 +95,8 @@ export default {
.paid
{
width
:
50%
;
float
:
left
;
.paid_color{
color
:
#
FF
9100
;
.paid_color
{
color
:
#
ff
9100
;
}
}
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