App.vue 490 B

1234567891011121314151617181920212223
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. // 状态栏+导航栏高度
  5. uni.navbarHeight = uni.$u.addUnit(uni.$u.getPx(uni.$u.props.navbar.height) + uni.$u.sys().statusBarHeight,
  6. 'px')
  7. },
  8. onShow: function() {
  9. console.log('App Show')
  10. },
  11. onHide: function() {
  12. console.log('App Hide')
  13. }
  14. }
  15. </script>
  16. <style lang="scss">
  17. /*每个页面公共css */
  18. @import "@/uni_modules/uview-plus/index.scss";
  19. page{
  20. background:#f8f8f8;
  21. }
  22. </style>