App.vue 941 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_4191999_e5zep4g7w2a.ttf?t=1693296694547') format('truetype');
  38. /* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
  39. }
  40. .icon {
  41. font-family: iconfont;
  42. }
  43. </style>