<template>
	<view id="app">
		<!-- 技师端应用入口 -->
	</view>
</template>

<script>
export default {
	onLaunch: function() {
		console.log('Technician App Launch')
		this.checkLogin()
	},
	onShow: function() {
		console.log('Technician App Show')
	},
	onHide: function() {
		console.log('Technician App Hide')
	},
	methods: {
		checkLogin() {
			const token = uni.getStorageSync('token')
			if (!token) {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}
		}
	}
}
</script>

<style>
@import url("./static/css/common.css");
</style>