| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <script>
- // import {
- // login
- // } from "./api/api.js"
- // import {useStore} from 'vuex' //引入
- // import store from "./store/index.js"
- import { mapState } from 'vuex';
- export default {
- data() {
- return {
- // uidatas:''
- }
- },
- computed: {
-
-
- },
- onLaunch: function() {
-
- // 隐藏导航栏
- plus.navigator.setFullscreen(true) //隐藏状态栏
- plus.navigator.hideSystemNavigation() //隐藏虚拟按键
- },
- mounted() {
-
- this.$store.dispatch('startClock');
- this.$store.dispatch('fetchFaultsList');
- },
- 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>
|