<template>
	<view class="app">
		<image src="../../static/logo.png" mode=""></image>
		<view class="title">
			泉医助手
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import {
		createMobileToken
	} from '@/api/login/index.js'
	export default {
		data() {
			return {};
		},
		onShow() {
			this.info()
		},
		methods: {
			info() {
				var that = this
				createMobileToken().then(res => {
					uni.setStorageSync("token", res.data.token)
				})
				setTimeout(() => {
					uni.reLaunch({
						url: '/pages/homepage/homepage',
					})
				}, 2000);
			}
		},
	}
</script>

<style lang="scss">
	.app {
		height: 100vh;
		background-color: #fff;
	}

	image {
		width: 50%;
		height: 400rpx;
		position: absolute;
		left: 25%;
		top: 28%;
	}

	.title {
		width: 80%;
		height: 48rpx;
		font-size: 49rpx;
		text-align: center;
		font-family: DengXian;
		font-weight: bold;
		color: #000000;
		position: absolute;
		top: 50%;
		left: 10%;
	}
</style>
