<script> export default { onLaunch: function() { console.log('App Launch') }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } } </script> <style> /*每个页面公共css */ .custom_status_bar::before { content: ""; display: block; width: 100%; height: var(--status-bar-height); } </style>