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

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(option) {
			if(!option.code) {
				this.gotoPath('/pages/index/index')
			}else {
				this.Post({code: option.code},'/api/wechat/oauth_callback').then(res => {
					return;
					if(res.code == 1) {
						this.$store.commit('changeUserInfo', res.data)
						window.location.href = option.state
					}
				})
			}
		},
		onShow() {
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		width: 100vw;
		height: 100vh;
		// background-image: url('https://static.ticket.sz-trip.com/tourGuide/images/login/bg.png');
		background-size: 100% 100%;
		padding-top: 428rpx;
	}
	
	.title-img {
		display: block;
		margin: auto;
		width: 336.67rpx;
		height: 54rpx;
	}
	
	.item {
		width: 587rpx;
		height: 80rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
		margin: 32rpx auto 0;
		padding: 0 26rpx;
		
		.icon {
			width: 26.67rpx;
			height: 26.67rpx;
			margin-right: 12rpx;
		}
		
		input {
			flex: 1;
			font-weight: 500;
			font-size: 25rpx;
			color: #ABABAB;
		}
		
		.code-img {
			width: 153rpx;
			height: 55rpx;
			margin-left: 10rpx;
		}
		
		.eye-img {
			width: 26.67rpx;
			height: 26.67rpx;
			margin-left: 10rpx;
		}
	}
	
	.btn {
		width: 547rpx;
		line-height: 80rpx;
		background: #96684F;
		border-radius: 40rpx;
		margin: 100rpx auto 0;
		font-weight: bold;
		font-size: 35rpx;
		color: #FFFFFF;
		text-align: center;
	}
</style>