12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!-- <template>
- <div class="app">
- <router-view class="page-top-space"></router-view>
- </div>
- </template> -->
- <script setup>
- import { onShow, onHide, onLaunch } from '@dcloudio/uni-app'
- onLaunch(async()=> {
- console.log('App onLaunch')
- uni.getSystemInfo({
- success: function(e) {
- // Vue.prototype.StatusBar = e.statusBarHeight;
- console.log("e.statusBarHeight", e.statusBarHeight)
- if (e.platform == 'android') {
- // Vue.prototype.CustomBar = e.statusBarHeight + 50;
- console.log('CustomBar', e.statusBarHeight + 50)
- } else {
- console.log('CustomBar', e.statusBarHeight + 45)
- };
- }
- })
-
- })
- onShow(()=>{
-
- console.log('App Show')
- })
- onHide(()=>{
- console.log('App Hide')
- })
- </script>
- <style>
- /*每个页面公共css */
- /* page{
- padding-top: 0;
- } */
- .main{
- background-color: #bcbcbc;
- display: flex;
- flex-direction:column;
- width: 1200px;
- /* height: 2000px; */
- }
- </style>
|