{if $_userid==0}
<div class="ui-ko">
<p>系统检测您还没有登录</p>
<div><span id="send" class="f_red">3</span>正在跳页面...请立即登录,或注册!</div>
</div>
<meta http-equiv="refresh" content="3;URL=/mobile/member/login.php"/>
{/if}
<?php
$r = $db->get_one("SELECT nickname FROM destoon_weixin_user where username='$_username'");//获取
$nickname= $r['nickname'];//积分数组
?>
{if $nickname==''}
<div class="ui-ko">
<p>系统检测您还没有绑定微信</p>
<div><span id="send" class="f_red">3</span>正在跳页面...请立即绑定微信!</div>
</div>
<meta http-equiv="refresh" content="3;URL=/mobile/member/weixin.php"/>
{/if}
<script type="text/javascript">
var i = 3;
var interval=window.setInterval(
function() {
if(i == 0) {
clearInterval(interval);
} else {
$('#send').html(i);
i--;
}
},
1000);
</script>