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
f9f5adb7
authored
Apr 14, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改链接
parent
f4501d4c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
187 additions
and
21 deletions
src/assets/css/index.css
src/components/Header.vue
src/components/HeaderW.vue
src/components/index.js
src/main.js
src/views/Bill/index.vue
src/views/Bill/record.vue
src/assets/css/index.css
View file @
f9f5adb7
...
...
@@ -9,4 +9,8 @@ i{
/*未扣费*/
.no_bill
{
color
:
#077AEC
;
}
.container
{
padding-top
:
46px
;
}
\ No newline at end of file
src/components/Header.vue
View file @
f9f5adb7
...
...
@@ -49,10 +49,6 @@ 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
;
}
</
style
>
src/components/HeaderW.vue
0 → 100644
View file @
f9f5adb7
<
template
>
<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
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
export
default
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
[
Icon
.
name
]:
Icon
},
props
:
{
title
:
String
},
data
(){
return
{
top
:
""
}
},
mounted
()
{
var
u
=
navigator
.
userAgent
;
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
//ios终端
this
.
top
=
isiOS
;
}
};
</
script
>
<
style
scoped
>
.header-warp
{
position
:
fixed
;
top
:
0
;
width
:
100%
;
z-index
:
1100
;
background-color
:
#ffffff
;
}
.van-hairline--bottom
::after
{
border
:
0
!important
;
}
.van-nav-bar__title
{
font-size
:
18px
;
}
.header
/
deep
/
.van-nav-bar
.van-icon
{
color
:
#3D4047
!important
;
font-size
:
16px
!important
;
}
.van-nav-bar
{
background
:
#fff
;
font-size
:
16px
!important
;
color
:
#3D4047
;
}
</
style
>
src/components/index.js
View file @
f9f5adb7
import
Header
from
"./Header.vue"
;
import
HeaderW
from
"./HeaderW.vue"
;
import
TabHeader
from
"./TabHeader.vue"
;
export
{
Header
,
HeaderW
,
TabHeader
};
\ No newline at end of file
src/main.js
View file @
f9f5adb7
...
...
@@ -6,6 +6,12 @@ import 'lib-flexible/flexible'
import
'./assets/css/index.css'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
globalNavLeftArrowClick
=
function
(
callback
)
{
document
.
getElementsByClassName
(
"van-nav-bar__left"
)[
0
].
onclick
=
function
()
{
callback
();
};
};
new
Vue
({
router
,
store
,
...
...
src/views/Bill/index.vue
View file @
f9f5adb7
...
...
@@ -23,7 +23,7 @@
<img
src
alt
/>
<span>
充值
</span>
</div>
<div
class=
"right"
>
<div
class=
"right"
@
click=
"toPage(2)"
>
<img
src
alt
/>
<span>
资金记录
</span>
</div>
...
...
@@ -134,7 +134,6 @@
<i>
600.00
</i>
</p>
</div>
</div>
</div>
</div>
...
...
@@ -142,21 +141,26 @@
</
template
>
<
script
>
import
{
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
'@/components'
import
{
Icon
}
from
"vant"
;
import
{
TabHeader
}
from
"@/components"
;
export
default
{
components
:
{
[
Icon
.
name
]:
Icon
,
TabHeader
},
data
(){
return
{
title
:
'人事服务'
}
data
()
{
return
{
title
:
"人事服务"
}
;
},
methods
:
{
onClickLeft
()
{
console
.
log
(
1
);
},
toPage
(
flag
)
{
if
(
flag
===
2
)
{
this
.
$router
.
push
({
name
:
"billrecord"
});
}
}
}
};
...
...
@@ -283,10 +287,10 @@ export default {
box-shadow
:
0px
2px
10px
0px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
4px
;
margin
:
16px
0
30px
;
.list{
.list
{
box-shadow
:
none
;
margin
:
0
;
border-bottom
:
1px
solid
#
ECECEE
;
border-bottom
:
1px
solid
#
ececee
;
border-radius
:
0
;
}
}
...
...
src/views/Bill/record.vue
View file @
f9f5adb7
<
template
>
<div>
<div
class=
"container"
>
<div
class=
"header"
>
<
van-nav-bar
:title=
"title"
left-arrow
@
click-left=
"onClickLeft
"
/>
<
HeaderW
:title=
"title
"
/>
</div>
<div
class=
"container"
>
<div
class=
"container
-wrap
"
>
<!--公积金扣费-->
<div
class=
"list"
>
<div
class=
"title"
>
...
...
@@ -54,16 +54,107 @@
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
企业会员费
</div>
<i>
-160.00
</i>
</div>
<p>
<span>
11-20 12:20
</span>
</p>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
NavBar
,
Icon
}
from
"vant"
;
import
{
Icon
}
from
"vant"
;
import
{
HeaderW
}
from
"@/components"
export
default
{
components
:
{
[
NavBar
.
name
]:
NavBar
,
HeaderW
,
[
Icon
.
name
]:
Icon
},
data
()
{
...
...
@@ -74,13 +165,20 @@ export default {
methods
:
{
onClickLeft
()
{
console
.
log
(
1
);
},
navLeftArrowClick
()
{
this
.
$router
.
go
(
-
1
);
}
},
mounted
()
{
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.container
{
@import
url('../../assets/css/index.css')
;
.container-wrap
{
padding
:
0
16px
;
.list
{
padding
:
16px
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