1234567891011121314151617181920212223 |
- <script>
- export default {
- onLaunch: function() {
- // 状态栏+导航栏高度
- uni.navbarHeight = uni.$u.addUnit(uni.$u.getPx(uni.$u.props.navbar.height) + uni.$u.sys().statusBarHeight,
- 'px')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uview-plus/index.scss";
- page{
- background:#f8f8f8;
- }
- </style>
|