<template>
	<view class="page">
		<uni-nav-bar  :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true"   title="首页"  />
		<manager :height="height" v-if="userInfo.isManager === 1"></manager>
		<attach :height="height" v-else></attach>
	</view>
</template>

<script>
	import manager from "./manager/manager";
	import attach from "./attach/attach"
	export default {
		components:{
			manager,attach
		},
		data() {
			return {
				height:'',
				ruleList:[],
				roleList:[],
				roleBindRuleParam:{},
				userInfo:{}
			}
		},
		onLoad() {
			let sysInfo = uni.getSystemInfoSync()
			this.height = sysInfo.windowHeight - 45 + 'px'

		},
		onShow(){
			this.userInfo = uni.getStorageSync('spreadUserInfo')
		},
		methods: {


		}
	}
</script>

<style scoped lang="scss">
	@import './index.rpx.css';
</style>
