<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			this.$nextTick(()=>{
				this.init();
			})
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			init(){	
				let accountInfo=uni.getStorageSync('accountInfo');
				if(accountInfo.userType===1){
					uni.setTabBarItem({
						"index": 0,
						"iconPath": "static/tabBar/diagnose.png",
						"selectedIconPath": "static/tabBar/diagnoseEd.png",
						"text": "诊断"
					})	
					uni.setTabBarItem({
						"index": 1,
						"iconPath": "static/tabBar/therapy.png",
						"selectedIconPath": "static/tabBar/therapyEd.png",
						"text": "治疗"
					})
				}
			}
		}		
	}
</script>

<style>
	/*每个页面公共css */
	@import url('~@/static/icon/iconfont.css');
	@import url('./styles/index.css');
</style>
