App.vue 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. @import '@/static/iconfont.css';
  19. // 设置整个项目的背景色
  20. page {
  21. background-color: #ffffff;
  22. }
  23. /* #endif */
  24. .example-info {
  25. font-size: 14px;
  26. color: #333;
  27. padding: 10px;
  28. }
  29. /* 隐藏scroll-view的滚动条 */
  30. ::-webkit-scrollbar {
  31. display: none;
  32. width: 0 !important;
  33. height: 0 !important;
  34. -webkit-appearance: none;
  35. background: transparent;
  36. color: transparent;
  37. }
  38. uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
  39. display: none;
  40. width: 0 !important;
  41. height: 0 !important;
  42. -webkit-appearance: none;
  43. background: transparent;
  44. color: transparent;
  45. }
  46. </style>