You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
564 B

  1. <template>
  2. <view class="main">
  3. <!-- 顶部状态栏占位 -->
  4. <view class="top" :style="{height:iSMT+'px'}"></view>
  5. <view>DeepMate</view>
  6. <footerBar class="static-footer" :type="type"></footerBar>
  7. </view>
  8. </template>
  9. <script setup>
  10. import { ref,onMounted } from 'vue'
  11. import footerBar from '../../components/footerBar.vue'
  12. const type = ref('deepMate')
  13. const iSMT = ref(0)
  14. onMounted(() => {
  15. // 状态栏高度
  16. iSMT.value = uni.getSystemInfoSync().statusBarHeight;
  17. })
  18. </script>
  19. <style scoped>
  20. .static-footer {
  21. position: fixed;
  22. bottom: 0;
  23. }
  24. </style>