App.vue 773 B

12345678910111213141516171819202122232425262728293031323334353637
  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. .justify-space-between{
  26. justify-content: space-between;
  27. }
  28. .align-item-center{
  29. align-items: center;
  30. }
  31. .relative{
  32. position:relative;
  33. }
  34. </style>