1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <script>
- // import routingIntercept from '@/common/permission.js'
- import {
- getToken
- } from '@/common/auth.js'
- export default {
- onLaunch: function() {
- // if (getToken()) {
- // console.log('存在');
- // uni.reLaunch({
- // url: '/pages/index/index'
- // })
- // } else {
- // console.log('不存在');
- // uni.reLaunch({
- // url: '/pages/login/index'
- // })
- // }
- // routingIntercept()
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- @font-face {
- /* font-family: 'puhui';
- src: url('./static/fonts/AlibabaPuHuiTi-3-65-Medium.ttf'); */
- }
- .global-font {
- /* font-family: 'puhui';
- font-size: 16px;
- color: #333; */
- }
- uni-page-body,
- html,
- body {
- height: 100%;
- }
- </style>
|