<link rel="stylesheet" href="/Public/Home/css/styleWP.css"/>
<link rel="stylesheet" href="/Public/laydate/need/laydate.css"/>
{literal}
<style>
    .y_list{display: none;}
    #msg{
        width: 20px;
        height: 20px;
        background-color: red;
        display: inline-block;
        border:2px solid;
        border-radius:100%;
        text-align: center;
        color: white;
    }
</style>
<div class="memberBG">
    <div class="member">
        <div class="member-nav ">
            <ul class="leftList">
                <li>
                    <h5>
                        <span><i class="wp-icon"></i>投注管理</span>
                    </h5>
                    <ul>
                        <li>
                            <a href="/Home-Betting/Sixlottery">六合投注记录</a>
                        </li>
                        <li>
                            <a href="/Home-Betting/Index">投注记录</a>
                        </li>
                        <li>
                            <a href="/Home-ChaseNumber/Index">追号记录</a>
                        </li>
                        <li>
                            <a href="/Home-AccountDetails/Index">账号明细</a>
                        </li>
                        <li>
                            <a href="/Home-Profit/Index">个人盈亏</a>
                        </li>
                    </ul>
                </li>

                <li class="active" >
                    <h5>
                        <span><i class="wp-icon"></i>用户中心</span>
                    </h5>
                    <ul>
                        <li class="active">
                            <a href="/Home-Account/Index">用户资料</a>
                        </li>
                        <li id="acc_a" style="display: none">
                            <a class="bankcardManage" href="/Home-Bankcard/Index">银行卡管理</a>
                        </li>
                        <li id="dfg" style="display: none">
                            <a class="faceback" href="/Home-Account/myMesg">消息中心</a><span id="msg" style="display: none"></span>
                        </li>
                        <li id="acc" style="display: none">
                            <a class="faceback" href="/Home-Account/Faceback">意见反馈</a>
                        </li>
                        <li>
                            <a href="/Home-Account/UserShare">我的分享</a>
                        </li>

                    </ul>
                </li>
                <li id="secure"  style="display: none">
                    <h5>
                        <span><i class="wp-icon"></i>安全中心</span>
                    </h5>
                    <ul>
                        <li>
                            <a href="/Home-Account/AccountPasswordIndex">密码修改</a>
                        </li>
                        <li>
                            <a href="/Home-Account/PayPasswordIndex">支付密码设置</a>
                        </li>
                    </ul>
                </li>
                <li id="account"  style="display: none">
                    <h5>
                        <span><i class="wp-icon"></i>账户管理</span>
                    </h5>
                    <ul>
                        <li >
                            <a href="/Home-Recharge/Index">充值功能</a>
                        </li>

                        <li id="withdrawAction" >
                            <a href="javascript:;"  onclick="goToBank()">提现功能</a>
                        </li>
                    </ul>
                </li>

                <li class="active" style="display: none;">
                    <h5>
                        <span><i class="wp-icon"></i>游戏设置</span>
                    </h5>
                    <ul>
                        <li>
                            <a href="/Home-Account/SetOdds?game=bjpk10">倍率设置</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>

<script src="/Public/Home/js/checkToken.js"></script>
<script>
//判断是否绑定银行卡
    function goToBank() {
    //dph 2017-6-30；
        console.log(1);
    apiAjax('/api-selfCenter/checkBank',{},function(data) {
            if(data.status!=1){
                alert('请先绑定银行卡号');
            }else {
                location.href="/Home-Account/AccountGetCash";
            }
    });
}

//$(function () {
//    setInterval(function(){
//        apiAjax('/Api-Other/Message',{},function (data) {
//            if(data.status==1 && data.data>0){
//                $('#msg').text(data.data);
//            }else {
//                $('#msg').css('display','none');
//            }
//        });
//    },10000);
//});

// apiAjax('/Api-Account/getAccount',{},function(data) {
//     console.log(data);
//     console.log(data['data']['status']);
//     if (data['data']['status'] == 1){
//         $('#account').show();
//         $('#secure').show();
//         $('#acc').show();
//         $('#acc_a').show();
//     }
// });
function cbUser() {
    if(kaiYou.User.status==1){
        $('#account').show();
        $('#secure').show();
        $('#acc').show();
        $('#acc_a').show();
    }
 }

</script>
{/literal}