index.vue 831 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="page">
  3. <uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" title="首页" />
  4. <manager :height="height" v-if="userInfo.isManager == 1"></manager>
  5. <attach :height="height" v-else></attach>
  6. </view>
  7. </template>
  8. <script>
  9. import manager from "./manager/manager";
  10. import attach from "./attach/attach"
  11. export default {
  12. components:{
  13. manager,attach
  14. },
  15. data() {
  16. return {
  17. isManager:true,
  18. height:'',
  19. ruleList:[],
  20. roleList:[],
  21. roleBindRuleParam:{},
  22. userInfo:{}
  23. }
  24. },
  25. onLoad() {
  26. this.userInfo = uni.getStorageSync('spreadUserInfo')
  27. let sysInfo = uni.getSystemInfoSync()
  28. this.height = sysInfo.windowHeight - 45 + 'px'
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. @import './index.rpx.css';
  36. </style>