App.vue 731 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. /* #ifndef APP-NVUE */
  18. // 设置整个项目的背景色
  19. page {
  20. background-color: #f3f6f8;
  21. width: 100%;
  22. height: 100%;
  23. font-size: 28rpx;
  24. img {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. }
  29. .container {
  30. width: 100%;
  31. height: 100%;
  32. display: flex;
  33. flex-direction: column;
  34. }
  35. /* #endif */
  36. .example-info {
  37. font-size: 14px;
  38. color: #333;
  39. padding: 10px;
  40. }
  41. </style>