<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no,address=no,email=no" />
    <link rel="shortcut icon" href="/favicon.ico" >
    <meta name="mobileOptimized" content="width" />
    <meta name="handheldFriendly" content="true" />
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>{$site.site_name}</title>
    <META name="keywords" content="{$site.site_keywords}" /> 
    <META name="description" content="{$site.site_desc}" />
    <title></title>
    <link href="/Public/Mobile/css/mui.min.css" rel="stylesheet"/>
    <link href="/Public/Mobile/css/cela.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/Public/Mobile/font/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Mobile/css/bootstrap.min.css"/>
    <script src="/Public/Mobile/js/zepto_1.1.3.js"></script>
    <script src="/Public/js/commons.js"></script>
    <script src="/Public/Mobile/js/mui.min.js"></script>
    <script src="/Public/Mobile/js/logout.js"></script>
</head>


<body>

        <header class="mui-bar mui-bar-nav headBox_y" id="userhave">
            <a class=" mui-action-menu mui-pull-left  titi_ry iconfont icon-iconfontwohover"  href="/Mobile-SelfCenter/Index" id="self" style="font-size:24px; margin-top: 0!important;">
            </a>
            <h1 class="mui-title">
                {$site.site_name}游戏大厅
            </h1>
            <span class="mui-pull-right" style="line-height: 44px;font-size: 16px; color: #FEEA07" id="logout" onclick="logout()" >退出</span>
        </header>

        <!-- 未登录主页面标题 -->
        <header class="mui-bar mui-bar-nav headBox_y" id="nouser">
            <a class=" mui-action-menu mui-pull-left" href="/Mobile-Login/Index" style="font-size: 16px">
                登录
            </a>
            <h1 class="mui-title">{$site.site_name}游戏大厅</h1>
            <a class=" mui-action-menu mui-pull-right" href="/Mobile-Register/Index"  style="font-size: 16px">
                注册
            </a>
        </header>

        <script>
            $(function () {
                if (checkToken()) {
                    apiAjax('/Api-Account/getAccount', '', function(data) {
                        console.log(data.status);
                        if (data.status == 1) {
                            $("#userhave").show();
                            $("#nouser").hide();
                             try{
                                setInterval("getMyMsgone()",10000);
                            }catch (e){
                            }
                        }else{
                            $("#userhave").hide();
                            $("nouser").show();
                        }
                    });
                }
            });
        </script>




