| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <script>
- // import {
- // login
- // } from "./api/api.js"
- export default {
- data() {
- return {
- // uidatas:''
- }
- },
- onLaunch: function() {
- // 隐藏导航栏
- // var main = plus.android.runtimeMainActivity();
- // var window = main.getWindow();
- // var decorView = window.getDecorView();
- // var uiOptions = plus.android.getField(plus.android.View.class, "SYSTEM_UI_FLAG_HIDE_NAVIGATION");
- // decorView.setSystemUiVisibility(uiOptions);
- // this.onlogin()
- // plus.screen.lockOrientation( 'landscape-primary');
- // plus.navigator.hideSystemBar();
- plus.navigator.setFullscreen(true) //隐藏状态栏
- plus.navigator.hideSystemNavigation() //隐藏虚拟按键
- },
- beforeUnmount() {
- // clearInterval(this.uidatas);
- },
- methods: {
-
-
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
-
- <style>
- /*每个页面公共css */
- /* .uni-page-head {
- display: none !important;
- } */
- page {
- padding-bottom: 0 !important; /* 移除底部的padding,使内容可以填满屏幕 */
- }
- </style>
|