| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <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 {
- isManager:true,
- height:'',
- ruleList:[],
- roleList:[],
- roleBindRuleParam:{},
- userInfo:{}
- }
- },
- onLoad() {
- this.userInfo = uni.getStorageSync('spreadUserInfo')
- let sysInfo = uni.getSystemInfoSync()
- this.height = sysInfo.windowHeight - 45 + 'px'
- },
- methods: {
- }
- }
- </script>
- <style scoped lang="scss">
- @import './index.rpx.css';
- </style>
|