123456789101112131415161718192021222324252627282930313233343536 |
- <script>
- export default {
- data() {
- return {
- // globalData: {},
- }
- },
- onLaunch: function() {
- console.log('App Launch')
- // uni.getSystemInfo({ //设置屏幕高度
- // success: res => {
- // //减去tabbar的高度,默认为50px
- // this.globalData.screenHeight = res.screenHeight;
- // // this.globalData.screenWidth = res.screenWidth;
- // }
- // })
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uview-ui/index.scss";
- uni-page-body,html,body{
- height: 100%;
- width: 750rpx;
- background: #F6F6F6;
- }
- </style>
|