123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <script>
- export default {
- data() {
- return {
- main: null,
- poll: null,
- filter:null,
- pusher:null,
- scanObj:null
- }
- },
- onLaunch: function() {
- console.log("onLaunch")
- const users = this.$storage.getJson("users")
- if(!users){
- uni.reLaunch({
- url: "/pages/login/index",
- success:() => {
- plus.navigator.closeSplashscreen()
- }
- });
- }
- else{
- // this.$msg.getMsg(this.$storage.get('airportName'))
- plus.navigator.closeSplashscreen()
- }
- },
- onShow: function() {
- this.$devapi.TYPE_DEV_JQHWGEVIQUWVILBE = this.$storage.get("device")?Number(this.$storage.get("device")):0
- this.$devapi.RFIDIntervalTime = this.$storage.get("times")?Number(this.$storage.get("times")):0
- if(this.$storage.getJson("users")){
- // this.$msg.getMsg(this.$storage.get('airportName'))
- }
-
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- this.$msg.stopMsg()
- this.$devapi.RFIDStopInventory()
- this.$devapi.ISRFIDOPEN = !this.$devapi.ISRFIDOPEN
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- </style>
|