You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<script>
|
|
|
|
import '@/common/request/request.js';
|
|
|
|
import piniaPro from '@/stores/piniaPro.js';
|
|
|
|
import {
|
|
|
|
globalStore
|
|
|
|
} from "@/stores/globalData.js";
|
|
|
|
const globalData = globalStore(piniaPro);
|
|
|
|
|
|
|
|
import config from '@/common/config/config.js';
|
|
|
|
export default {
|
|
|
|
globalData: {
|
|
|
|
client: null,
|
|
|
|
phone: null
|
|
|
|
},
|
|
|
|
onLaunch: function() {
|
|
|
|
// console.log('App Launch')
|
|
|
|
// uni.hideTabBar()
|
|
|
|
// handle_loop()
|
|
|
|
},
|
|
|
|
onShow: function() {
|
|
|
|
// console.log(uni.getStorageSync('token'), 'token')
|
|
|
|
let token = uni.getStorageSync('token')
|
|
|
|
// console.log(globalData.isLogin, 'globalData.isLogin')
|
|
|
|
if (token != '' && token != null) {
|
|
|
|
globalData.isLogin = true
|
|
|
|
// setTimeout(() => {
|
|
|
|
// uni.navigateTo({
|
|
|
|
// url: '../../pagesCenter/login/enter'
|
|
|
|
// })
|
|
|
|
// }, 1000)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onHide: function() {
|
|
|
|
// console.log('App Hide')
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
/*每个页面公共css */
|
|
|
|
@import '@/sheep/scss/index.scss';
|
|
|
|
@import "@/uni_modules/uview-plus/index.scss";
|
|
|
|
@import "@/colorui/main.css";
|
|
|
|
@import "@/colorui/icon.css";
|
|
|
|
</style>
|