building-sign/pagesA/singlePage/singlePage.vue

43 lines
890 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view class="pad-x120">
<!-- 头部 -->
<status-nav :navBarTitle="pageTitle"></status-nav>
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
</view>
<!-- 尾部 -->
<tabbar :userType="userType" current="2"></tabbar>
</view>
</template>
<script>
import tabbar from '@/components/tabbar/tabbar';
export default {
components:{
tabbar
},
data() {
return {
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
userType:'worker', //账户类型 工人worker 负责人director
pageTitle:'', //页面标题
}
},
onLoad(op) {
if(op.type == 'manual'){
this.pageTitle = '员工手册'
}
if(op.type == 'security'){
this.pageTitle = '安全公告'
}
if(op.type == 'notice'){
this.pageTitle = '公告'
}
},
methods: {
}
}
</script>
<style scoped>
</style>