Commit e52880b6 by lishengfu
parents 965b64d0 9a4d5c91
<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>
......@@ -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>
......@@ -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"),
......
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:[
...personRouters,
...billRouters,
...moreRouters,
...trusteeship
],
scrollBehavior(to, from, savedPosition) {
return { x: 0, y: 0 }
......
export default [
{
path: "/trusteeship",
name: "trusteeship",
component: () => import("@/views/Trusteeship/index.vue"),
meta: {
requiresAuth: true,
title: "人事托管 "
}
}
]
\ No newline at end of file
<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;
}
......
<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: #FF9100;
.paid_color {
color: #ff9100;
}
}
span {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment