App.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. uni.setStorageSync('firstOpen', true)
  6. },
  7. onShow: function() {
  8. console.log('App Show')
  9. },
  10. onHide: function() {
  11. console.log('App Hide')
  12. }
  13. }
  14. </script>
  15. <style lang="scss">
  16. /*每个页面公共css */
  17. @import '@/uni_modules/uni-scss/index.scss';
  18. /* #ifndef APP-NVUE */
  19. @import '@/static/iconfont.wxss';
  20. @import '@/static/style/index.scss';
  21. // 设置整个项目的背景色
  22. page {
  23. background-color: #ffffff;
  24. }
  25. /* #endif */
  26. .example-info {
  27. font-size: 14px;
  28. color: #333;
  29. padding: 10px;
  30. }
  31. /* 隐藏scroll-view的滚动条 */
  32. ::-webkit-scrollbar {
  33. display: none;
  34. width: 0 !important;
  35. height: 0 !important;
  36. -webkit-appearance: none;
  37. background: transparent;
  38. color: transparent;
  39. }
  40. uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
  41. display: none;
  42. width: 0 !important;
  43. height: 0 !important;
  44. -webkit-appearance: none;
  45. background: transparent;
  46. color: transparent;
  47. }
  48. </style>