App.vue 630 B

1234567891011121314151617181920212223242526272829
  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/uview-ui/index.scss";
  18. @import '@/uni_modules/uni-scss/index.scss';
  19. @import '@/static/styles/index.scss';
  20. @import '@/style/icons/iconfont.css';
  21. // 设置整个项目的背景色
  22. page {
  23. background-color: #f5f5f5;
  24. }
  25. </style>