<template>
	<mobile-frame>
		<view class="main">
			<view class="one">
				<image class="logo" :src="logoUrl" mode=""></image>
			</view>
		</view>
	</mobile-frame>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				logoUrl: ''
			};
		},
		onLoad: function() {},
		onShow: function() {
			const that = this;
			that.search();
		},
		methods: {
			search() {
				const that = this;
				that.$set(that, `logoUrl`, that.$config.logoUrl);
				// 查询当前所在平台
				uni.getSystemInfo({
					success: async function(res) {
						uni.setStorage({
							key: 'system',
							data: res,
							success: function() {
								uni.redirectTo({
									url: `/pagesMy/logistics/index`
								})
							}
						});
					}
				});
			},
		}
	}
</script>

<style lang="scss">
	.main {
		display: flex;
		flex-direction: column;
		width: 100vw;
		height: 100vh;

		.one {
			text-align: center;
			margin: 40vw 0 0 0;

			.logo {
				width: 50vw;
				height: 50vw;
				border-radius: 90px;
				box-shadow: 0 0 5px #f1f1f1;
			}
		}
	}
</style>
