App.vue 1002 B

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