<script> export default { onLaunch: function () { console.log('App Launch'); }, onShow: function () { console.log('App Show'); }, onHide: function () { console.log('App Hide'); } }; </script> <style lang="scss"> /*每个页面公共css */ @import '@/common/style.scss'; /* uView基础样式 */ @import 'uview-ui/index.scss'; @import '@/common/animate.min.css'; //全局页面背景色 page { background-color: white; } //底部安全距离 .bottom-safety { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); } /**uniapp中uni.showModal H5中被挡住的解决方案*/ uni-modal { z-index: 19999 !important; } /**去掉官方button边框线*/ button::after { border: none; } /**挂载iconfont字体图标*/ @font-face { font-family: 'iconfont'; src: url('https://at.alicdn.com/t/c/font_4191999_pn5jkrx05l.ttf?t=1692117075907') format('truetype'); /* src: url('~@/static/font/iconfont.ttf') format('truetype'); */ } .icon { font-family: iconfont; } </style>