App.vue 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /* 解决小程序和app滚动条的问题 */
  17. /* #ifdef MP-WEIXIN || APP-PLUS */
  18. ::-webkit-scrollbar {
  19. display: none;
  20. width: 0 !important;
  21. height: 0 !important;
  22. -webkit-appearance: none;
  23. background: transparent;
  24. color: transparent;
  25. }
  26. /* #endif */
  27. /* 解决H5 的问题 */
  28. /* #ifdef H5 */
  29. uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
  30. /* 隐藏滚动条,但依旧具备可以滚动的功能 */
  31. display: none;
  32. width: 0 !important;
  33. height: 0 !important;
  34. -webkit-appearance: none;
  35. background: transparent;
  36. color: transparent;
  37. }
  38. /* #endif */
  39. </style>