<template>
	<view class="content">
		 
	</view>
</template>

<script>
	import { getDicts } from '@/api/common'
	export default {
		data() {
			return {
				 
			};
		},
		onShow() {
			//this.getDicts()
			this.navigatHandler();
		},
		methods: {
			navigatHandler: function() {
				if (!this.$isLogin()) {
						setTimeout(()=>{
							uni.reLaunch({
								url: '../auth/loginIndex',
								animationType: 'none',
								animationDuration: 2000
							})
						},200);
						
					 // #ifdef APP-PLUS
						 plus.navigator.closeSplashscreen();
					// #endif
						
				} else {
					if(uni.getStorageSync("openUrl")) {
						return
					}
					uni.reLaunch({
						// url: '../index/index',
						url: '/pages_im/pages/conversation/conversationList/index',
						animationType: 'none',
						animationDuration: 2000
					})
			 	}
			},
			getDicts:function(){
				getDicts().then(
					res => {
						if(res.code==200){
							uni.setStorageSync('dicts',JSON.stringify(res.data));
						}
					},
					rej => {}
				);
			},
		},
		
	};
 
</script>
<style>
	page{
		background-color: #fff;
	}
	.content {
		background-color: #fff;
		height: 100%;
		width: 100%;
		position: relative;
		padding-top: 0;
	}
</style>
