App.vue 557 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. .status_bar {
  16. height: var(--status-bar-height);
  17. width: 100%;
  18. }
  19. .top_view {
  20. height: var(--status-bar-height);
  21. width: 100%;
  22. position: fixed;
  23. top: 0;
  24. z-index: 999;
  25. }
  26. /*每个页面公共css */
  27. @import "@/uni_modules/uview-plus/index.scss";
  28. /*每个页面公共css */
  29. @import "common/global.css";
  30. </style>