{{include file=Main_View('head')}}
<style>
	.bind{
		margin-top: 10px;
		width: 100%;
		float: left;
		background-color: #fff;
	}
	.sort{
		border: 1px solid #ddd;
		font-size: 16px;
		font-weight: bold;
		height: 45px;
		line-height: 45px;
	}
	.bind .sort span{
		padding-left: 10px;
		float: left; !important
	}
	.select_bind{
		border: 1px solid #DDD;
		border-top: 0;
	}
	.select_bind .radio{
		line-height: 80px;
	}
	.select_bind .radio .layui-form-radio {
		padding-left: 10px;
	}
	.msg{
		padding-left: 10px;
		line-height: 30px;
		text-align: center;
		width: 100%;
	}
	red{
		
		color: red;
	}
	.layui-input{
		width: 30%;
		float: left;
		margin-top: 5px;
    	margin-left: 10px;
	}
	label{
		float: left;
		line-height: 50px;
		padding-left: 20px;
	}
</style>

<div class="bind layui-form">
	<div class="sort"><span>微信账号登陆</span></div>
	<div class="select_bind">
		
		<div style="clear: both;text-align: center;">
			<img src="{{WEBURL}}/wechat/bind/qrcode_login/codelogin/{{$_GET['codelogin']}}"/>
		</div>
		<div class="msg">
			<red>请使用微信扫描登陆</red>
			<p>如果你的微信之前绑定了其它帐号的话,其它帐号将不能再用此微信登录,一个微信只能对应绑定一个帐号</p>
		</div>
		
	</div>
	
</div>

<script type="text/javascript">
<!--
function send(){
	$.get("{{WEBURL}}/wechat/bind/testbind{{C('html')}}?"+Math.random(), function(data){
		if(data>0)window.location.href='{{FromUrl}}';
	});
	
}
window.setInterval("send();", 2000);
//-->
</script>
{{include file=Main_View('foot')}}