App.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script>
  2. export default {
  3. onLaunch: function () {
  4. },
  5. onShow: function () {
  6. },
  7. onHide: function () {
  8. }
  9. };
  10. </script>
  11. <style lang="scss">
  12. /*每个页面公共css */
  13. @import '@/common/style.scss';
  14. /* uView基础样式 */
  15. @import 'uview-ui/index.scss';
  16. @import '@/common/animate.min.css';
  17. //全局页面背景色
  18. page {
  19. background-color: white;
  20. }
  21. //底部安全距离
  22. .bottom-safety {
  23. padding-bottom: constant(safe-area-inset-bottom);
  24. padding-bottom: env(safe-area-inset-bottom);
  25. }
  26. /**uniapp中uni.showModal H5中被挡住的解决方案*/
  27. uni-modal {
  28. z-index: 19999 !important;
  29. }
  30. /**去掉官方button边框线*/
  31. button::after {
  32. border: none;
  33. }
  34. /**挂载iconfont字体图标*/
  35. @font-face {
  36. font-family: 'iconfont';
  37. src: url('https://at.alicdn.com/t/c/font_4666493_zepght549b.ttf?t=1724837382464') format('truetype');
  38. // src: url('~@/static/font/iconfont.woff2?t=1724655869789') format('woff2')
  39. // url('~@/static/font/iconfont.woff?t=1724655869789') format('woff'),
  40. // url('~@/static/font/iconfont.ttf?t=1724655869789') format('truetype');
  41. }
  42. .icon {
  43. font-family: iconfont;
  44. }
  45. </style>