App.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 '@/common/style.scss';
  17. /* uView基础样式 */
  18. @import 'uview-ui/index.scss';
  19. @import '@/common/animate.min.css';
  20. //全局页面背景色
  21. page {
  22. background-color: white;
  23. }
  24. //底部安全距离
  25. .bottom-safety {
  26. padding-bottom: constant(safe-area-inset-bottom);
  27. padding-bottom: env(safe-area-inset-bottom);
  28. }
  29. /**uniapp中uni.showModal H5中被挡住的解决方案*/
  30. uni-modal {
  31. z-index: 19999 !important;
  32. }
  33. /**去掉官方button边框线*/
  34. button::after {
  35. border: none;
  36. }
  37. /**挂载iconfont字体图标*/
  38. @font-face {
  39. font-family: 'iconfont';
  40. src: url('https://at.alicdn.com/t/c/font_4191999_uwys6dyk5iq.ttf?t=1691992251789') format('truetype');
  41. /* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
  42. }
  43. .icon {
  44. font-family: iconfont;
  45. }
  46. </style>