45 lines
838 B
Vue
Executable File
45 lines
838 B
Vue
Executable File
<template lang="pug">
|
|
#app
|
|
v-navbar(v-if="isShowNavbar" :title="NavBarTitle")
|
|
div(:class=" isHaveContent ? 'content': 'welcome' ")
|
|
router-view
|
|
v-tabbar(v-if="isShowTabbar" @getTitle="SetTitle")
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import NavBar from "./components/tpl/NavBar"
|
|
import TabBar from "./components/tpl/Tabbar"
|
|
export default {
|
|
data() {
|
|
return {
|
|
isHaveContent: true,
|
|
isShowNavbar: true,
|
|
isShowTabbar: true,
|
|
NavBarTitle: '驾考神器'
|
|
}
|
|
},
|
|
methods: {
|
|
SetTitle (tit) {
|
|
this.NavBarTitle = tit
|
|
}
|
|
},
|
|
components: {
|
|
'v-navbar' : NavBar,
|
|
'v-tabbar' : TabBar
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
@import "./assets/less/lib/normalize.less";
|
|
.content {
|
|
margin-top: 46px;
|
|
overflow: scroll;
|
|
padding-bottom: 50px;
|
|
}
|
|
.van-radio__label--disabled {
|
|
color: #4c4c4c;
|
|
}
|
|
</style>
|