App.vue 663 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. // this.$global.getWindowInfo()
  6. uni.onWindowResize(res => {
  7. // console.log('[APP onWindowResize]', res)
  8. this.$global.getWindowInfo(res.size)
  9. uni.$emit('windowResize')
  10. });
  11. },
  12. onShow: function() {
  13. console.log('App Show')
  14. },
  15. onHide: function() {
  16. console.log('App Hide')
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. /*每个页面公共css */
  22. @import '@/uni_modules/uni-scss/index.scss';
  23. /* #ifndef APP-NVUE */
  24. @import '@/static/customicons.css';
  25. // 设置整个项目的背景色
  26. page {
  27. background-color: #ffffff;
  28. }
  29. /* #endif */
  30. </style>