App.vue 678 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. /*每个页面公共css */
  16. @import '@/uni_modules/uni-scss/index.scss';
  17. @import '@/static/css/common.scss';
  18. // 设置整个项目的背景色
  19. page {
  20. background-color: #f3f6f8;
  21. color: $uni-main-color;
  22. width: 100%;
  23. height: 100%;
  24. font-size: 28rpx;
  25. img {
  26. width: 100%;
  27. height: 100%;
  28. }
  29. }
  30. .container {
  31. width: 100%;
  32. height: 100%;
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. </style>