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.
45 lines
953 B
45 lines
953 B
<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(globalData.isLogin, 'globalData.isLogin')
|
|
if (globalData.isLogin == false) {
|
|
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> |