App.vue 588 B

12345678910111213141516171819202122232425262728293031323334
  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>
  15. /* 全局隐藏滚动条 */
  16. ::-webkit-scrollbar {
  17. display: none !important;
  18. width: 0 !important;
  19. height: 0 !important;
  20. -webkit-appearance: none;
  21. background: transparent;
  22. }
  23. /* 全局基础样式,使用标准CSS */
  24. page {
  25. background-color: #F5F7FA;
  26. font-size: 28rpx;
  27. color: #333;
  28. }
  29. view, text, scroll-view {
  30. box-sizing: border-box;
  31. }
  32. </style>