App.vue 575 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. },
  5. onShow: function() {
  6. },
  7. onHide: function() {
  8. console.log('App Hide')
  9. },
  10. methods: {
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. /*每个页面公共css */
  16. @import '@/uni_modules/uni-scss/index.scss';
  17. /* #ifndef APP-NVUE */
  18. @import '@/static/customicons.css';
  19. // 设置整个项目的背景色
  20. page {
  21. background-color: #f0f0f0;
  22. height: 100%;
  23. }
  24. uni-page-body,html,body{
  25. height: 100%;
  26. }
  27. /* #endif */
  28. .example-info {
  29. font-size: 14px;
  30. color: #333;
  31. padding: 10px;
  32. }
  33. </style>