<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>用户注册状态-大司空云计价</title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/web/building_saas/css/main.css">
    <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
    <link rel="shortcut icon" href="/web/building_saas/css/favicon.ico">
<style>
html{height:100%;}
</style>
</head>
<body class="login-body">
    <div class="container">
        <% if (!check) { %>
        <form class="form-signin mt-5" method="get" onsubmit="return checkMobile();">
            <h1 class="d-flex justify-content-center mb-0"><img src="/web/building_saas/img/building.png" width="40" height="40" class="mr-3" style="margin-top:5px"> 大司空云计价</h1>
            <p class="text-center mb-4 text-muted">市政、房建、轨道、管廊管线等专业工程计价软件</p>
            <p class="h3 text-center mb-3">查询注册状态</p>
            <div class="form-group">
                <input id="inputEmail" name="mobile" class="form-control " placeholder="输入手机号" required="" autofocus="">
                <small id="mobileHelp" style="display: none" class="form-text text-danger">您输入的 手机 格式不对</small>
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-success btn-block">查询</button>
            </div>
        </form>
        <% } else { %>
        <form class="form-signin mt-5">
            <h1 class="d-flex justify-content-center mb-0"><img src="/web/building_saas/img/building.png" width="40" height="40" class="mr-3" style="margin-top:5px"> 大司空云计价</h1>
            <p class="text-center mb-4 text-muted">市政、房建、轨道、管廊管线等专业工程计价软件</p>
            <% if (userinfo) { %>
            <p class="h3 text-center mb-3"><%= mobile %> 已经注册</p>
            <div class="card bg-success text-white">
                <div class="card-body">
                    <p class="h4 mb-0">账号：<%= userinfo.mobile %></p>
                    <hr class="border-light">
                    <p class="h4 mb-0">单位：<%= userinfo.company %></p>
                    <hr class="border-light">
                    <p class="h4 mb-0">姓名：<%= userinfo.real_name %></p>
                    <hr class="border-light">
                    <p class="h4 mb-0"> QQ：<%= userinfo.qq %></p>
                </div>
            </div>
            <p class="text-center mt-2 text-success" style="font-size:10px"><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i></p>
            <div class="form-group">
                <a href="/wap/checkuser" class="btn btn-outline-primary btn-block">返回</a>
            </div>
            <% } else { %>
            <div class="card bg-danger text-white">
                <div class="card-body">
                    <p class="h4 mb-0"><%= mobile %> 未注册</p>
                </div>
            </div>
            <p class="text-center mt-2 text-danger" style="font-size:10px"><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i><i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i></p>
            <div class="form-group">
                <a href="/wap/reg" class="btn btn-outline-primary btn-block">立即注册</a>
            </div>
            <% } %>
        </form>
        <% } %>

       <!--  <div class="text-white fixed-bottom"><p class="text-center mb-1">Copyright © 2019 <a href="https://smartcost.com.cn" target="_blank" class="text-white">珠海纵横创新软件有限公司</a>.All Rights Reserved.<a class="text-white ml-2" href="http://www.miitbeian.gov.cn" target="_blank">粤ICP备14032472号</a></p></div> -->
    </div>

    <!-- JS. -->
    <script src="/lib/jquery/jquery-3.2.1.min.js"></script>
    <script src="/lib/popper/popper.min.js"></script>
    <script src="/lib/bootstrap/bootstrap.min.js"></script>
    <script src="/web/building_saas/js/global.js"></script>
    <script>
        function checkMobile() {
            if(!/^1[3456789]\d{9}$/.test($('input[name="mobile"]').val())) {
                $('#mobileHelp').show();
                return false;
            }
        }
    </script>
</body>

</html>
