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

<script>
import config from '../../static/config/index.js'
import Order from '../../request/order/index'
import User from '@/request/user'
import Menu from '@/request/menu'
export default {
	data() {
		return {
			id: ''
		}
	},
	onLoad(options) {
					uni.reLaunch({url: '/pages/menu/menu'})
		// this.id = '';
		// this.$store.commit('setOrderId', '');
		// if (options.q) {
		// 	let url = decodeURIComponent(options.q);
		// 	this.id = url.split('/')[url.split('/').length - 1];
		// 	this.$store.commit('setOrderId', this.id);
		// }
		//    this.id=1;
	},
	// async onShow() {
	// 	//  let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
	// 	// let curRoute = routes[routes.length - 1].route //获取当前页面路由
	// 	//   let curParam = routes[routes.length - 1].options;
	// 	let Authorization = uni.getStorageSync(`Authorization`);
	// 	let userPhoneInfo = uni.getStorageSync(`userPhoneInfo`);
	// 	if (Authorization && userPhoneInfo) {
	// 		this.$store.commit('setUserPhoneInfo', userPhoneInfo);
	// 		this.$store.commit('setAuthorization', Authorization);
	// 		if (this.id != '') {
	// 			uni.navigateTo({
	// 				url: `/menuSubPackage/pages/settlement/settlement?orderId=${this.id}&buyType=3`
	// 			})
	// 		} else {
	// 			uni.reLaunch({
	// 				url: '/pages/menu/menu'
	// 			})
	// 		}
	// 	} else {
	// 		uni.removeStorageSync('Authorization');
	// 		uni.removeStorageSync('userPhoneInfo');
	// 		if (this.id != '') {
	// 			let _this = this;
	// 			uni.showToast({
	// 				title: '请授权登录',
	// 				icon: 'error',
	// 				success() {
	// 					setTimeout(() => {
	// 						uni.reLaunch({
	// 							url: '/pages/menu/menu?orderId=' + _this.id
	// 						})
	// 					}, 1500)
	// 				}
	// 			})
	// 		} else {
	// 			uni.reLaunch({
	// 				url: '/pages/menu/menu'
	// 			})
	// 		}


	// 	}
	// },
	methods: {
	}
}
</script>

<style>
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.logo {
	height: 200rpx;
	width: 200rpx;
	margin-top: 200rpx;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50rpx;
}

.text-area {
	display: flex;
	justify-content: center;
}

.title {
	font-size: 36rpx;
	color: #8f8f94;
}
</style>