<template>
	<view class="app-container">
			登录中...
	</view>
</template>

<script>
	export default {
		data() {
			return {
			};
		},
		onLoad(q) {
			let payment_code = q.payment_code;
			let user_token = q.token;
			
			if (!payment_code || !user_token) {
				uni.showToast({
					title:'缺少参数',
					icon:'none'
				})
				return;
			}
			
			uni.setStorageSync('user_token', user_token);
			uni.setStorageSync('payment_code', payment_code);
			
			uni.redirectTo({
				url:'/pages/payment/payment'
			})
		}
	}
</script>

