App.vue 1.4 KB
Newer Older
Y
init  
yurj26 已提交
1
<script>
Y
yurj26 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
    export default {
        onLaunch: function() {
            console.log('App Launch')

            // const performance: Performance = uni.getPerformance()
            // const observer1: PerformanceObserver = performance.createObserver((entryList: PerformanceObserverEntryList) => {
            //   console.log("observer1:entryList.getEntries()" + JSON.stringify(entryList.getEntries()))
            // })
            // observer1.observe({ entryTypes: ['render', 'navigation'] } as PerformanceObserverOptions)
        },
        onShow: function() {
            console.log('App Show')
        },
        onHide: function() {
            console.log('App Hide')
        }
H
hdx 已提交
18
    }
Y
init  
yurj26 已提交
19 20 21
</script>

<style>
Y
yurj26 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    /*每个页面公共css */
    @import './common/uni.css';

    /* #ifdef H5 */
    @media screen and (min-width: 768px) {
        body {
            overflow-y: scroll;
        }
    }

    /* 顶栏通栏样式 */
    /* .uni-top-window {
  	    left: 0;
  	    right: 0;
  	} */

    uni-page-body {
        background-color: #F5F5F5 !important;
        min-height: 100% !important;
        height: auto !important;
    }

    .uni-top-window uni-tabbar .uni-tabbar {
        background-color: #fff !important;
    }

    .uni-app--showleftwindow .hideOnPc {
        display: none !important;
    }

    /* #endif */
H
hdx 已提交
53
</style>