App.vue 720 B

1234567891011121314151617181920212223242526272829303132
  1. <script>
  2. export default {
  3. // onLaunch: function() {
  4. // console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
  5. // console.log('App Launch')
  6. // },
  7. // onShow: function() {
  8. // console.log('App Show')
  9. // },
  10. // onHide: function() {
  11. // console.log('App Hide')
  12. // }
  13. }
  14. </script>
  15. <style lang="scss">
  16. /*每个页面公共css */
  17. @import '@/uni_modules/uni-scss/index.scss';
  18. @import '@/static/iconfont.css';
  19. /* #ifndef APP-NVUE */
  20. // 设置整个项目的背景色
  21. page {
  22. background-color: #fff;
  23. }
  24. /* #endif */
  25. .status_bar{
  26. height: 25px;
  27. /* #ifndef H5 */
  28. height: calc(var(--status-bar-height) + 40rpx) ;
  29. /* #endif */
  30. }
  31. </style>