﻿<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="Keywords" content="" />
    <meta name="description" content="" />
    <link href="/Content/public/css/public.css" rel="stylesheet" />
    <link rel="stylesheet" href="/Content/public/icon/iconfont.css">
    <link href="/Content/public/css/common.css" rel="stylesheet" />
    <title>template</title>
    <style>
        .layui-layer-iframe {
            overflow-y: inherit;
        }
        
        .not_logged {
            font-size: 16px;
            color: #333;
            margin-top: 14px;
        }
        
        .not_logged_tip {
            color: #999999;
            font-size: 14px;
            margin-bottom: 10px;
            line-height: 32px;
        }
        
        .custom-class .layui-layer-title {
            display: none;
        }
        
        .custom-class .layui-layer-btn0 {
            border-color: #D22222 !important;
            background-color: #D22222 !important;
        }
        
        .slider {
            transform: translateY(-44px);
            transition: all 0.8s;
            /* animation: mymover 1s infinite; */
        }
        
        @keyframes mymover {
            from {
                transform: translateY(0)
            }
            to {
                transform: translateY(-44px)
            }
        }
        /* .salogoin:hover{
        transform: scale(1.1);
        transition: transform 0.3s;
      } */
        
        .waves {
            position: relative;
            cursor: pointer;
            display: inline-block;
            overflow: hidden;
            text-align: center;
            -webkit-tap-highlight-color: transparent;
            z-index: 1;
        }
        
        .waves .waves-animation {
            position: absolute;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            opacity: 0;
            background: rgba(255, 255, 255, 0.4);
            transition: all 0.7s ease-out;
            transition-property: transform, opacity, -webkit-transform;
            -webkit-transform: scale(0);
            transform: scale(0);
            pointer-events: none
        }
        /* #btnClickLianXiKeFu,.suer_falrig,.top-rt-list li{
          color:rgba(255,255,255,0.7);
        }
        #btnClickLianXiKeFu:hover,.suer_falrig:hover,.top-rt-list li:hover{
          color:rgba(255, 255, 255, 1);
        } */
        
        .closeTip-class .layui-layer-btn0 {
            border-color: #dedede !important;
            background-color: #f1f1f1 !important;
            color: #333 !important;
            float: left;
        }
        
        .closeTip-class .layui-layer-content {
            text-align: center;
        }
        
        .closeTip-class .layui-layer-btn {
            overflow: hidden;
            padding-left: 24px;
            padding-right: 24px;
        }
        
        .closeTip-class .layui-layer-ico {
            background: url(/Content/public/icons/close.png) no-repeat;
            background-size: 100% 100%;
            background-position: 0 0 !important;
        }
        
        .sub-left-list .recommond-reward::before {
            top: 7px;
            background: url(/Content/public/icons/recommond-reward.png) no-repeat 0 0;
        }
        
        .sub-left-list .order-reward::before {
            background: url(/Content/public/icons/order-reward.png) no-repeat 0 0;
        }
        
        .sub-left-list li:hover .recommond-reward::before {
            top: 7px;
            background: url(/Content/public/icons/recommond-reward-1.png) no-repeat 0 0;
        }
        
        .sub-left-list #linkToOrderReward:hover .order-reward::before {
            background: url(/Content/public/icons/order-reward-1.png) no-repeat 0 0;
        }
        
        .activity-title-img {
            position: absolute;
            top: 12px;
            right: 0;
        }
        /* 下单奖励弹框 */
        
        .order-reward-modal {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 99;
        }
        
        .order-reward-modal .order-reward-body {
            width: 413px;
            height: 468px;
            position: fixed;
            top: 50%;
            left: 50%;
            margin-top: -234px;
            margin-left: -206.5px;
            background: url(/Content/public/img/order-reward-bg.png) no-repeat;
            background-size: 100% 100%;
        }
        
        .order-reward-modal .order-reward-title {
            font-size: 27px;
            text-align: center;
            color: #ffffff;
            margin: 210px 0 25px;
        }
        
        .order-reward-modal .reward-box {
            width: 230px;
            height: 62px;
            margin: 0 auto;
            background: url(/Content/public/img/order-reward-box.png) no-repeat;
            background-size: 100% 100%;
        }
        
        .reward-box-left,
        .reward-box-right {
            display: inline-block;
            height: 62px;
            vertical-align: top;
        }
        
        .reward-box-left {
            width: 74px;
            line-height: 62px;
            text-align: center;
        }
        
        .reward-box-right {
            text-align: center;
            width: 150px;
        }
        
        .order-reward-btn {
            display: block;
            width: 224px;
            height: 42px;
            line-height: 42px;
            background: #FAEA47;
            border-radius: 4px;
            color: #C61417;
            font-size: 21px;
            text-align: center;
            margin: 0 auto;
            cursor: pointer;
        }
        
        .close-reward-modal {
            position: absolute;
            right: 6px;
            top: 5px;
            width: 41px;
            height: 42px;
            background: url(/Content/public/icons/close-reward-modal.png) no-repeat;
            background-size: 100% 100%;
            cursor: pointer;
        }
        /* 微信登录二维码 */
        /*.wx-code{
      position: absolute;
      top:0;
      right: 0;
      width: 0;
      height: 396px;
      border-radius: 8px;
      background-color: #ffffff;
      z-index: 10;  
      overflow: hidden;  
      transition: width 0.8s; 
      -webkit-transform: width 0.8s;        
      -moz-transform:width 0.8s;        
      -ms-transform: width 0.8s;           
      -o-transform: width 0.8s; 
    }
    .wx-code.show{
      width: 370px;
    }*/
        
        .wx-code.show {
            display: block !important;
            margin-top: -30px;
        }
        
        .form-box .loginBox-input {
            width: 320px;
            height: 48px;
        }
        
        .btn_login {
            width: 320px;
            height: 50px;
            line-height: 44px;
            font-size: 21px;
            color: #fff;
            margin-top: 8px;
        }
        
        .form-box .plat-o:after {
            left: 0;
            width: 320px;
            background: #E4E4E4;
        }
        
        .disabled {
            background-color: #F2F2F2 !important;
            border-color: #F2F2F2 !important;
            color: #666666 !important;
        }
        
        .form-box .btn-login {
            width: 320px;
            height: 50px;
            line-height: 44px;
            font-size: 21px;
            color: #fff;
            margin-top: 3px;
            border-radius: 0;
        }
        
        .layui-layer.layui-layer-iframe {
            overflow: hidden;
            border-radius: 6px;
        }
        
        .loading-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #fff;
            z-index: 99;
        }
        
        .loading-modal-body {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
        }
        
        .guide-modal {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 20;
            display: none;
        }
        
        #LAY_layuipro .progress {
            height: 20px;
            background: #EAEAEA;
            border-left: 1px solid transparent;
            border-right: 1px solid transparent;
            border-radius: 10px;
        }
        
        #LAY_layuipro .progress>span {
            position: relative;
            float: left;
            margin: 0 -1px;
            min-width: 30px;
            height: 18px;
            line-height: 16px;
            text-align: right;
            background: #cccccc;
            border: 1px solid;
            border-color: #bfbfbf #b3b3b3 #9e9e9e;
            border-radius: 10px;
            background-image: -webkit-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
            background-image: -moz-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
            background-image: -o-linear-gradient(top, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
            background-image: linear-gradient(to bottom, #f0f0f0 0%, #dbdbdb 70%, #cccccc 100%);
            -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
            box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        #LAY_layuipro .progress>span:before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            height: 18px;
            border-radius: 10px;
        }
        
        #LAY_layuipro .progress .blue {
            background: #00A8F7;
            border-color: #00A8F7;
            /* background-image: -webkit-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
      background-image: -moz-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
      background-image: -o-linear-gradient(top, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%);
      background-image: linear-gradient(to bottom, #aed5ed 0%, #7bbbe2 70%, #5aaadb 100%); */
        }
        
        .alertMsg-class .layui-layer-content {
            /* text-align: center; */
            color: #4F5456;
        }
        
        .alertMsg-class .layui-layer-title {
            /* border-bottom: 1px solid #fff; */
            font-size: 14px;
            /* color: #fff; */
            /* background-color: #fff; */
        }
        .zuhaowan-alert {
           border-radius: 10px !important;
           overflow: hidden;
           text-align: center;
        }
        .zuhaowan-alert .title{
            font-size: 28px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #000000;
            line-height: 25px;
            padding: 14px 0 23px;
        }
        .zuhaowan-alert .zuhaowan-content{
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333333;
            line-height: 25px;
        }
        .zuhaowan-alert .close{
            position: absolute;
            top: 16px;
            right: 16px;
            cursor: pointer;
        }
        .zuhaowan-alert .zuhaowan button{
            width: 338px;
            height: 54px;
            line-height: 54px;
            background: #2F80EC;
            border-radius: 27px;
            cursor: pointer;
            font-size: 24px;
            color: #FFFFFF;
            border: 0;
            outline: none;
            margin-top: 28px;
        }
        .zuhaowan-alert .zuhaowan button:disabled{
            cursor: not-allowed;
            background: #CCCCCC;
        }
        .startGame-modal {
            border-radius: 20px !important;
            overflow: hidden;
        }
        .startGame-modal .text-body{
            width: 700px;
            height: 330px;
            background: url('/Content/public/img/modal_bg.png');
            background-size: 100%;
            padding: 82px 34px 0;
            font-size: 18px;
            line-height: 38px;
            color: #fff;
        }
        .startGame-modal .progress {
            display: inline-block;
            width: 627px;
            height: 12px;
            background: #DADADA;
            border-radius: 6px;
            border-left: 1px solid transparent;
            border-right: 1px solid transparent;
            position: relative;
        }
        .startGame-modal .progress-box{
            font-size: 16px;
            font-family: Microsoft YaHei;
            color: #333333;
            line-height: 12px;
            padding: 20px 0;
        }
        .startGame-modal .progress>div{
            height: 12px;
            background: #00A8F8;
            border-radius: 6px;
            position: absolute;
            top: 0;
            left: 0;
        }
        .startGame-modal .progressSize{
            margin-left: 12px;            
        }
        .startGame-modal .progress .blue {
            transition: width 0.3s;
        }
        .startGame-modal .start-tip-text{
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333333;
            line-height: 26px;
        }
    </style>
</head>

<body>
    <!-- 登录弹框 -->
    <!-- <div id="loginBox" class="form-box">
        <div class="box-content box-utouur" style="width: 380px;height:auto;min-height:480px;background:url('/Content/public/img/bj.png') no-repeat;background-size: 100%;background-color:#fff;border-radius:6px;">
            <div class="box-content-header" style="border-bottom: none;padding-bottom: 0;margin-bottom:24px;">
                <div style="font-size:27px;line-height:49px;color:#000000;padding-top: 26px;"><img src="../../Content/public/img/logo.png" alt=""></div>
                <img onclick="closeLoginModal()" src="/Content/img/close-2.png" class="box-close" style="width: 12px;height:12px;z-index: 11;top:10px;right: 10px;" />
            </div>
            <div class="box-content-body" id="loginBox_pone">
                <form id="login-form">
                    <div>
                        <div class="row" style="margin-bottom:20px">
                            <label>
                <input id="loginPhone" type="text" name="phone" class="loginBox-input" placeholder="请输入手机号" />
                <img src="../../Content/img/phone-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                        </div>
                        <div class="row" style="white-space: nowrap;margin-bottom:20px;">
                            <label>
                <input id="loginPhoneCode" type="text" style="width:190px;height: 48px;" name="phoneCode" class="loginBox_input" maxlength="6" placeholder="请输入验证码" />               
                <img src="../../Content/img/pai-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                            <button type="button" style="width: 114px;height: 48px;box-sizing: border-box;transform: translateY(1px);font-size: 14px;float: right;" onclick="loginGetVerifyCode(this)" class="box_msg" id="login_msg">获取验证码</button>
                        </div>
                        <div class="row">
                            <button onclick="Ponelogin()" type="button" class="btn btn_login">立即登录</button>
                        </div>
                        <p style="overflow: hidden;padding: 10px 0 0;">
                            <span style="font-size:16px;color:#999;cursor:pointer;float: left;" onclick="closeWxQRcode();">账号密码登录</span>
                            <span style="font-size:16px;color:#D22222;cursor:pointer;float: right;" onclick="ShowBox(1)">用户注册</span>
                            <span style="font-size:16px;cursor:pointer;float: right;" onclick="ShowBox(2)">忘记密码？</span>
                        </p>
                    </div>
                    <div class="box-content-footer">
                        <p class="plat-o" style="margin: 24px 0 12px;"><span style="color:#999;font-size: 16px;">第三方登录</span></p>
                        
                        <div>
                            <a href="javascript:;" class="wxlogin-item" style="margin-right: 40px;display: none;">
                                <img style="width: 42px;height: 42px;" onclick="WXLogin();_czc.push(['_trackEvent', '微信快捷登录', '点击量', '微信图标']);" src="/Content/public/img/icon-wx-2.png" alt="" />
                                <p style="font-size: 16px;color:#999999;">微信</p>
                            </a>
                            <a href="javascript:;" style="display: inline-block;">
                                <img style="width: 42px;height: 42px;" onclick="QQLogin()" src="/Content/public/img/icon-qq-2.png" alt="" />
                                <p style="font-size: 16px;color:#999999;">QQ</p>
                            </a>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box-content-body" id="loginBox_over" style="display:none">
                <form id="loginOver-form">
                    <div>
                        <div class="row" style="margin-bottom:20px">
                            <label>
                <input id="loginPhoneOver" type="text" class="loginBox-input" placeholder="请输入手机号" />               
                <img src="../../Content/img/phone-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                        </div>
                        <div class="row" style="margin-bottom:20px">
                            <label>
                <input id="loginpasswordOver" type="password" class="loginBox-input" onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;" placeholder="请输入密码" />            
                <img src="../../Content/img/password-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                        </div>
                        <div class="row" style="display: none;margin-bottom:20px;" id="imgVerificationCodeBox">
                            <label>
                <input id="loginVerificationCodeOver" type="text" class="loginBox-input" placeholder="请输入图形验证码" style="width: 213px;padding-left: 40px;height: 48px;" />                
                <img src="../../Content/img/pai-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                            <div style="display: inline-block;width:98px;background-color: #bdbdbd;vertical-align: top;height: 48px;cursor: pointer;" onclick="getImgVerifyCode()">
                                <img src="" id="imgVerificationCode" style="width: 100%;height: 100%;" />
                            </div>
                        </div>
                        <div class="row">
                            <button onclick="loginOver()" type="button" class="btn btn_login">立即登录</button>
                        </div>
                        <p style="overflow: hidden;padding: 10px 0 0;">
                            <span style="font-size:16px;color:#999;cursor:pointer;float: left;" onclick="phoneLogin();">手机号快捷登录</span>
                            <span style="font-size:16px;color:#D22222;cursor:pointer;float: right;" onclick="ShowBox(1)">用户注册</span>
                            <span style="font-size:16px;cursor:pointer;float: right;" onclick="ShowBox(2)">忘记密码？</span>
                        </p>
                    </div>
                    <div class="box-content-footer">
                        <p class="plat-o" style="margin: 24px 0 12px;"><span style="color:#999;font-size: 16px;">第三方登录</span></p>
                       
                        <div>
                            <a href="javascript:;" class="wxlogin-item" style="margin-right: 40px;display: none;">
                                <img style="width: 42px;height: 42px;" onclick="WXLogin();_czc.push(['_trackEvent', '微信快捷登录', '点击量', '微信图标']);" src="/Content/public/img/icon-wx-2.png" alt="" />
                                <p style="font-size: 16px;color:#999999;">微信</p>
                            </a>
                            <a href="javascript:;" style="display: inline-block;">
                                <img style="width: 42px;height: 42px;" onclick="QQLogin()" src="/Content/public/img/icon-qq-2.png" alt="" />
                                <p style="font-size: 16px;color:#999999;">QQ</p>
                            </a>
                        </div>
                    </div>
                </form>
            </div>
            <div class="wx-code" style="display:none">
                <div style="position: absolute;top: 10px;left: 11px;font-size: 14px;color: #666;cursor: pointer;" onclick="closeWxQRcode();"><img src="/Content/public/img/back-icon.png" style="margin-right: 5px;" />其他方式登录</div>
                <div style="text-align: center;">
                    <p style="white-space: nowrap;margin: 18px 0 5px;font-size: 14px;">打开微信扫码登录</p>
                    <img id="wxQRcode" style="width: 214.5px;height: 214.5px;" />
                    <p id="wx-toast" style="display:none;position: absolute;top:194px;left:92px;width:194px;height:37px;overflow:hidden;background: rgba(255,255,255,0.8);line-height: 37px;font-size: 19px;color: #D22222;">打开微信扫码登录</p>
                    <p style="white-space: nowrap;padding: 10px 0 30px;">微信扫码点击“<span class="color-red">关注公众号</span>”后自动登录</p>
                    <p style="overflow: hidden;padding: 0 24px;">
                        <span style="color:#666;cursor:pointer;float: left;" onclick="phoneLogin();">手机号快捷登录</span>
                        <span style="color:#666;cursor:pointer;float: right;">             
                        <span onclick="ShowBox(2)">忘记密码？</span>
                        <span class="color-red" onclick="ShowBox(1);">用户注册</span>
                        </span>
                    </p>
                </div>
                <div style="position: absolute;top:112px;left:92px;width:194px;height:194px;overflow:hidden;background: rgba(255,255,255,0.8);cursor:pointer;display: none;" class="expressTime-mask" onclick="reloadQRcode(this)">
                    <p style="color:#C73030;font-size: 14px;text-align: center;margin-top: 75px;white-space: nowrap;background-color: #fff;padding: 10px 0;">二维码已过期，请点击刷新</p>
                </div>
            </div>
        </div>
    </div> -->
    <div id="loginBox2" class="login-modal">
        <div class="login-modal-body">
            <div style="position: absolute;top:14px;right: 14px;">
                <img onclick="closeLoginModal()" src="/Content/img/close-2.png" style="width: 12px;height: 12px;vertical-align: top;cursor: pointer;">
            </div>
            <div class="t-center">
                <img src="/Content/public/img/index/LOGO.png" alt="" style="width: 82px;heigh: 82px;">
                <div class="logo-name" style="margin-bottom: 6px;font-family: FZSKJW;line-height: 40px;">GG租号</div>
            </div>
            <div class="t-center wx-login">
                <div style="position: relative;width: 188px;height: 188px;margin:0 auto;">
                    <img id="wxQRcode" style="width: 188px;height: 188px;" />
                    <div style="position: absolute;top:0;left:0;width:188px;height:188px;overflow:hidden;background: rgba(255,255,255,0.8);cursor:pointer;display: none;" class="expressTime-mask" onclick="reloadQRcode(this)">
                        <p style="color:#C73030;font-size: 14px;text-align: center;margin-top: 75px;white-space: nowrap;background-color: #fff;padding: 10px 0;">二维码已过期，请点击刷新</p>
                    </div>
                </div>
                <div class="font16 color-333" style="padding: 20px 0 30px;">微信扫码点击“关注公众号”后自动登录</div>
                <div class="other-loginWay-btn" onclick="phoneLogin();">返回其他方式登录</div>
            </div>
            <div id="login-phone-over" style="display: none;">
                <div class="tab" style="margin-bottom: 13px;">
                    <span class="cursor-pointer active">登录</span>
                    <span class="cursor-pointer" onclick="ShowBox(1)">注册</span>
                </div>
                <div id="loginBox_pone">
                    <form id="login-form">
                        <div class="input-section">
                            <img src="/Content/public/img/index/phone.png" alt="">
                            <input id="loginPhone" type="text" name="phone" placeholder="请输入手机号">
                        </div>
                        <div class="input-section input-code">
                            <img src="/Content/public/img/index/code.png" alt="">
                            <input id="loginPhoneCode" type="text" name="phoneCode" style="width: 180px;" placeholder="请输入验证码">
                            <button class="getCodeBtn" type="button" onclick="loginGetVerifyCode(this)" id="login_msg">获取验证码</button>
                        </div>
                        <button class="login-btn" type="button" onclick="Ponelogin()">立即登录</button>
                    </form>
                </div>
                <div style="display: none;" id="loginBox_over">
                    <form id="loginOver-form">
                        <div class="input-section">
                            <img src="/Content/public/img/index/phone.png" alt="">
                            <input id="loginPhoneOver" type="text" name="phone" placeholder="请输入手机号">
                        </div>
                        <div class="input-section input-password">
                            <img src="/Content/public/img/index/password.png" alt="">
                            <input id="loginpasswordOver" type="password" placeholder="请输入密码">
                        </div>
                        <div class="input-section input-code" id="imgVerificationCodeBox" style="display: none;">
                            <img src="/Content/public/img/index/code.png" alt="">
                            <input id="loginVerificationCodeOver" type="text" style="width: 215px;" placeholder="请输入图形验证码">
                            <div style="display: inline-block;width:98px;background-color: #bdbdbd;vertical-align: top;height: 46px;cursor: pointer;" onclick="getImgVerifyCode()">
                                <img src="" id="imgVerificationCode" style="width: 100%;height: 100%;" />
                            </div>
                        </div>
                        <button class="login-btn" type="button" onclick="loginOver()">立即登录</button>
                    </form>
                </div>
                <div class="font14 color-666" style="padding: 12px 0;">
                    <span class="cursor-pointer password-login" onclick="closeWxQRcode();">账号密码登录</span>
                    <span class="cursor-pointer code-login" onclick="phoneLogin();" style="display: none;">验证码登录</span>
                    <span class="cursor-pointer rt" onclick="ShowBox(2)">忘记密码？</span>
                </div>
                <div class="login-modal-footer">
                    <div class="plat-o"><span class="color-333 font14">第三方登录</span></div>
                    <!-- 微信登录 -->
                    <div class="other-login">
                        <span class="cursor-pointer wx" style="margin-right: 14px;">
                            <img style="width: 36px;height: 42px;" onclick="WXLogin();_czc.push(['_trackEvent', '微信快捷登录', '点击量', '微信图标']);" src="/Content/public/img/index/wx.png" alt="" />
                        </span>
                        <span style="margin-left: 14px;display:none;" class="cursor-pointer qq">
                            <img style="width: 36px;height: 36px;" onclick="QQLogin()" src="/Content/public/img/index/qq.png" alt="" />
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 注册弹框 -->
    <!-- <div id="RegBox" class="form-box ">
        <div class="box-content box-utouur" style="width: 380px;height:480px;background:url('/Content/public/img/bj.png') no-repeat;background-size: 100%;background-color:#fff;border-radius:6px;">
            <div class="box-content-header" style="border-bottom: none;margin-bottom:24px;">
                <div style="font-size:27px;line-height:49px;color:#000000;padding-top: 26px;"><img src="../../Content/public/img/logo.png" alt=""></div>
                <img onclick="closeRegisterModal()" src="/Content/img/close-2.png" class="box-close" style="width: 12px;height:12px;z-index: 11;top:10px;right: 10px;" />
            </div>
            <form id="form1" url="Login/RegUser">
                <div class="box-content-body">
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="text" id="registerPhone" name="phone" class="loginBox-input" placeholder="请输入手机号"/>
              <img src="../../Content/img/phone-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                    </div>
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="text" name="phoneCode" class="loginBox-input" placeholder="请输入验证码" style="width: 190px;padding-left: 40px;height: 48px;margin-right: 10px;" />              
              <img src="../../Content/img/pai-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                        <button type="button" style="width: 114px;height: 48px;float: right;font-size: 14px;" onclick="GetVerifyCode(this)" class="box_msg" id="register_msg">获取验证码</button>
                    </div>
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="password" name="pass" class="loginBox-input" placeholder="请输入密码" onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>              
              <img src="../../Content/img/password-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                    </div>
                    <div class="row">
                        <button type="button" onclick="Submit(this,'reg')" class="btn btn-login" id="register_btn">立即注册</button>
                    </div>
                    <p style="overflow: hidden;padding: 16px 0;text-align: center;">
                        <span style="font-size:16px;color:#D22222;cursor:pointer;" onclick="closeWxQRcode();ShowBox(0);">返回登录</span>
                    </p>
                </div>
                <div class="box-content-footer">
                    <label for="proto" class="proto" style="font-size: 16px;color:#999;white-space:nowrap;">
                        <input name="agree" type="checkbox" id="proto" checked />
                        注册账户表示同意并遵守<a href="javascript:;" id="xieyi" class="color-red">《GG租号协议》</a>
                    </label>
                </div>
            </form>
        </div>
    </div> -->
    <div id="RegBox2" class="login-modal">
        <div class="login-modal-body">
            <div style="position: absolute;top:14px;right: 14px;">
                <img onclick="closeLoginModal()" src="/Content/img/close-2.png" style="width: 12px;height: 12px;vertical-align: top;cursor: pointer;">
            </div>
            <div class="t-center">
                <img src="/Content/public/img/index/LOGO.png" alt="" style="width: 82px;heigh: 82px;">
                <div class="logo-name" style="margin-bottom: 6px;font-family: FZSKJW;line-height: 40px;">GG租号</div>
            </div>
            <div>
                <div class="tab" style="margin-bottom: 13px;">
                    <span class="cursor-pointer" onclick="closeRegisterModal()">登录</span>
                    <span class="cursor-pointer active">注册</span>
                </div>
                <form id="form1" url="Login/RegUser">
                    <div class="input-section">
                        <img src="/Content/public/img/index/phone.png">
                        <input type="text" placeholder="请输入手机号" id="registerPhone" name="phone">
                    </div>
                    <div class="input-section">
                        <img src="/Content/public/img/index/code.png" alt="">
                        <input type="text" style="width: 180px;" placeholder="请输入验证码" name="phoneCode">
                        <button class="getCodeBtn" type="button" onclick="GetVerifyCode(this)" id="register_msg">获取验证码</button>
                    </div>
                    <div class="input-section">
                        <img src="/Content/public/img/index/password.png" alt="">
                        <input type="password" placeholder="请输入密码" name="pass" onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;">
                    </div>
                    <button class="login-btn" type="button" onclick="Submit(this,'reg')">立即注册</button>
                    <div class="login-modal-footer" style="padding-top: 20px;">
                        <div style="position: relative;" class="t-left">
                            <input class="custom-input" type="checkbox" name="agree" id="proto" checked/>
                            <label class="label" for="proto"></label >
                        <label for="proto" class="color-666 font14">注册账户表示同意并遵守</label>
                            <a href="javascript:void(0);" id="xieyi" class="color-666 font14">《GG租号协议》</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- 忘记密码 -->
    <!-- <div id="findPwdBox" class="form-box ">
        <div class="box-content box-utouur" style="width: 380px;height:480px;background:url('/Content/public/img/bj.png') no-repeat;background-size: 100%;background-color:#fff;border-radius:6px;">
            <div style="position: absolute;top: 10px;left: 11px;font-size: 14px;color: #666;cursor: pointer;" onclick="closeWxQRcode();ShowBox(0);"><img src="/Content/public/img/back-icon.png" style="margin-right: 5px;" />返回</div>
            <div class="box-content-header" style="border-bottom: none;margin-bottom:24px;">
                <div style="font-size:27px;line-height:49px;color:#000000;padding-top: 26px;"><img src="../../Content/public/img/logo.png" alt=""></div>
                <img onclick="closefindPwdModal()" src="/Content/img/close-2.png" class="box-close" style="width: 12px;height:12px;z-index: 11;top:10px;right: 10px;" />
            </div>
            <form id="form1" url="Login/FindPass">
                <div class="box-content-body">
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="text" id="registerPhone" name="phone" class="loginBox-input" placeholder="请输入手机号"/>
            
              <img src="../../Content/img/phone-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                    </div>
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="text" name="phoneCode" class="loginBox-input" placeholder="请输入验证码" style="width: 190px;padding-left: 40px;height: 48px;margin-right: 10px;" />
             
              <img src="../../Content/img/pai-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                        <button type="button" style="width: 114px;height: 48px;float: right;font-size: 14px;" onclick="GetFindPassVerifyCode(this)" class="box_msg" id="register_msg">获取验证码</button>
                    </div>
                    <div class="row" style="margin-bottom:20px;">
                        <label>
              <input type="text" name="pass" class="loginBox-input" placeholder="请输入新密码" onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>
            
              <img src="../../Content/img/password-2.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                    </div>
                    <div class="row">
                        <button type="button" onclick="Submit(this,'findPwd')" class="btn btn-login" id="register_btn">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div> -->
    <div id="findPwdBox2" class="login-modal">
        <div class="login-modal-body">
            <div style="position: absolute;top:14px;right: 14px;">
                <img onclick="closeLoginModal()" src="/Content/img/close-2.png" style="width: 12px;height: 12px;vertical-align: top;cursor: pointer;">
            </div>
            <div style="position: absolute;top: 10px;left: 11px;font-size: 14px;color: #666;cursor: pointer;" onclick="closeWxQRcode();ShowBox(0);"><img src="/Content/public/img/back-icon.png" style="margin-right: 5px;" />返回</div>
            <div class="t-center">
                <img src="/Content/public/img/index/LOGO.png" alt="" style="width: 82px;heigh: 82px;">
                <div class="logo-name" style="margin-bottom: 6px;font-family: FZSKJW;line-height: 40px;">GG租号</div>
            </div>
            <div>
                <div class="tab" style="margin-bottom: 13px;">
                    <span class="active">找回密码</span>
                </div>
                <form id="form1" url="Login/FindPass">
                    <div class="input-section">
                        <img src="/Content/public/img/index/phone.png" alt="">
                        <input type="text" placeholder="请输入手机号" name="phone">
                    </div>
                    <div class="input-section">
                        <img src="/Content/public/img/index/code.png" alt="">
                        <input type="text" style="width: 180px;" placeholder="请输入验证码" name="phoneCode">
                        <button class="getCodeBtn" type="button" onclick="GetFindPassVerifyCode(this)">获取验证码</button>
                    </div>
                    <div class="input-section">
                        <img src="/Content/public/img/index/password.png" alt="">
                        <input type="text" placeholder="请设置新密码" name="pass" onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;">
                    </div>
                    <button class="login-btn" style="margin-top: 24px;" type="button" onclick="Submit(this,'findPwd')">提交</button>
                </form>
            </div>
        </div>
    </div>
    <!-- 绑定手机 -->
    <div id="bindPhone" class="form-box">
        <div class="box-content box-utouur" style="height: 360px;">
            <div class="box-content-header" style="border-bottom: none">
                <div class="box-content-ul clearfix">
                    <div class="box-content-li active" style="width: 100%;">绑定手机号</div>
                </div>
                <img onclick="closeBindPhoneModal()" src="/Content/img/close.png" class="box-close" style="width: 38px;" />
            </div>
            <p>为了保证您的<span class="color-red">资金及账号正常使用</span>请绑定手机号</p>
            <!-- url="login/BindWX" -->
            <form id="bindPhone-form" url="Login/WechatBindUser">
                <div class="box-content-body">
                    <div class="row" style="margin: 10px 0 25px 0;">
                        <label>
              <input type="text" id="registerPhone2" name="userPhone" class="loginBox-input" placeholder="请输入手机号" />              
              <img src="../../Content/img/phone.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                    </div>
                    <div class="row" style="margin: 25px 0;">
                        <label>
              <input type="text" name="phoneValiCode" class="loginBox-input" placeholder="请输入验证码" style="width: 206px;padding-left: 40px;height: 40px;" />              
              <img src="../../Content/img/pai.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
            </label>
                        <button type="button" style="width: 97px;" onclick="GetBindVerifyCode(this)" class="box_msg" id="register_msg2">获取验证码</button>
                    </div>
                    <div class="row" style="margin: 25px 0;">
                        <button type="button" class="btn btn-login" id="bindPhone_btn">立即提交</button>
                    </div>
                </div>
                <div class="box-content-footer" style="margin-top: 30px;">
                    <label for="proto2" class="proto">
            <input name="agree" type="checkbox" id="proto2" checked />
            注册帐号即表示同意并遵守 <a href="javascript:;" id="xieyi2" class="color-red">《GG租号协议》</a>
          </label>
                </div>
            </form>
        </div>
    </div>
    <!-- 实名认证弹框 -->
    <div id="authentication" class="form-box">
        <div class="box-content box-utouur" style="width: 380px;height:auto;min-height:400px;background:url('/Content/public/img/bj.png') no-repeat;background-size: 100%;background-color:#fff;border-radius:6px;">
            <div class="box-content-header" style="border-bottom: none;padding-bottom: 0;margin-bottom:24px;">
                <div style="font-size:27px;line-height:49px;color:#000000;padding-top: 26px;">实名认证</div>
                <img onclick="closeAuthModal()" src="/Content/img/close-2.png" class="box-close" style="width: 12px;height:12px;z-index: 11;top:10px;right: 10px;" />
            </div>
            <div class="box-content-body" id="loginBox_pone">
                <form id="login-form">
                    <div>
                        <div class="row" style="margin-bottom:20px">
                            <label>
                <input id="loginPhone" type="text" name="realName" class="loginBox-input" placeholder="请输入真实姓名" />               
                <img src="../../Content/img/pai.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                            <p style="color:#999;font-size:12px;text-align: left;padding-top: 8px;">例如：张三</p>
                        </div>
                        <div class="row" style="margin-bottom:20px">
                            <label>
                <input id="loginPhone" type="text" name="certificate" class="loginBox-input" placeholder="请输入身份证号码" />               
                <img src="../../Content/img/pai.png" class="icon iconfont icon-shouji" style="width:auto;height:auto;margin-top: 12px;margin-left: 12px;"/>
              </label>
                            <p style="color:#999;font-size:12px;text-align: left;padding-top: 8px;">例如：430281198912043311</p>
                        </div>
                        <div class="row">
                            <button id="RealNameAuthBtn" type="button" class="btn btn_login">立即登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- 充值协议弹框 -->
    <div id="protocalModal" class="recharge_xie hide">
        <div class="content protocal">
            <div class="content-header">
                <b>充值协议</b>
                <img src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA7AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAHBQUFBQUHBQUHCQYFBgkLCAcHCAsNCgoLCgoNEAwMDAwMDBAMDg8QDw4MFBQVFRQUHRwcHB0gICAgICAgICAgAQcHBw0MDRkQEBkbFhIWGyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCAAOAA0DAREAAhEBAxEB/8QAXwABAQEAAAAAAAAAAAAAAAAAAQQHAQEAAAAAAAAAAAAAAAAAAAAAEAACAQIFAgcBAAAAAAAAAAABAgMREiExEwQFADJBcSJCUhQVBhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A3jeb2TgJJN1vJGn4idi1x9UkEjYhAPdG3h8fLIEHnBA3IVQzM6yDjyVsWBQ1YxLlqNdcWyqAMsegTHAvK6nLTI+5cSfQhZSIY4R3ULC1pWXuxrTLDoJRt9j+czndyH+cMiyJFpvhGLg0Zal2gWtYHKmFbeg//9k="
                    class="close" onclick="$('#protocalModal').addClass('hide')" />
            </div>
            <div class="content-body self-scroll-bar">
                <p>
                    尊敬的用户，为保障您的合法权益，请您在充值前仔细阅读本规则，以免造成误解。当您点击“立即充值”按钮后，即视为您已阅读、理解本协议，并同意按本协议的规定参与充值，否则您无权使用GG提供的充值服务。您继续使用GG的服务即视为您已经阅读并同意接受本协议的约束。 本团队向您提供的用于在GG租号平台上进行相关消费的功能，您可以通过第三方支付充值的方式使用各项产品或服务，同时您应根据自己的实际需求充值相应的金额，以免造成不必要的误会。 未成年用户应在监护人或法定代理人的陪同下阅读本协议。
                </p>

                <p>
                    <b>一、充值提现说明</b> <br /> 1.充值余额有效期 充值金额有期限为自充值日起至用完即止<br /> 2.余额使用规则 充值余额可用于支付GG订单订单费用，也可用于GG申请保证金支付。 <br /> 3.充值金额提现 通过第三方充值后，充值金额不可提现，仅可用作平台内消费。 <br /> GG租号平台保留对充值行为规则进行单方面变更、调整、中止或终止的权利。您同意无条件接受对上述充值规则的变更、调整、中止或终止，GG租号平台开展上述行动后将以于GG租号平台公布的方式通知，并自公布之日起自动生效，而无需另行单独通知您，也不就该等行动给您造成的任何损失承担任何责任。
                </p>

                <p>
                    <b>二、附加说明</b>
                    <br /> 4.您明白您在本平台充值的金额不会产生任何利息。
                    <br /> 5.您对您所充值的产品享有合法权益，保证不会侵犯任何第三方的合法权益，保证不会违反国家相关法律法规的规定。例如，您是您充值使用的手机号码，微信账户或银联账户的合法使用人或已取得了其合法使用人的授权。
                    <br /> 6.您理解并同意，GG的服务是按照现有技术和条件所能达到的现状提供的。GG会尽最大努力向您提供服务，确保服务的连贯性和安全性；但GG不能随时预见和防范法律、技术以及其他风险，包括但不限于不可抗力、病毒、木马、黑客攻击、系统不稳定、第三方服务瑕疵、政府行为等原因可能导致的服务中断、数据丢失以及其他的损失和风险。
                    <br /> 7.您在使用本服务的过程中可能需要下载软件，对于这些软件，GG给予您一项个人的、不可转让及非排他性的许可。您仅可为访问或使用本服务的目的而使用这些软件。
                    <br /> 8.为了改善用户体验、保证服务的安全性及产品功能的一致性，GG可能会对软件进行更新。您应该将相关软件更新到最新版本，否则GG并不保证其能正常使用。
                    <br /> 9.您理解并同意：本平台的某些功能可能会让第三方知晓您的信息，例如：您通过使用本服务由第三方为您提交的手机号码进行充值，第三方可以知悉用户提交的手机号码或微信账户等信息。
                    <br /> 10.GG租号平台保留修改或增补本协议内容的权利。本协议的修改文本将公告于映客平台或以其他GG租号平台认为可行的方式公告。修改文本一旦公布则立即生效，且对生效前的用户同样适用。若您在本协议内容发生修订后，继续使用本服务的，则视为您同意最新修订的协议内容；否则您须立即停止使用本服务。
                </p>

                <p>
                    <b>三、用户违法行为</b>
                    <br /> 11.您在使用本服务时须遵守法律法规，不得利用本服务从事违法违规行为，包括但不限于： （1）发布、传送、传播、储存危害国家安全统一、破坏社会稳定、违反公序良俗、侮辱、诽谤、淫秽、暴力以及任何违反国家法律法规的内容； （2）发布、传送、传播、储存侵害他人知识产权、商业秘密等合法权利的内容； （3）恶意虚构事实、隐瞒真相以误导、欺骗他人； （4）发布、传送、传播广告信息及垃圾信息； （5）其他法律法规禁止的行为。
                    <br /> 12.如果您违反了本条约定，相关国家机关或机构可能会对您提起诉讼、罚款或采取其他制裁措施，并要求GG给予协助。造成损害的，您应依法予以赔偿，GG不承担任何责任。
                    <br /> 13.如果GG发现或收到他人举报您发布的信息违反本条约定，GG有权进行独立判断并采取技术手段予以删除、屏蔽或断开链接。同时，GG有权视用户的行为性质，采取包括但不限于暂停或终止服务，限制、冻结或终止您在本平台账户的使用，追究法律责任等措施。
                    <br /> 14.您违反本条约定，导致任何第三方损害的，您应当独立承担责任；GG因此遭受损失的，您也应当一并赔偿。 三、不可抗力及其他免责事由
                    <br /> 15.您理解并同意，在使用本服务的过程中，可能会遇到不可抗力等风险因素，使本服务发生中断、延迟或受阻。不可抗力是指不能预见、不能克服并不能避免且对一方或双方造成重大影响的客观事件，包括但不限于自然灾害如洪水、地震、瘟疫流行和风暴等以及社会事件如战争、动乱、政府行为等。出现上述情况时，GG将努力在第一时间与相关单位配合，及时进行修复，但是由此给您造成的损失GG在法律允许的范围内免责。
                    <br /> 16.GG作为技术服务平台仅按现状提供服务，在法律允许的范围内，GG对以下情形导致的服务中断、延迟受阻不承担责任： （1）受到计算机病毒、木马或其他恶意程序、黑客攻击的破坏； （2）用户、第三方或GG的电脑软件、系统、硬件、网络和通信线路出现故障； （3）用户操作不当，包括但不限于用户提交错误的充值号码或账号错误； （4）用户通过非GG授权的方式使用本服务； （5）其他GG无法控制或合理预见的情形。
                    <br /> 17.您理解并同意，在使用本服务的过程中，可能会遇到网络信息或其他用户行为带来的风险，GG不对任何信息的真实性、适用性、合法性承担责任，也不对因侵权行为给您造成的损害负责。这些风险包括但不限于： （1）来自他人匿名或冒名的含有威胁、诽谤、令人反感或非法内容的信息； （2）因使用本协议项下的服务，遭受他人误导、欺骗或其他导致或可能导致的任何心理、生理上的伤害以及经济上的损失； （3）其他因网络信息或用户行为引起的风险。
                    <br /> 18.您理解并同意，本服务并非为某些特定目的而设计，包括但不限于核设施、军事用途、医疗设施、交通通讯等重要领域。如果因为软件或服务的原因导致上述操作失败而带来的人员伤亡、财产损失和环境破坏等，GG不承担法律责任。
                    <br /> 19.GG依据本协议约定获得处理违法违规内容的权利，该权利不构成GG的义务或承诺，GG不能保证及时发现违法行为或进行相应处理。
                    <br /> 20.在任何情况下，您不应轻信借款、索要密码或其他涉及财产的网络信息。涉及财产操作的，请一定先核实对方身份。
                </p>

                <p>
                    <b>四、未成年人使用条款</b>

                    <br /> 21.若用户未满18周岁，则为未成年人，应在监护人监护、指导下阅读本协议和使用本服务。
                    <br /> 22.未成年人用户涉世未深，容易被网络虚象迷惑，且好奇心强，遇事缺乏随机应变的处理能力，很容易被别有用心的人利用而又缺乏自我保护能力。因此，未成年人用户在使用本服务时应注意以下事项，提高安全意识，加强自我保护： （1）认清网络世界与现实世界的区别，避免沉迷于网络，影响日常的学习生活； （2）填写个人资料时，加强个人保护意识，以免不良分子对个人生活造成骚扰； （3）在监护人或老师的指导下，学习正确使用网络； （4）避免陌生网友随意会面或参与联谊活动，以免不法分子有机可乘，危及自身安全。
                    <br /> 23.监护人、学校均应对未成年人使用本服务时多做引导。特别是家长应关心子女的成长，注意与子女的沟通，指导子女上网应该注意的安全问题，防患于未然。
                </p>

                <p>
                    <b>五、其他</b>

                    <br /> 24.因本协议引起的或与本协议有关的争议，均适用中华人民共和国法律。
                    <br /> 25.因本协议引起的或与本协议有关的争议，GG与您将协商解决。协商不成的，任何一方均有权向本协议签订地有管辖权的法院提起诉讼。
                    <br /> 26.本协议部分内容被有管辖权的法院认定为违法或无效的，不因此影响其他内容的效力。
                    <br /> 27.本协议未涉及的问题参见国家有关法律法规，当本协议与国家法律法规冲突时，以国家法律法规为准。
                    <br /> 28.本协议所有条款的标题仅为阅读方便，本身并无实际涵义，不能作为本协议涵义解释的依据。
                    <br /> 29.本协议条款无论因何种原因部分无效或不可执行，其余条款仍有效，对双方具有约束力。
                    <br /> 30.本协议签订地：深圳。
                </p>

            </div>
        </div>
    </div>
    <!-- 充值弹框 -->
    <div class="recharge-modal">
        <div class="recharge-modal-body">
            <div style="position: absolute;top:14px;right: 14px;">
                <img onclick="hideRechargeModal()" src="/Content/img/close-2.png" style="width: 12px;height: 12px;vertical-align: top;cursor: pointer;">
            </div>
            <div class="recharge-header">选择充值</div>
            <div class="recharge-modal-content">
                <div style="padding: 20px 0;">
                    <img src="/Content/public/img/index/money-icon.png" class="vertical-middle">
                    <span class="color-333 font20 vertical-middle">充值余额：</span>
                </div>
                <div class="font16 color-333">当前金额 <span class="color-F81B1B" id="recharge-pop-balance">0.00</span>元</div>
                <div>
                    <ul style="padding: 20px 0;overflow: hidden;">
                        <li class="recharge-money-item active" amount="5">
                            <div class="color-333">充值</div>
                            <div class="font18">5元</div>
                        </li>
                        <li class="recharge-money-item" amount="10">
                            <div class="color-333">充值</div>
                            <div class="font18">10元</div>
                        </li>
                        <li class="recharge-money-item" amount="15">
                            <div class="color-333">充值</div>
                            <div class="font18">15元</div>
                        </li>
                        <li class="recharge-money-item" amount="20">
                            <div class="color-333">充值</div>
                            <div class="font18">20元</div>
                        </li>
                        <li class="recharge-money-item" amount="30">
                            <div class="color-333">充值</div>
                            <div class="font18">30元</div>
                        </li>
                        <li class="recharge-money-item custom-money" style="width: 171px;">
                            <div class="color-333">充值</div>
                            <div class="font18">
                                <input placeholder="自定义金额" type="number" name="chMoney" id="chMoney" placeholder="自定义金额" step="1" min="5" max="500" maxlength="3" onkeyup="inputChange(this)" onkeypress="onchangeStateValues(this)">
                            </div>
                        </li>
                    </ul>
                </div>
                <div style="padding-top: 10px;">
                    <div class="color-333 font16">支付方式：</div>
                    <ul style="padding-top: 15px;overflow: hidden;" id="pay-item-box">
                        <!-- <li class="pay-item active">
                            <img src="/Content/public/img/index/pay_zfb.png" alt="">
                        </li>
                        <li class="pay-item">
                            <img src="/Content/public/img/index/pay_wx.png" alt="">
                        </li> -->
                    </ul>
                </div>
                <div class="recharge-footer">
                    <div class="lf color-333 font16" style="line-height: 37px;padding: 16px 0;">
                        <div><img src="/Content/public/img/index/tip-icon.png" style="width: 16px;height: 16px;margin-right: 5px;" class="vertical-middle" />充值金额不可提现，仅平台内消费 充值即表示同意 <span class="color-2F80EC cursor-pointer" onclick="$('#protocalModal').removeClass('hide');">《充值协议》</span></div>
                        <div><img src="/Content/public/img/index/tip-icon.png" style="width: 16px;height: 16px;margin-right: 5px;" class="vertical-middle" />充值未到账可以在右下角联系在线客服处理或电话联系客服 <span class="color-F81B1B">0731-89565055</span></div>
                    </div>
                    <div class="rt" style="margin-right: 36px;">
                        <div style="position: relative;padding-left: 38px;border-left: 1px solid #CCCCCC;width: 144px;height: 106px;">
                            <img src="" id="QRcodeUrl" style="width: 106px;height: 106px;display: block;">
                            <div id="QRcodeLoading" style="position:absolute;top:0;left:38px;width: 106px;height: 106px;background-color: #000000;line-height: 106px;text-align: center;">
                                <img src="/Content/public/img/timg.gif" style="width: 50px;">
                            </div>

                            <div style="position:absolute;top:-25px;left: 38px;width: 130px;margin-left: -14px;" class="t-center color-2F80EC font16">应支付<span id="amount">5.00</span>元</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <input type="hidden" id="payType" name="payType" />
        <input type="hidden" id="userID" name="userID" />
    </div>
    <div class="container" style="-webkit-user-select: none;overflow: hidden;">
        <div class="sub-left">
            <div style="height: 60px;background: #F7FAFF;" id="top2"></div>
            <div class="logo">
                <img src="../../Content/public/img/index/LOGO.png" alt="" style="width: 82px;heigh: 82px;">
            </div>
            <div class="logo-name" style="font-weight: 700;">GG租号</div>
            <ul class="sub-menu-list">
                <li>
                    <span onclick="event.stopPropagation();GoToUrl('../usual/index.html');_czc.push(['_trackEvent', '启动页', '点击量', '首页']);">租号</span>
                    <ul>
                        <li class="menu-icon menu-icon1" data-url="/html/usual/index.html" onclick="event.stopPropagation();GoToUrl('../usual/index.html');_czc.push(['_trackEvent', '启动页', '点击量', '首页']);">首页</li>                       
                        <li class="menu-icon menu-icon2" data-url="/html/hall/hall.html" onclick="event.stopPropagation();GoToUrl('../hall/hall.html');_czc.push(['_trackEvent', '启动页', '点击量', '租号大厅']);">租号大厅</li>
                        <li class="menu-icon menu-icon3" data-url="/html/selectedproduct/selectedproduct.html" onclick="event.stopPropagation();GoToUrl('../selectedProduct/selectedProduct.html');_czc.push(['_trackEvent', '首页', '点击量', '精选商品']);">精选商品</li>
                        <!--<li class="menu-icon menu-icon4" data-url="/html/selectedproduct/specialoffer.html" onclick="event.stopPropagation();GoToUrl('../selectedProduct/specialOffer.html');_czc.push(['_trackEvent', '首页', '点击量', '特价专区']);">特价专区</li> -->
                        <li class="menu-icon menu-icon9" data-url="/html/steam/steam.html" onclick="event.stopPropagation();GoToUrl('../steam/steam.html');_czc.push(['_trackEvent', '首页', '点击量', 'Steam专区']);">Steam专区</li>
						<li class="menu-icon menu-icon10" data-url="/html/steam/rankinglist.html" onclick="event.stopPropagation();GoToUrl('../steam/rankingList.html');_czc.push(['_trackEvent', '首页', '点击量', 'Steam排行榜']);">Steam排行榜</li>
					</ul>
                </li>
                <li>
                    <span onclick="GoToUrl('../mine/my_zuhao.html',2);_czc.push(['_trackEvent', '启动页', '点击量', '我租的号']);">我的</span>
                    <ul>
                        <li class="menu-icon menu-icon5" data-url="/html/mine/my_zuhao.html" onclick="event.stopPropagation();GoToUrl('../mine/my_zuhao.html');_czc.push(['_trackEvent', '启动页', '点击量', '我租的号']);">我租的号</li>                       
                        <li class="menu-icon menu-icon6" data-url="/html/mine/recently_playing.html" onclick="event.stopPropagation();GoToUrl('../mine/recently_playing.html');_czc.push(['_trackEvent', '启动页', '点击量', '最近在玩']);">最近在玩</li>
                        <!-- <li class="menu-icon menu-icon7" onclick="event.stopPropagation();OpenWindowIEUrl('https:\/\/play.daidaidj.com/?channelId=39383C9D3tLP');_czc.push(['_trackEvent', '首页', '游戏陪玩', '点击次数']);">游戏陪玩</li> -->
						<!-- <li class="menu-icon menu-icon8" onclick="event.stopPropagation();OpenWindowIEUrl('http:\/\/www.taohaobang.com/activity/accountRecovery?from=zuhaoClientWE');_czc.push(['_trackEvent', '首页', '游戏回收', '点击次数']);">游戏回收</li> -->
                    </ul>
                </li>
            </ul>
            <div class="bottom-btn">
                <div class="bottom-yijian waves" onmouseover="clickAction(event)" onclick="clickAction(event);GoToUrl('../launch/launch_game.html');_czc.push(['_trackEvent',  '一键上号',  '网页',  '访问量']);"><img src="/Content/public/img/index/huojian.png" style="vertical-align: text-top;margin-right: 10px;" />一键上号</div>
                <p class="font14 color-999 t-center version">版本：WB3.8.20220725_Release</p>
            </div>
        </div>
        <div class="sub-right">
            <div class="top clearfix" id="top">
                <div class="lf" style="line-height: 34px;">
                    <span class="arrow-left" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" id="btnGoBack"></span>
                    <span class="arrow-right" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" id="btnGoForward"></span>
                    <span class="refresh" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" id="btnRefresh"></span>
                    <span class="refresh-search" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()">
                        <input type="text" id="searchKey" class="top-search" placeholder="可输入您想玩的游戏名称进行搜索" maxlength="20"/>
                        <i class="icon-search" id="btnSearch">&nbsp;</i>
                    </span>
                    <!-- <div class="vip-tip-box" id="vip-tip-box" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()"></div> -->
                </div>
                <div class="search-pop" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()">
                    <div>
                        <div class="color-333" style="white-space: nowrap;vertical-align: top;display: inline-block;">搜索历史:</div>
                        <div style="padding-left: 10px;display: inline-block;width: 340px;">
                            <ul style="overflow:hidden;">
                                <!-- <li class="search-item">绝地求生</li>
                                <li class="search-item">绝地求生</li>
                                <li class="search-item">绝地求生</li>
                                <li class="search-item">绝地求生</li>
                                <li class="search-item">绝地求生</li>
                                <li class="search-item">绝地求生</li> -->
                            </ul>
                            <img src="/Content/public/img/delete.png" alt="" style="width: 20px;position: absolute;top:10px;right:18px;cursor: pointer;" class="delete-search-btn">
                        </div>
                    </div>
                </div>
                <div class="search-keywords-pop" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()">
                    <div class="keywords-pop-header">搜索“<span id="search-keywords" style="color:#ED3533"></span>”的相关结果</div>
                    <div class="keywords-pop-body">
                        <ul class="search-result-box">

                        </ul>
                    </div>
                </div>
                <div class="rt" style="line-height: 34px;">
                    <!-- <span onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" class="kefu-btn vertical-middle" id="btnClickLianXiKeFu"><img src="/Content/public/img/kefu-icon.png" style="width: 18px;height: 18px;vertical-align: middle;margin-right: 4px;"/>在线客服</span> -->
                    <div class="color-999 font14" style="margin-right: 30px;display: inline-block;position: relative;" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" onmouseover="showUserInfoPop();" onmouseout="hideUserInfoPop()">
                        <img src="/Content/public/img/default.png" id="maerseriu_img" style="width: 28px;height: 28px;border-radius: 50%;">
                        <span style="margin-left: 10px;display: none;" id="user_balance_lable"></span>
                        <span style="margin-left: 10px;" id="top-login-btn" class="cursor-pointer" onclick="ShowBox(0)">点击登录</span>
                        <button class="recharge-btn" onclick="showRechargeModal()">充值</button>
                        <div class="userInfo-popover">
                            <div class="ellipsis">
                                <img src="/Content/public/img/default.png" id="maerseriu_img2" style="width: 48px;height: 48px;border-radius: 50%;margin-right: 6px;">
                                <span id="maerseriu_name" class="color-333 font18">用户名称</span>
                            </div>
                            <div style="line-height: 26px;margin-top: 12px;">
                                <span>余额：<span class="color-F21E1E" style="font-weight: 700;" id="pop-balance">￥9.0</span></span>
                                <span class="reload-btn rt" onclick="GetUserBalance()">刷新</span>
                            </div>
                            <div class="group-section">
                                <div class="section-item lf" onclick="GoToUrl('../mine/my_zuhao.html');">
                                    <span class="order-icon"></span>
                                    <span>我的订单</span>
                                </div>
                                <div class="section-item rt" onclick="GoToUrl('../mine/my_wallet.html');">
                                    <span class="wallet-icon"></span>
                                    <span>我的钱包</span>
                                </div>
                            </div>
                            <div class="color-333 font14" style="line-height:46px;height:46px;">
                                <span class="lf cursor-pointer" onclick="lookInformation()">进入个人中心</span>
                                <span class="color-999 rt cursor-pointer" onclick="logout()">切换账号</span>
                            </div>
                        </div>
                    </div>
                    <span id="btnClickLianXiKeFu" class="kefu-icon cursor-pointer" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()"></span>
                    <span id="btnSetting" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" class="top-icon icon-setting vertical-middle">
            <div id="setting_body" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" class="top-list-sub set">  
                    <p class="setting-item1" onclick="lookInformation()"><a href="javascript:;"><span class="setting_item_icon"></span>个人中心</a>
                    </p>
                    <p class="setting-item3" onclick="logout()"><a href="javascript:;" id="btnLoginOutAccount"><span class="setting_item_icon"></span>切换账号</a></p>
                    <p class="setting-item2"><a href="javascript:;" id="btnLoginOutClient"><span class="setting_item_icon"></span>退出软件</a></p>
                </div>
                </span>
                <span id="btnSetting" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()" class="top-icon icon-min vertical-middle" onclick="minimize(event)"></span>
                <span id="btnLoginOutClientX" class="top-icon icon-close vertical-middle" onmousedown="event.stopPropagation()" onmouseup="event.stopPropagation()"></span>
            </div>
        </div>
        <div style="padding: 0 12px 0 30px;">
            <iframe id="sfa" ondragstart="return false;" onload="iframeLoad(this)" scrolling="no" rameborder="0" src="../usual/index.html" name="right" style="overflow:auto;width:100%;height:720px;max-height:inherit;max-width:inherit;border:0px;padding:0;z-index:0;"></iframe>
        </div>
    </div>
    <div class="bottom" style="padding-right: 30px;">
        <div class="fl">
            <div style="float: left;overflow: hidden;">
                <img src="../../Content/public/img/index/horn.png" style="width:20px;height:18px;vertical-align: middle;margin-right: 10px;margin-top: -3px;" />
            </div>
            <div style="float: left;overflow: hidden;">
                <div class="sliderBox">
                    <div>绝地官方交流群：727039425</div>
                </div>
            </div>
        </div>
        <div class="rt font14" style="line-height: 44px;">
            <div class="lf problem-box cursor-pointer" onclick="OpenWindowIEUrl('https:\/\/www.ggzuhao.com/article/List/3/1')">
                <span class="problem-icon"></span>
                <span class="vertical-middle">常见问题</span>
            </div>
            <div class="lf kf-box cursor-pointer" id="bottom-kefu-btn" style="margin-left: 20px;">
                <span class="kf-icon"></span>
                <span class="vertical-middle">在线客服</span>
            </div>
        </div>
    </div>
    <div class="guide-modal">
        <div style="position: absolute;bottom: 152px;left: 186px;">
            <img src="/Content/public/img/guide-arrow.png" style="vertical-align: top;">
            <div class="color-fff" style="font-size: 32px;vertical-align: top;margin-left: 18px;display: inline-block;">
                <div>复制订单号 一键上号 快速登录游戏</div>
                <div class="t-center" style="padding-top: 46px;">
                    <span class="guide-modal-btn" onclick="$('.guide-modal').hide()">我知道了</span>
                </div>
            </div>
        </div>
        <div style="position:absolute;left: 26px;bottom: 82px;z-index: 60;width: 168px;height: 43px;">
            <div style="width: 168px;height: 40px;line-height: 40px;background: #2F80EC;border-radius: 2px;text-align: center;font-size: 18px;color: #fff;cursor: pointer;margin: 0 auto;"><img src="/Content/public/img/index/huojian.png" style="vertical-align: text-top;margin-right: 10px;">一键上号</div>
        </div>
    </div>
    </div>
    <!-- 下单奖励弹框 -->
    <div class="order-reward-modal" style="display: none;">
        <div class="order-reward-body">
            <div class="close-reward-modal" onclick="$('.order-reward-modal').hide();"></div>
            <p class="order-reward-title">新用户首单奖励</p>
            <div class="reward-box">
                <div class="reward-box-left">
                    <span style="color:#FB2B39;font-size:15px;">￥</span>
                    <span style="color:#FB2B39;font-size:30px;" id="reward-amount">0.5</span>
                </div>
                <div class="reward-box-right">
                    <p style="color:#FB2B39;font-size:18px;margin: 9px 0 3px;">获得现金奖励</p>
                    <p style="color:#333333;font-size:12px;">首单返现金大礼</p>
                </div>
            </div>
            <p style="color:#FAEA47;font-size:13px;margin:14px 0 13px;text-align:center;">现金奖励已存入账户余额 可随时用于租号</p>
            <a class="order-reward-btn" onclick="$('.order-reward-modal').hide();">拿奖励</a>
        </div>
    </div>
    <!-- 加载层 -->
    <div class="loading-modal">
        <div class="loading-modal-body">
            <img src="/Content/public/img/loading.gif" />
        </div>
    </div>
    <!-- 手游上号器弹框 -->
    <div class="shq_phone-modal">
        <div class="shq_phone-modal-body">
            <div style="position: absolute;right:12px;top: 8px;cursor: pointer;" onclick="hide_shq_phone_modal();">
                <img src="/Content/public/img/shq_phone_close.png" style="width: 14px;height: 14px;" />
            </div>
            <div class="overflow-hidden" style="margin: 34px 0 0 37px;">
                <div class="lf t-center">
                    <img src="/Content/public/img/shq_phone_title1.png" style="width: 168px;height: 16px;margin-bottom: 12px;" />
                    <div>
                        <img src="/Content/public/img/shq_phone_img.png" style="width: 293px;height: 307px;" />
                    </div>
                </div>
                <div class="lf" style="margin-left: 60px;">
                    <img src="/Content/public/img/shq_phone_title2.png" style="width: 143px;height: 16px;margin-bottom: 12px;" />
                    <div>
                        <img src="https://index.ggzuhao.com/fxggshq/images/qrcode.png" style="width: 148px;height: 148px;" />
                    </div>
                    <div style="color: #FFEE2C;font-size: 16px;padding:15px 0;">使用说明</div>
                    <div class="font14 color-fff" style="line-height: 26px;">
                        <p>1. 扫码下载手游上号器</p>
                        <p>2. 输入复制的上号码 点击“获取订单信息”</p>
                        <p>3. 点击“启动游戏”，系统会自动登录游戏</p>
                        <p>备注：请使用浏览器扫码下载</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 免费玩弹框 -->
    <div class="freed-modal">
        <div class="freed-modal-body">
            <img src="/Content/public/img/freed.png" alt="" style="display: block;">
            <div class="modal_btn" onclick="GoToUrl('../steam/steam.html');$('.freed-modal').hide();"></div>
            <div class="t-center" style="margin-top: -19px;">
                <img src="/Content/public/img/close.png" class="cursor-pointer" onclick="$('.freed-modal').hide();">
            </div>
        </div>
    </div>
    <div style="display:none">
        <script>
            var _hmt = _hmt || [];
            (function() {
                var hm = document.createElement("script");
                hm.src = "https://hm.baidu.com/hm.js?1cd36ca5b93066b0112c88b37f5438e3";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script>
            var _czc = _czc || [];
            (function () {
                var um = document.createElement("script");
                um.src = "https://s4.cnzz.com/z.js?id=1281356450&async=1";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(um, s);
            })();
        </script>
    </div>
    <script src="/Content/libs/vue.js"></script>
    <script src="/Content/libs/promise.js"></script>
    <script src="/Content/libs/axios.js"></script>
    <script src="/Content/libs/jquery-1.11.3.min.js"></script>
    <script src="/Content/libs/layer/layer.js"></script>
    <script src="/Content/libs/jquery.cookie.js"></script>
    <script src="/Content/libs/Common.js"></script>
    <script src="/Content/libs/Cryptojs/src/core.js"></script>
    <script src="/Content/libs/Cryptojs/src/md5.js"></script>
    <script src="/Content/libs/Cryptojs/src/enc-base64.js"></script>
    <script src="/Content/libs/Cryptojs/src/cipher-core.js"></script>
    <script src="/Content/libs/Cryptojs/src/aes.js"></script>
    <script src="/Content/libs/Cryptojs/src/mode-ecb.js"></script>
    <script src="/Content/libs/zuhao/login.js"></script>
    <script typet="text/javascript" src="//manger.ggzuhao.com/Content/JS/BiddingAnalysis.js?v=1"></script>
    <script src="/Content/libs/guide.js?11"></script>
    <script>
		function GetNetbarKey () {            
            var netbarkey = GetQueryString('netbarkey')
            if (!netbarkey) {
                try {
                    netbarkey = JSON.parse(Extern_Form_jsComInterface('{"funName":"GetNetbarId","params":null}')).results
					console.log("netbarkey:",netbarkey);
					if(netbarkey == null){
						netbarkey = '1D433E639AC0490AA41D2B0261712E5F'
					}
                } catch (err) {
                    netbarkey = '1D433E639AC0490AA41D2B0261712E5F'
                }             
            }  
            return  netbarkey    
        }
        function Extern_Form_GetNetbarKey()
        {
            if (typeof Extern_Form_jsComInterface === 'function') {
                var isKey = Extern_Form_jsComInterface('{"funName":"GetNetbarId","params":null}') && JSON.parse(Extern_Form_jsComInterface('{"funName":"GetNetbarId","params":null}')).results 
				console.log("isKey:",isKey);
				if(isKey == null){
					return false
				}
                if (isKey || GetQueryString('netbarkey')){
                    return true
                } 
            }
            return false
        }
        if (!Extern_Form_GetNetbarKey()) {
			_czc.push(['_trackEvent', '网吧客户端', 'key文件丢失', '次数']);
            window.layerIndex = layer.open({
                title: '提示'
                ,content: '未安装key文件！',
                time: 3000,
                yes: function(index, layero){
                    //按钮【按钮一】的回调
                    //exit()
					layer.close(index)
                },
                cancel: function(index){ 
                    //右上角关闭回调
                    //exit()
					layer.close(index)
                    return false //开启该代码可禁止点击该按钮关闭
                }
            });     
  
        }      
		(function () {		
			var netbarkey = GetNetbarKey()
            HttpGet('/Product/SaveClientVisitLog?netbarkey=' + netbarkey)                  
        })()		
        function inputChange(e) {

            if (event.keyCode == 8) {
                _debounce2(e);
            }
        }
        var debounce = function(action, idle) {
            var last
            return function() {
                var ctx = this,
                    args = arguments
                clearTimeout(last)
                last = setTimeout(function() {
                    action.apply(ctx, args)
                }, idle)
            }
        }

        var _debounce2 = debounce(debounceAjax, 1000);

        function onchangeStateValues(e) {
            if (event.keyCode < 48 || event.keyCode > 57) {
                event.returnValue = false;
            } else {
                _debounce2(e);
            }
        }

        function debounceAjax(e) {
            if (!/^[1-9]\d*$/.test(e.value)) {
                e.value = e.value.replace(/\D/g, '');
            }
            if (!e.value) {
                return chargeBox.showQRcode = false;
            }
            if (e.value < 5 || e.value > 500) {
                layer.msg('输入金额范围为5元~500元之间的整数');
                return false;
            }
            var _chongZhiBalance = $(".recharge-money-item.active").length ? $('.recharge-money-item.active').eq(0).attr("amount") : $("#chMoney").val();
            _chongZhiBalance = _chongZhiBalance - 0;
            var _payType = $("#payType").val();
            var loginUserInfo = GetLoginUserCookie();
            $('#amount').text(_chongZhiBalance.toFixed(2));
            // HttpGet('order/SubmitChongZhi?chMoney=' + chargeBox.stateValue + '&payWays=' + payWays + '&userID=' + userInfo.UserID).then(function(result) {
            //     //这里处理成功回调                 
            //     var result = JSON.parse(result);
            //     if (result.code) {
            //         var orderNo = result.msg.split('|')[0];
            //         var QRurl = result.msg.split('|')[1];
            //         chargeBox.orderNo = orderNo;
            //         $('#QRcodeUrl').attr('src', QRurl)
            //         getOrderStateTimer && clearInterval(getOrderStateTimer);
            //         getOrderStateTimer = setInterval(function() {
            //             getOrderState(getOrderStateTimer, orderNo, payWays)
            //         }, 1500)
            //     } else {
            //         layer.msg(result.msg);
            //     }
            // }).catch(function(result) {
            //     layer.msg(result.msg);
            // });
            submitRechargeOrder({
                _chongZhiBalance: _chongZhiBalance,
                _payType: _payType,
                loginUserInfo: loginUserInfo
            })
        }

        function guide(n) {
            //alert(n)
            if (n == 2) {
                $.guide([{
                    selector: '#show_shq_phone_modal',
                    selector2: '#scanQRcode',
                    content: '<div style="margin-left:152px;"><div style="margin:10px 0 0 28px;"><img src="/Content/public/img/arrow3.png"/></div><div style="font-size: 19px;color:#fff;white-space:nowrap;margin:6px 0 0 43px;">请打开浏览器扫码下载手游上号器登录游戏</div><div style="font-size: 18px;color:#fff;width: 122px;height: 38px;background: #2F80EC;border-radius: 4px;line-height:38px;text-align:center;margin: 17px 0 0 172px;cursor:pointer;" class="guide-next-btn">我知道了</div><div style="margin:-56px 0 0 -70px;"><img src="/Content/public/img/arrow2.png"/></div></div>',
                    //align: 'left',
                    autoplay: false
                }, {
                    selector: '#btnClickLianXiKeFu',
                    content: '<div ><div style="margin:16px 0 0 86px;"><img src="/Content/public/img/arrow1.png"/></div><div style="font-size: 19px;color:#fff;white-space:nowrap;margin:6px 0 0 0;">遇到问题及时联系 客服小姐姐</div><div style="font-size: 18px;color:#fff;width: 122px;height: 38px;background: #2F80EC;border-radius: 4px;line-height:38px;text-align:center;margin: 17px 0 0 78px;cursor:pointer;" class="guide-next-btn">我知道了</div></div>',
                    align: 'left',
                    autoplay: false
                }]);
            } else {
                $.guide([{
                    selector: '#startGame_btn',
                    content: '<div ><div style="margin:16px 0 0 120px;"><img src="/Content/public/img/arrow1.png"/></div><div style="font-size: 19px;color:#fff;white-space:nowrap;margin:6px 0 0 20px;">点击 登录游戏 系统自动上号</div><div style="font-size: 18px;color:#fff;width: 122px;height: 38px;background: #2F80EC;border-radius: 4px;line-height:38px;text-align:center;margin: 17px 0 0 78px;cursor:pointer;" class="guide-next-btn">我知道了</div></div>',
                    align: 'left',
                    autoplay: false
                }, {
                    selector: '#btnClickLianXiKeFu',
                    content: '<div ><div style="margin:16px 0 0 120px;"><img src="/Content/public/img/arrow1.png"/></div><div style="font-size: 19px;color:#fff;white-space:nowrap;margin:6px 0 0 20px;">遇到问题及时联系 客服小姐姐</div><div style="font-size: 18px;color:#fff;width: 122px;height: 38px;background: #2F80EC;border-radius: 4px;line-height:38px;text-align:center;margin: 17px 0 0 78px;cursor:pointer;" class="guide-next-btn">我知道了</div></div>',
                    align: 'left',
                    autoplay: false
                }]);
            }

        }

        function showUserInfoPop() {
            var _userInfo = GetLoginUserCookie();

            if (_userInfo != null) {
                $('.userInfo-popover').show()
            }

        }

        function hideUserInfoPop() {
            $('.userInfo-popover').hide()
        }

        function showRechargeModal() {
            showAuthModal3(function() {
                $('.recharge-money-item').eq(0).addClass('active').siblings().removeClass('active')
                $('.recharge-money-item input').val(undefined);
                GetUserBalance();
                GetPayConfig(function() {
                    getRechargeQRcode()
                });
            })
        }

        function hideRechargeModal() {
            getOrderStateTimer && clearInterval(getOrderStateTimer)
            $('.recharge-modal').hide()
        }
		
		function releaseSecurityMode (orderNo, zOrderNo) {           
            var _o = "";
            var _zo = "";
            var _q = 0;
            var _c = "";
            var _intervalId = 0;
            var _loadIndex = 0;
            var _lunxucount = 0;
            var loginUserInfo = GetLoginUserCookie();
            function jcyz(orderNo, zOrderNo) {
                _o = orderNo;
                _zo = zOrderNo;
                var layerLoader = layer.load(2);
                HttpGet("/order/ApplyRemoveSafeMode", { orderNo: _o, zOrderNo: _zo, userId: loginUserInfo.UserID }).then(function (data) {
                    console.log(data)
                    layer.close(layerLoader);
                    if (data.Code == 0) {
                        var res = JSON.parse(data.Message)
                        if (res.Code) {
                            _q = res.Content.QueueId;
                            layer.prompt({
                                formType: 0,
                                // title: '请输入游戏内安全模式提示框的<font color="red"><b>验证码</b></font>解除成功后回到游戏，安全锁将会消失',
                                title: '解除安全模式',
                                value: "",                        
                                btnAlign: 'c',
                                btn: ['提交'],
                                yes: function (index, layero) {
                                    layer.close(index);
                                    // 获取文本框输入的值
                                    _c = layero.find(".layui-layer-input").val();
                                    _intervalId = 0;         
                                    _lunxucount = 0;                                
                                    _loadIndex = layer.msg('正在为您解除中，请稍候...', {
                                        icon: 16,
                                        time: false,
                                        shade: 0.1
                                    });
                                    _intervalId = setInterval(lunxuyz, 2000);                            
                                },
                                success: function (e) {
                                    e.find(".layui-layer-input").attr("placeholder", "请输入验证码");
                                    e.find(".layui-layer-input").css({
                                        'width': '100%',
                                        'height': '40px'
                                    })
                                    e.find('.layui-layer-content').prepend('<div style="width: 330px;padding-bottom: 15px;">请输入游戏安全模式中提示的“ <font color="red"><b>验证码</b></font> ”，解锁成功 后回到游戏，安全锁将会消失。</div>')
                                }
                            });
                        } else {
                            layer.msg(res.Message);
                        }                       
                    } else {                   
                        layer.msg(data.Message);
                    }
                });
            }
            function lunxuyz() {           
                HttpGet("/order/ValidateRemoveSafeMode", { orderNo: _o, zOrderNo: _zo, queueId: _q, code: _c,  userId: loginUserInfo.UserID }).then(function (data) {
                    if (data.Code == 0) {
                        _lunxucount++;
                        var res = JSON.parse(data.Message)
                        if (res.Code) {
                            clearInterval(_intervalId);
                            layer.close(_loadIndex);
                            layer.msg("解除成功!");
                        } else {
                            if (_lunxucount >= 30) {
                                clearInterval(_intervalId);
                                layer.close(_loadIndex);
                                layer.msg(res.Message);
                            }
                        }
                    } else {
                        layer.msg(data.Message);
                    }
                }).catch(function(res){
                    layer.close(_loadIndex);
                });
            }
            jcyz(orderNo, zOrderNo)
        }
		
		function releaseSecurityMode2 (_orderNo, _productId, _userId) {
            var orderNo = "";
            var productId = "";
            var loadingIndex = 0;
            var rsIntervalId = 0;
            var rsLunxunCount = 0;
            var loginUserInfo = GetLoginUserCookie();
            var applyRemoveSafeMode = function (_orderNo, _productId) {
                orderNo = _orderNo;
                productId = _productId;
                loadingIndex = 0;
                rsIntervalId = 0;
                rsLunxunCount = 0;
                var layerLoader = layer.load(2);
                HttpGet("/order/GGApplyRemoveSafeMode", { orderNo: orderNo, productID: productId, userId: _userId || loginUserInfo.UserID }).then(function (data) {
                    layer.close(layerLoader);
                    if (data.Code == 0) {
                        var res = JSON.parse(data.Message)
                        if (res.Code) {
                            layer.prompt({
                                formType: 0,
                                // title: '请输入游戏内安全模式提示框的<font color="red"><b>验证码</b></font>解除成功后回到游戏，安全锁将会消失',
                                title: '解除安全模式',
                                value: "",                        
                                btnAlign: 'c',
                                btn: ['提交'],
                                yes: function (index, layero) {
                                    layer.close(index);
                                    // 获取文本框输入的值
                                    var code = layero.find(".layui-layer-input").val();                                   
                                    loadingIndex = layer.msg('正在为您解除中，请稍候...', {
                                        icon: 16,
                                        time: false,
                                        shade: 0.1
                                    });
                                    HttpGet("/order/GGValidateRemoveSafeMode", { orderNo: orderNo, productID: productId, code: code, userId: _userId || loginUserInfo.UserID }).then(function (vdata) {
                                        if (vdata.Code == 0) {
                                            var res = JSON.parse(data.Message)
                                            if (res.Code) {
                                                rsIntervalId = setInterval(pollingRemoveSafeModeResult, 2000);
                                            } else {
                                                layer.msg(res.Message);
                                                layer.close(loadingIndex);
                                            }                                           
                                        } else {
                                            layer.msg(vdata.Message);
                                            layer.close(loadingIndex);
                                        }
                                    });
                                },
                                success: function (e) {
                                    e.find(".layui-layer-input").attr("placeholder", "请输入验证码");
                                    e.find(".layui-layer-input").css({
                                        'width': '100%',
                                        'height': '40px'
                                    })
                                    e.find('.layui-layer-content').prepend('<div style="width: 330px;padding-bottom: 15px;">请输入游戏安全模式中提示的“ <font color="red"><b>验证码</b></font> ”，解锁成功 后回到游戏，安全锁将会消失。</div>')
                                }
                            });
                        } else {
                            layer.msg(res.Message);
                        }                         
                    } else {
                        layer.msg(data.Message);
                    }
                });
            };

            var pollingRemoveSafeModeResult = function () {
                if (rsLunxunCount > 200) {
                    clearInterval(rsIntervalId);
                    layer.close(loadingIndex);
                    layer.msg("解除失败");
                    return;
                }
                HttpGet("/order/PollingRemoveSafeModeResult", { productID: productId }).then(function (data) {
                    if (data.Code == 0) {
                        var res = JSON.parse(data.Message)
                        rsLunxunCount++;
                        if (res.Code && res.Message == "操作成功") {
                            clearInterval(rsIntervalId);
                            layer.close(loadingIndex);
                            layer.msg("解除成功!");
                        } else if (res.Code == false) {
                            clearInterval(rsIntervalId);
                            layer.close(loadingIndex);
                            layer.msg(res.Message);
                        }
                    } else {
                        layer.close(loadingIndex);
                        layer.msg(data.Message);
                    }
                });
            };
            applyRemoveSafeMode(_orderNo, _productId)
        }

        $(".recharge-money-item:not('.custom-money')").click(function(e) {
            $(".recharge-money-item").removeClass("active");
            $(e.currentTarget).addClass("active");
            getRechargeQRcode()
                //$(".cash").removeClass('active')                    
        });
        $("#chMoney").on('focus', function(e) {
            $(".recharge-money-item").removeClass("active");
            //$(e.currentTarget).addClass('active')
        })
        $("#pay-item-box").on('click', '.pay-item', function(e) {
            $(".pay-item").removeClass("active");
            $(e.currentTarget).addClass("active");
            var _payType = $(this).attr("data-paytype");
            $("#payType").val(_payType);
            getRechargeQRcode()
        });
        function GetPayConfig(cb) {
            HttpGet('/ClientUser/GetPayConfig').then(function(result) {
                //这里处理成功回调                       
                if (result.Code == 0) {
                    var str = '';
                    for (var i = 0; i < result.Content.length; i++) {
                        var active = (i == 0 ? 'active' : ''),
                            item = result.Content[i];
                        var img = item.payImg;
                        str += '<li class="pay-item ' + active + '" data-payType="' + item.payType + '">' +
                            (item.payType == 4 ? '<img src="/Content/public/img/index/pay_zfb.png" alt="">' : '<img src="/Content/public/img/index/pay_wx.png" alt="">') +
                            // '<img src="' + img + '" style="width:133px;height:44px;">' +
                            '</li>';
                    }
                    $('#pay-item-box').html(str);
                    $('.recharge-modal').show();
                    $("#payType").val(result.Content[0].payType)
                    if (cb && typeof cb === 'function') {
                        cb()
                    }
                } else {
                    layer.msg(result.Message);
                }
                //clearInterval(timer)
            }).catch(function(result) {
                layer.msg(result.msg);
            });
        }
        var _fillBalance = 0,
            orderNo, getOrderStateTimer;

        function VerifyForm() {
            var _chongZhiBalance = $(".recharge-money-item.active").length ? $('.recharge-money-item.active').eq(0).attr("amount") : $("#chMoney").val();
            _chongZhiBalance = _chongZhiBalance - 0;
            var _payWays = $("#payType").val();

            var loginUserInfo = GetLoginUserCookie();
            if (loginUserInfo != null) {
                $("#userID").val(loginUserInfo.UserID);
            }

            if ($("#userID").val() == "") {
                return false;
            }

            if (_payWays == "") {
                ShowAlert("请选择充值方式", 5);
                return false;
            }
            if (_chongZhiBalance == "") {
                ShowAlert("请选择或输入充值金额", 5);
                return false;
            }
            if (!/^\d+$/.test(_chongZhiBalance)) {
                ShowAlert("请输入整数充值金额", 5);
                return false;
            } else {
                if (parseFloat(_chongZhiBalance).toFixed(2) < 5.00) {
                    ShowAlert("请输入大于等于5元的整数金额", 5);
                    return false;
                }
                if (parseFloat(_chongZhiBalance).toFixed(2) > 500) {
                    ShowAlert("请输入小于或等于500元的整数金额", 5);
                    return false;
                }
            }
            _fillBalance = _chongZhiBalance;
            //CheckFillType();
            // if (_fillUrl == "") {
            //     return false;
            // }
            return true;
        }

        function getOrderState(timer, orderNo, payType) {
            HttpGet('/order/QueryPaySuccess?orderNo=' + orderNo + '&payWays=' + payType).then(function(result) {
                //这里处理成功回调         
                console.log(result, 88)
                var result = JSON.parse(result);
                if (result.code) {
                    timer && clearInterval(timer)
                        //layer.msg('支付成功');
                    layer.open({
                        title: '选择支付',
                        content: '支付成功',
                        icon: 1
                    })
                    setTimeout(function() {
                        // parent.CloseOpen(); //关闭信息框
                        // parent.goRefresh(); 
                        $('.recharge-modal').hide()
                        GetUserBalance(function() {
                            document.querySelector('#sfa').contentWindow.location.reload();
                        });
                        var loginUserInfo = GetLoginUserCookie();
                        if (!loginUserInfo.Phone) {
                            //window.parent.$('#bindPhone input[type="text"]').val('');
                            //window.parent.$('#bindPhone').addClass('active');   
                            window.parent.showBindPhoneModal();
                        }
                    }, 1000)
                } else {
                    //layer.msg(result.Message);
                }
                //clearInterval(timer)
            }).catch(function(result) {
                timer && clearInterval(timer)
                layer.msg(result.msg);
            });
        }

        function getRechargeQRcode() {
            if (VerifyForm()) {
                var _chongZhiBalance = $(".recharge-money-item.active").length ? $('.recharge-money-item.active').eq(0).attr("amount") : $("#chMoney").val();
                _chongZhiBalance = _chongZhiBalance - 0;
                var _payType = $("#payType").val();
                var loginUserInfo = GetLoginUserCookie();
                $('#amount').text(_chongZhiBalance.toFixed(2));

                if (!loginUserInfo.Phone) {
                    // window.parent.$('#bindPhone input[type="text"]').val('');
                    // window.parent.$('#bindPhone').addClass('active');
                    window.parent.showBindPhoneModal(function() {

                        var loginUserInfo = GetLoginUserCookie();
                        submitRechargeOrder({
                            _chongZhiBalance: _chongZhiBalance,
                            _payType: _payType,
                            loginUserInfo: loginUserInfo
                        })
                    })
                } else {
                    submitRechargeOrder({
                        _chongZhiBalance: _chongZhiBalance,
                        _payType: _payType,
                        loginUserInfo: loginUserInfo
                    })
                }

            }
            return false;
        }

        function submitRechargeOrder(obj) {
            getOrderStateTimer && clearInterval(getOrderStateTimer);
            //$('#QRcodeUrl').attr('src', '/Content/public/img/timg.gif');
            $('#QRcodeLoading').show();
            HttpGet('order/SubmitChongZhi?chMoney=' + obj._chongZhiBalance + '&payWays=' + obj._payType + '&userID=' + obj.loginUserInfo.UserID + '&sxval=1').then(function(result) {
                //这里处理成功回调                               
                var result = JSON.parse(result);
                console.log(result, orderNo, QRurl, 88)
                if (result.code) {
                    var orderNo = result.msg.split('|')[0];
                    var QRurl = result.msg.split('|')[1];
                    orderNo = orderNo;
                    $('#QRcodeUrl').attr('src', QRurl);
                    $('#QRcodeLoading').hide();
                    getOrderStateTimer = setInterval(function() {
                        getOrderState(getOrderStateTimer, orderNo, obj._payType)
                    }, 1500)
                } else {
                    layer.msg(result.msg);
                }
            }).catch(function(result) {
                layer.msg(result.msg);
            });
        }
        // 参数t: 文字描述内容
        // 参数s: 当前进度数
        // function changeContent(t, s) {
        //   var textObj = document.getElementById("progressText");
        //   var sizeObj = document.getElementById("progressSize");
        //   var lenObj = document.getElementById("pLength");

        //   textObj.innerHTML = t;
        //   sizeObj.innerHTML = s;
        //   lenObj.style.width = s + "%";
        // }
        // 进度条 ctx: 初始加载的文字描述内容
        var progressModal_text = '';
        var progressModal = null;
        var alertMsgIndex;

        function closeProgressModal(){
            try {
                Extern_Form_CloseZhwDlg()
				layer.close(progressModal)
            } catch (error) {
                layer.close(progressModal)
            }
        }
		
        function changeContent(t, s, hasClose) {
            progressModal_text = t || progressModal_text;
            //progressModal = progressModal||null;
            if ($('#LAY_layuipro').length) {
                var textObj = document.getElementById("progressText");
                var sizeObj = document.getElementById("progressSize");
                var lenObj = document.getElementById("pLength");
                var closeModal = document.getElementById('close-progress-modal')
				var text = document.getElementById("warn-text");
                if(hasClose){
                    closeModal.style.display = 'block'
					text.style.display = 'block'
                } else {
                    closeModal.style.display = 'none'
					text.style.display = 'none'
                }
                textObj.innerHTML = progressModal_text;
				sizeObj.innerHTML = s;
                lenObj.style.width = s + "%";
                if (s <= 0) {
                    alertMsgIndex && layer.close(alertMsgIndex)
                }
                if (s >= 100) {
                    setTimeout(function() {
                        progressModal&&layer.close(progressModal)
                        // layer.closeAll()
                    }, 5000)
                }
            } else {
                //示范一个公告层
                progressModal = layer.open({
                    type: 1,
                    title: false //不显示标题栏
                        ,
                    closeBtn: false,
                    area: '640px;',
                    shade: 0.8,
                    id: 'LAY_layuipro' //设定一个id，防止重复弹出
                        ,
                    btnAlign: 'c',
                    moveType: 1 //拖拽模式，0或者1
                        ,
                    content: '<div style="padding: 50px; background-color: #fff; color: #fff; font-weight: 300;border-top:5px solid #00A8F8;color:#03425A;position:relative;">' + ('<img id="close-progress-modal" style="position:absolute;right: 10px;top: 10px;cursor:pointer;display:none;" src="/Content/public/img/close-icon-1.png" onclick="closeProgressModal()"/>') + '<img style="width:158px;height: 158px;display:inline-block;margin-right: 40px;" src="/Content/public/img/scanning.gif" />' + '<div style="width: 340px;display: inline-block;vertical-align: middle;"><p style="font-size: 18px;margin-bottom: 20px;"><span id="progressText">' + progressModal_text + '</span>(<span id="progressSize">0</span>%)</p><div class="progress"><span class="blue" id="pLength" style="width: 0%;"></span></div></div>' + '<div id="warn-text" style="color:red;text-align:center;position:absolute;left:0;bottom:10px;width:100%;font-size:12px;">如果两分钟后进度无变化，请点击右上角关闭（X），重新登录游戏。</div></div>',
                    success: function() {
                        // document.onkeydown = function(event) {
                        //     var e = event || window.event || arguments.callee.caller.arguments[0];
                        //     if (e && e.keyCode == 27) {
                                
                        //     }
                        //     // if (e && e.keyCode == 32) {
                        //     //     alert("按空格")
                        //     // }
                        //     // if (e && e.keyCode == 13) {
                        //     //     alert("按回车")
                        //     // }
                        // };
                        var textObj = document.getElementById("progressText");
                        var sizeObj = document.getElementById("progressSize");
                        var lenObj = document.getElementById("pLength");
                        var closeModal = document.getElementById('close-progress-modal')
						var text = document.getElementById("warn-text");
                        if(hasClose){
                            closeModal.style.display = 'block'
							text.style.display = 'block'
                        } else {
                            closeModal.style.display = 'none'
							text.style.display = 'none'
                        }
                        textObj.innerHTML = progressModal_text;
                        sizeObj.innerHTML = s;
                        lenObj.style.width = s + "%";
                        if (s <= 0) {
                            alertMsgIndex && layer.close(alertMsgIndex)
                        }
                        if (s >= 100) {
                            setTimeout(function() {
                                //progressModal&&layer.close(progressModal)
                                layer.closeAll()
                            }, 5000)
                        }
                    }
                });
            }
        }
           
        function changeContent2(t, s,hasClose) {
            //progressModal = progressModal||null;
            if ($('#startGameModal').length) {
                // var gameNameObj = document.getElementById("progress_gamename");
                var textObj = document.getElementById("progressText");
                var sizeObj = document.getElementById("progressSize");
                var lenObj = document.getElementById("pLength");
                var closeModal = document.getElementById('close-progress-modal')				
                if(hasClose){
                    closeModal.style.display = 'block'					
                } else {
                    closeModal.style.display = 'none'					
                }
                // gameNameObj.innerText = gameName
                textObj.innerHTML = t;
				sizeObj.innerHTML = s;
                lenObj.style.width = s + "%";
                if (s <= 0) {
                    alertMsgIndex && layer.close(alertMsgIndex)
                }
                if (s >= 100) {
                    setTimeout(function() {
                        //progressModal&&layer.close(progressModal)
                        layer.closeAll()
                    }, 5000)
                }
            } else {
                //示范一个公告层
                progressModal = layer.open({
                    type: 1,
                    title: false //不显示标题栏
                        ,
                    closeBtn: false,
                    area: ['750px', '530px'],
                    shade: 0.8,
                    id: 'startGameModal' //设定一个id，防止重复弹出
                        ,
                    skin: 'startGame-modal',
                    btnAlign: 'c',
                    moveType: 1 //拖拽模式，0或者1
                        ,
                    content: '<div style="padding: 25px; background-color: #fff; color: #fff; font-weight: 300;color:#03425A;position:relative;">' + ('<img id="close-progress-modal" style="position:absolute;right: 10px;top: 10px;cursor:pointer;display:none;" src="/Content/public/img/close-icon-1.png" onclick="closeProgressModal()"/>') + '<div id="progress_gamename" style="font-size: 24px;color: #000000;margin-bottom: 12px;font-family: Microsoft YaHei;">'+ (localStorage.getItem('startgamename')|| '') +'</div><div class="text-body"><div style="font-size: 22px;margin-bottom: 10px;">登录注意事项：</div><div>1、登录过程<span style="color: #FFF000;">请勿移动鼠标</span></div><div>2、登录账号提示“<span style="color: #FFF000;">账号密码错误</span>”？重新点击“登录游戏”可切换账号登录</div><div>3、登录账号提示“<span style="color: #FFF000;">被封禁</span>”？重新点击“登录游戏”可切换账号登录</div></div><div class="progress-box"><div class="progress"><div class="blue" id="pLength" style="width: 0%;"></div></div><span id="progressSize" class="progressSize">0</span>%</div><div class="start-tip-text"><div>登录Steam大概需要2分钟；<span id="progressText">正在初始化环境，请稍等...</span></div><div>登录期间请不要操作鼠标和电脑，否则可能会登录失败</div></div></div>',
                    success: function() {                        
                        // var gameNameObj = document.getElementById("progress_gamename");
                        var textObj = document.getElementById("progressText");
                        var sizeObj = document.getElementById("progressSize");
                        var lenObj = document.getElementById("pLength");
                        var closeModal = document.getElementById('close-progress-modal')
                        if(hasClose){
                            closeModal.style.display = 'block'
                            // closeModal.style.display = 'none'							
                        } else {
                            closeModal.style.display = 'none'					
                        }
                        // gameNameObj.innerText = gameName
                        textObj.innerHTML = t;
                        sizeObj.innerHTML = s;
                        lenObj.style.width = s + "%";
                        if (s <= 0) {
                            alertMsgIndex && layer.close(alertMsgIndex)
                        }
                        if (s >= 100) {
                            setTimeout(function() {
                                //progressModal&&layer.close(progressModal)
                                layer.closeAll()
                            }, 5000)
                        }
                    }
                });
            }
        }

        function alertMsg(text) {
            //progressModal&&layer.close(progressModal)
            layer.closeAll()
            alertMsgIndex = layer.open({
                title: '上号提示',
                skin: 'alertMsg-class',
                shade: false,
                btn: false,
                area: ['326px', '200px'],
                offset: 'rb',
                content: (text + '') || ''
            });
        }

        function closeAlertMsg() {
            layer.closeAll();
        }

        function orderAlertMsg(orderSn) {
            progressModal && layer.close(progressModal)
            layer.open({
                title: '温馨提示',
                content: '检测到您的机器存在异常，订单已转为售后中，如有问题请联系客服！',
                btn: ['查看订单'],
                btnAlign: 'c',
                yes: function(index, layero) {
                    //按钮【按钮一】的回调
                    layer.close(index)
                    GoToUrl('/html/mine/my_zuhao.html?radom=' + Math.random() + '#8')
                }
            });
        }

        // 组号玩订单提示
        function zhwOrderAlert(cb) {
            var index = layer.open({
                skin: 'zuhaowan-alert',
                area: ['453px', '240px'],
                title: false,
                closeBtn: false,
                content: '<div class="zuhaowan"><div class="title">启动提醒</div><div class="zuhaowan-content">为提高游戏登录成功率，请先手动打开Steam/WeGame客户端，再进行游戏登录！</div><button>我已启动，立即登录<span id="zuhaowan-time"></span></button><img src="/Content/public/img/close-icon-1.png" class="close"/></div>',
                btn: false,
                success: function() {
                    var dom = document.querySelector('.zuhaowan button')
                    dom.setAttribute('disabled',true)
                    var timer = null
                    var count = 10
                    document.querySelector('#zuhaowan-time').innerHTML = ' ' +count + 'S'  
                    timer = setInterval(function(){
                        if (count <= 0) {
                            clearInterval(timer)
                            document.querySelector('#zuhaowan-time').innerHTML = ''
                            dom.removeAttribute('disabled')
                            return
                        }
                        count--
                        document.querySelector('#zuhaowan-time').innerHTML = ' ' + count + 'S'                        
                    },1000)
                   document.querySelector('.zuhaowan .close').addEventListener('click', function(){
                    clearInterval(timer)
                    layer.closeAll();
                   })
                   dom.addEventListener('click',function(e){
                        layer.close(index);
                       if (cb && typeof cb === 'function') {                           
                           cb()
                       }                      
                   })
                }
            });
        }

        // 加速失败提示
        function accelerationError(orderNo) {
            isStartBoosterSuccess = false;
            layer.open({
                title: '加速失败提示',
                area: ['336px', '200px'],
                // icon: 5,
                btn: false,
                content: '加速失败，加速器订单已自动退款到账户余额，游戏订单可正常使用，如有问题请联系客服；'
            });
            var path = document.querySelector('#sfa').contentWindow.location.pathname.toLocaleLowerCase();
            if (path.indexOf('pay_state.html') > -1) {
                document.querySelector('#sfa').contentWindow.model.isShow = false;
            } else {
                window.sfa.contentWindow.location.reload()
            }
        }

        function SetLoginUserCookie(_userInfo) {
            var _cookie = escape(_userInfo);
            $.cookie("LoginUser", _cookie, {
                path: '/'
            });
        }

        function lookInformation() {
            var userInfo = parent.GetLoginUserCookie();

            if (userInfo && userInfo.UserID) {
                if (!userInfo.Phone && userInfo.WeiXin) {

                    //window.parent.$('#bindPhone input[type="text"]').val('');
                    //window.parent.$('#bindPhone').addClass('active');
                    window.parent.showBindPhoneModal();
                    return;
                }
                GoToUrl('../mine/information.html')
            } else {
                //layer.msg('请先登录')
                ShowBox(0)
            }
        }
        var wxLoginStatus = 0;

        function showOrderRewardModal(amount) {
            $('#reward-amount').text(amount || 0);
            $('.order-reward-modal').show();
        }

        function getLoginConfig() {
            HttpGet('ClientUser/GetLoginConfig').then(function(result) {
                console.log(result, 888899)
                if (result.Code == "0") {
                    console.log(result)
                    wxLoginStatus = result.statue;
                    //if (wxLoginStatus) {
                    //    $('.wxlogin-item').css('display', 'inline-block')
                    //} else {
                    //    $('.wxlogin-item').css('display', 'none')
                    //}
					if (wxLoginStatus) {
                        $('.wx-login').css('display', 'block')
                        $('#login-phone-over').hide()
                        $('.other-login .wx').show()
                    } else {
                        $('.wx-login').css('display', 'none')
                        $('#login-phone-over').show()
                        $('.other-login .wx').hide()
                    }
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {})
        }
        $(function() {
            getLoginConfig()
            if (!localStorage.getItem('guide-modal')) {
                localStorage.setItem('guide-modal', 1)
                $('.guide-modal').show();
            }
            // if (!localStorage.getItem('freed-modal')) {                
            //     localStorage.setItem('freed-modal', 1)
            //     $('.freed-modal').show();
            // }
            var Code = getQueryString('Code');
            //判断是否传入上号码
            if (Code) {
                JumpPageUrl(Code);
            } else {
                //GetInternetBarId(); //获取网吧id
                //alert(1)
                GetLoginUser(); //判断是否登陆
                setInterval(GoToClientOverOrder, 1000); //订单倒计时

                StartOrStopSetInterval();
            }
            setTimeout(function() {
                $('.loading-modal').hide();
                setTimeout(function() {
                    //$('.guide-modal').hide();
                }, 5500)
            }, 800)
            updateApp_com();
            $('.form-box').on('keydown', function(event) {
                //debugger             
                if (event.keyCode == 13) {
                    var boxs = $(".form-box.active");
                    if (!boxs.length) return;
                    //layer.msg(boxs.length)
                    if (boxs.attr('id') === 'bindPhone') {
                        $('#bindPhone_btn').click();
                    } else {
                        $('.submit_btn').find('button').click();
                    }
                }
            });
        })

        function updateApp_com() {
            try {
                if (sessionStorage.getItem('UpdateApp_com')) return;
                sessionStorage.setItem('UpdateApp_com', 1);
                var a = Extern_Form_jsComInterface('{"funName":"UpdateApp","params":{"appCode":"4233CF1866594BC3A2F01EFA3F890519","appRelativePath":"","appVersion":"","updateType":0,"moduleName":"common.dll","showUpdateWnd":false }}');
            } catch (err) {

            }
        }

        function updateApp(appCode) {
            try {
                var _userInfo = GetLoginUserCookie();
                if (!_userInfo) {
                    return false
                };
                if (sessionStorage.getItem('UpdateApp')) return;
                sessionStorage.setItem('UpdateApp', 1);
                Extern_Form_jsComInterface('{"funName":"UpdateApp","params":{"appCode":"C9F590B12B87483DABFE0C03357E6854","appRelativePath":"shanghao\\\\","appVersion":"","updateType":0,"moduleName":"business.dll","showUpdateWnd":false }}')
            } catch (err) {

            }
        }

        function ComInterface_callback() {
            updateApp();
        }

        function updateApp_com_callback() {
            updateApp();
        }

        function loginClickAction() {
            if ($('#maerseriu_butt').css('display') !== 'none') {
                ShowBox(0);
                _czc.push(['_trackEvent', '启动页', '点击量', '登录']);
            } else {
                window.sfa.contentWindow.location.href = "/Html/mine/my_zuhao.html";
            }
        }

        function ltipmsg() {
            layer.msg('已经是第一页了！')
        }

        function rtipmsg() {
            layer.msg('已经是最后一页了！')
        }
        var isInner = false;
        $('#top').on('mouseenter', mouseenter)
        $('#top').on('mouseleave', function() {
            isInner = false;
        })

        function mouseenter(e) {
            e = e ? e : window.event;
            console.log("X:" + e.screenX + "Y:" + e.screenY)
                //document.writeln("X:"+e.screenX+"Y:"+e.screenY);
            isInner = true;
        }

        function isInPolygon(checkPoint, polygonPoints) {
            var counter = 0;
            var i;
            var xinters;
            var p1, p2;
            var pointCount = polygonPoints.length;
            p1 = polygonPoints[0];

            for (i = 1; i <= pointCount; i++) {
                p2 = polygonPoints[i % pointCount];
                if (
                    checkPoint[0] > Math.min(p1[0], p2[0]) &&
                    checkPoint[0] <= Math.max(p1[0], p2[0])
                ) {
                    if (checkPoint[1] <= Math.max(p1[1], p2[1])) {
                        if (p1[0] != p2[0]) {
                            xinters =
                                (checkPoint[0] - p1[0]) *
                                (p2[1] - p1[1]) /
                                (p2[0] - p1[0]) +
                                p1[1];
                            if (p1[1] == p2[1] || checkPoint[1] <= xinters) {
                                counter++;
                            }
                        }
                    }
                }
                p1 = p2;
            }
            if (counter % 2 == 0) {
                return false;
            } else {
                return true;
            }
        }

        function closeLoginModal() {
            closeWxQRcode();
            $('.expressTime-mask').hide();
            $('.login-modal').hide()
        }

        function closeRegisterModal() {
            //document.getElementById('RegBox').className = 'form-box';
            ShowBox(0)
                // if(window.timer1) clearInterval(window.timer1);
                // $('#register_msg').text('获取验证码');
        }

        function closefindPwdModal() {
            //document.getElementById('findPwdBox').className = 'form-box';
            ShowBox(0)
        }

        function showBindPhoneModal(cb) {          
            if (window.parent.$('#bindPhone').hasClass('active')) return
            window.parent.$('#bindPhone input[type="text"]').val('');
            window.parent.$('#bindPhone').addClass('active');
            $('#bindPhone_btn').unbind();
            $('#bindPhone_btn').on('click', function(e) {
                bindPhone(e.currentTarget, cb)
            })
        }

        function closeBindPhoneModal() {
            document.getElementById('bindPhone').className = 'form-box';
            $('#bindPhone input[type="text"]').val('');
        }

        function closeAuthModal() {
            document.getElementById('authentication').className = 'form-box';
            $('#authentication input[type="text"]').val('');
        }

        function showAuthModal2() {

            var userInfo = parent.GetLoginUserCookie();

            if (userInfo && userInfo.UserID) {
                if (userInfo.Phone) {
                    HttpGet("/ClientUser/GetAuthenticationInfo?userId=" + userInfo.UserID).then(function(result) {
                        if (result.Code == "0") {
                            if (!result.authentication) {
                                document.getElementById('authentication').className = 'form-box active';
                                $('#RealNameAuthBtn').unbind();
                                $('#RealNameAuthBtn').on('click', function() {
                                    var realName = $("input[name='realName']").eq(0).val();
                                    var certificate = $("input[name='certificate']").eq(0).val();
                                    if (realName.length === 0) {
                                        layer.msg("请输入您的真实姓名")
                                        $("input[name='realName']").eq(1).focus();
                                        return false;
                                    }
                                    if (certificate.length === 0) {
                                        layer.msg("请输入您的身份证号码")
                                        $("input[name='certificate']").eq(1).focus();
                                        return false;
                                    }
                                    var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                                    if (reg.test(certificate) === false) {
                                        layer.msg("身份证输入不合法");
                                        $("input[name='certificate']").eq(1).focus();
                                        return false;
                                    }

                                    var loading = layer.msg('身份信息认证中...', {
                                        icon: 16,
                                        shade: 0.01,
                                        time: 0
                                    });

                                    HttpGet("/ClientUser/OrderRealNameAuthentication?userId=" + userInfo.UserID + "&realName=" + realName + "&certificate=" + certificate).then(function(data) {
                                        layer.close(loading);
                                        if (data.Code == 0) {
                                            // layer.alert("认证成功", { title: '认证结果', icon: 1 }, function (index) {
                                            //     layer.close(index);

                                            //     //window.document.location.reload(true);
                                            // });
                                            layer.msg("认证成功");
                                            setTimeout(function() {
                                                document.getElementById('authentication').className = 'form-box';
                                                $('#authentication input[type="text"]').val('');
                                            }, 1500)
                                        } else {
                                            layer.msg(data.Message);
                                        }
                                    }).catch(function() {
                                        layer.msg('服务异常');
                                        layer.close(loading);
                                    });
                                })
                            } else {
                                layer.msg('已经实名认证过了！')
                            }
                        } else {
                            layer.msg(result.Message)
                        }
                    })

                } else {
                    // window.parent.$('#bindPhone input[type="text"]').val('');
                    // window.parent.$('#bindPhone').addClass('active');
                    parent.showBindPhoneModal(function() {
                        parent.showAuthModal2();
                    });
                }
            } else {
                //layer.msg('请先登录')
                ShowBox(0)
            }

        }

        function showAuthModal(cb) {
            var _userInfo = GetLoginUserCookie();
            HttpGet("/ClientUser/GetAuthenticationInfo?userId=" + _userInfo.UserID).then(function(result) {
                debugger
                if (result.Code == "0") {
                    var authenticationConfig = (function() {
                        var age = result.age;
                        var authentication = result.authentication;
                        var openAuthentication = result.OpenRealName;
                        var consumptionLimit = result.ConsumptionLimit;
                        var zhichu = result.zhichu;
                        var ageIsOpen = result.ageIsOpen;
                        /**
                         * 下单实名认证
                         * */
                        var orderRealNameAuthentication = function() {
                            var realName = $("input[name='realName']").eq(0).val();
                            var certificate = $("input[name='certificate']").eq(0).val();
                            if (realName.length === 0) {
                                layer.msg("请输入您的真实姓名")
                                $("input[name='realName']").eq(1).focus();
                                return false;
                            }
                            if (certificate.length === 0) {
                                layer.msg("请输入您的身份证号码")
                                $("input[name='certificate']").eq(1).focus();
                                return false;
                            }
                            var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                            if (reg.test(certificate) === false) {
                                layer.msg("身份证输入不合法");
                                $("input[name='certificate']").eq(1).focus();
                                return false;
                            }

                            var loading = layer.msg('身份信息认证中...', {
                                icon: 16,
                                shade: 0.01,
                                time: 0
                            });

                            HttpGet("/ClientUser/OrderRealNameAuthentication?userId=" + _userInfo.UserID + "&realName=" + realName + "&certificate=" + certificate).then(function(data) {
                                layer.close(loading);
                                if (data.Code == 0) {
                                    // layer.alert("认证成功", { title: '认证结果', icon: 1 }, function (index) {
                                    //     layer.close(index);

                                    //     //window.document.location.reload(true);
                                    // });
                                    layer.msg("认证成功");
                                    setTimeout(function() {
                                        document.getElementById('authentication').className = 'form-box';
                                    }, 1500)
                                } else {
                                    layer.msg(data.Message);
                                }
                            }).catch(function() {
                                layer.msg('服务异常');
                                layer.close(loading);
                            });
                        };

                        return {
                            getAge: function() {
                                return age
                            },
                            getAuthentication: function() {
                                return authentication
                            },
                            getOpenAuthentication: function() {
                                return (openAuthentication === "true")
                            },
                            getConsumptionLimit: function() {
                                return consumptionLimit
                            },
                            getZhichu: function() {
                                return zhichu
                            },
                            getAgeIsOpen: function() {
                                return ageIsOpen
                            },
                            orderRealNameAuthentication: orderRealNameAuthentication,
                        }
                    })();

                    function realNameAuthentication() {
                        var a = authenticationConfig.getOpenAuthentication();
                        debugger
                        if (authenticationConfig.getOpenAuthentication()) {
                            if (authenticationConfig.getAuthentication()) {
                                if (authenticationConfig.getAge() < 18 && authenticationConfig.getAgeIsOpen) {
                                    //未满18岁，无法消费
                                    layer.alert("您未满18岁,无法消费", {
                                        title: '消费限制'
                                    });
                                    return false;
                                } else {
                                    //继续下单

                                    return true;
                                }
                            } else {
                                //弹出实名认证
                                document.getElementById('authentication').className = 'form-box active';
                                return false;
                            }
                        } else {
                            if ((authenticationConfig.getZhichu() + parseFloat(document.getElementById('sfa').contentWindow.$("#sumPrice").text())) <= authenticationConfig.getConsumptionLimit()) {
                                return true;
                            } else {
                                if (authenticationConfig.getAuthentication()) {
                                    if (authenticationConfig.getAge() < 18) {
                                        //当月下单金额已超过上限，不允许下单
                                        layer.alert("当月下单金额已超过上限", {
                                            title: '消费限制'
                                        });
                                        return false;
                                    } else {
                                        return true;
                                    }
                                } else {
                                    //弹出实名认证
                                    document.getElementById('authentication').className = 'form-box active';
                                    return false;
                                }
                            }
                        }
                    }


                    $('#RealNameAuthBtn').on('click', function() {

                        authenticationConfig.orderRealNameAuthentication()
                    })
                    if (!realNameAuthentication()) {
                        return false;
                    }

                    if (cb && typeof cb === 'function') {
                        document.getElementById('authentication').className = 'form-box';
                        cb()
                    }
                    // location.href = 'pay_state.html?id=' + id + "," + type + "," + $("#Time").html()+'&accelerator='+accelerator;
                }
            }).catch(function(result) {});

        }

        function showAuthModal3(cb) {
            var _userInfo = GetLoginUserCookie();
            HttpGet("/ClientUser/GetAuthenticationInfo?userId=" + _userInfo.UserID).then(function(result) {
                if (result.Code == "0") {
                    var authenticationConfig = (function() {
                        var age = result.age;
                        var authentication = result.authentication;
                        var openAuthentication = result.OpenRealName;
                        var consumptionLimit = result.ConsumptionLimit;
                        var zhichu = result.zhichu;
                        var ageIsOpen = result.ageIsOpen;
                        /**
                         * 下单实名认证
                         * */
                        var orderRealNameAuthentication = function() {
                            var realName = $("input[name='realName']").eq(0).val();
                            var certificate = $("input[name='certificate']").eq(0).val();
                            if (realName.length === 0) {
                                layer.msg("请输入您的真实姓名")
                                $("input[name='realName']").eq(1).focus();
                                return false;
                            }
                            if (certificate.length === 0) {
                                layer.msg("请输入您的身份证号码")
                                $("input[name='certificate']").eq(1).focus();
                                return false;
                            }
                            var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                            if (reg.test(certificate) === false) {
                                layer.msg("身份证输入不合法");
                                $("input[name='certificate']").eq(1).focus();
                                return false;
                            }

                            var loading = layer.msg('身份信息认证中...', {
                                icon: 16,
                                shade: 0.01,
                                time: 0
                            });

                            HttpGet("/ClientUser/OrderRealNameAuthentication?userId=" + _userInfo.UserID + "&realName=" + realName + "&certificate=" + certificate).then(function(data) {
                                layer.close(loading);
                                if (data.Code == 0) {
                                    // layer.alert("认证成功", { title: '认证结果', icon: 1 }, function (index) {
                                    //     layer.close(index);

                                    //     //window.document.location.reload(true);
                                    // });
                                    layer.msg("认证成功");
                                    setTimeout(function() {
                                        document.getElementById('authentication').className = 'form-box';
                                    }, 1500)
                                } else {
                                    layer.msg(data.Message);
                                }
                            }).catch(function() {
                                layer.msg('服务异常');
                                layer.close(loading);
                            });
                        };

                        return {
                            getAge: function() {
                                return age
                            },
                            getAuthentication: function() {
                                return authentication
                            },
                            getOpenAuthentication: function() {
                                return (openAuthentication === "true")
                            },
                            getConsumptionLimit: function() {
                                return consumptionLimit
                            },
                            getZhichu: function() {
                                return zhichu
                            },
                            getAgeIsOpen: function() {
                                return ageIsOpen
                            },
                            orderRealNameAuthentication: orderRealNameAuthentication,
                        }
                    })();

                    function realNameAuthentication() {
                        var a = authenticationConfig.getOpenAuthentication();
                        debugger
                        if (authenticationConfig.getOpenAuthentication()) {
                            if (authenticationConfig.getAuthentication()) {
                                if (authenticationConfig.getAge() < 18 && authenticationConfig.getAgeIsOpen) {
                                    //未满18岁，无法消费
                                    layer.alert("您未满18岁,无法消费", {
                                        title: '消费限制'
                                    });
                                    return false;
                                } else {
                                    //继续下单

                                    return true;
                                }
                            } else {
                                //弹出实名认证
                                document.getElementById('authentication').className = 'form-box active';
                                return false;
                            }
                        } else {
                            // if ((authenticationConfig.getZhichu() + parseFloat(document.getElementById('sfa').contentWindow.$("#sumPrice").text())) <= authenticationConfig.getConsumptionLimit()) {
                            //     return true;
                            // } else {
                            //     if (authenticationConfig.getAuthentication()) {
                            //         if (authenticationConfig.getAge() < 18) {
                            //             //当月下单金额已超过上限，不允许下单
                            //             layer.alert("当月下单金额已超过上限", {
                            //                 title: '消费限制'
                            //             });
                            //             return false;
                            //         } else {
                            //             return true;
                            //         }
                            //     } else {
                            //         //弹出实名认证
                            //         document.getElementById('authentication').className = 'form-box active';
                            //         return false;
                            //     }
                            // }
                            return true;
                        }
                    }

                    $('#RealNameAuthBtn').unbind('click');
                    $('#RealNameAuthBtn').on('click', function() {
                        authenticationConfig.orderRealNameAuthentication()
                    })
                    if (!realNameAuthentication()) {
                        return false;
                    }

                    if (cb && typeof cb === 'function') {
                        document.getElementById('authentication').className = 'form-box';
                        cb(authenticationConfig)
                    }
                    // location.href = 'pay_state.html?id=' + id + "," + type + "," + $("#Time").html()+'&accelerator='+accelerator;
                }
            }).catch(function(result) {});

        }

        $.removeCookie('errorObj');
        $.removeCookie('hasError');
		
		function iframeLoad(e) {
			try {
				var path = window.sfa.contentWindow ? window.sfa.contentWindow.location.pathname.toLocaleLowerCase() : window.sfa.location.pathname.toLocaleLowerCase();
				console.log(path, 888)
				$(".sub-menu-list li li").removeClass('active');
				$(".sub-menu-list li li[data-url='" + path + "']").addClass('active');  
			} catch (error) {
                
            }  
        }

        function zuhaoHallState() {
            $(".sub-left-list li").removeClass('active');
            $(".sub-left-list li").eq(1).addClass('active');
        }

        var registerCountdown = 0;
        var countdown = 0;
        var _arrBrowseRecords = new Array();
        var _currRecordIndex = 0;
        var _overOrderArray = new Array();
        var _loginUserBalance = parseFloat('0').toFixed(2);
        var _loginUserId = '';

        var _status = 0;
        var _intervalHandle;

        _arrBrowseRecords.push(0);
        //判断是否登陆
        function GetLoginUser() {
            var _userInfo = GetLoginUserCookie();
            //debugger
            //console.log(JSON.stringify(_userInfo))
            //alert(JSON.stringify(_userInfo))
            if (_userInfo != null) {
                _loginUserId = _userInfo.UserID;
                if (_userInfo.HeadImg && _userInfo.HeadImg !== '/Content/public/img/vendor_default.png') {
                    $("#maerseriu_img").attr("src", _userInfo.HeadImg);
                    $("#maerseriu_img2").attr("src", _userInfo.HeadImg);
                } else {
                    // /Content/public/img/index/no-logo.png  /Content/public/img/vendor_default.png
                    $("#maerseriu_img").attr("src", "/Content/public/img/default.png");
                    $("#maerseriu_img2").attr("src", "/Content/public/img/default.png");
                }
                $("#maerseriu_name").html(noPassByMobile(_userInfo.NickName || _userInfo.UserName));
                GetUserBalance();

            } else {
                $("#maerseriu_utre").addClass("hide");
                $("#maerseriu_butt").removeClass("hide");
            }
        }

        //最小化
        function minimize(e) {
            _czc.push(['_trackEvent', '最小化按钮', '点击', '—']);
            Extern_Form_minimize();
            //Extern_Form_jsComInterface('{"funName":"jsMinClick","params":null}')
        }
        //关闭
        function exit(e) {
            Extern_Form_exit();
            //Extern_Form_jsComInterface('{"funName":"jsCloseClick","params":null}')
        }
        (function() {
            // Vueopen.PostBoxtitle('提示','你的账号')
            //头部拖动
            $("#top,#top2").mousedown(function(e) {
                e.stopPropagation();
                e.preventDefault();
                try {
                    $('#searchKey').blur()
                    Extern_Form_caption_click("down");
                } catch (error) {}
            })
            $("#top,#top2").mouseup(function(e) {
                e.stopPropagation();
                e.preventDefault();
                try {
                    Extern_Form_caption_click("up");
                } catch (error) {}
            });


            //只有第一次打开才能获取此活动编号，新刷后，此方法获取不到值
            //var netber_activity_list = Extern_Form_get_netbarid_and_activityid();
            //  var netber_activity_list=Extern_Form_jsComInterface('{"funName":"GetNetbarId","params":null}');
            //   $.cookie("netberactivityno", netber_activity_list, {
            //     path: '/'
            //   });

        })();

        //注销登录
        function logout() {
            var _userInfo = GetLoginUserCookie();
            if (!_userInfo) {
                layer.msg('您未登录');
                return;
            }
            layer.confirm('您确定要注销登录？', {
                icon: 3,
                title: '信息'
            }, function(index) {
                $.cookie("LoginUser", null, {
                    path: '/'
                });
                //SaveCustomData("LoginUser","")
                $('#logState').text("登录");
                $('#maerseriu_img').attr("src", '/Content/public/img/default.png');
                $('#maerseriu_img2').attr("src", '/Content/public/img/default.png');

                $('#user_balance_lable,.recharge-btn').hide();
                $('#top-login-btn').show();
                $("#user_balance_lable").html("");
                $('#pop-balance').text('￥0.00');



                document.getElementById("sfa").src = "/Html/usual/index.html";
                layer.close(index);

                _status = 0;
                StartOrStopSetInterval();
            });
        }

        //QQ授权登录
        function QQLogin() {
            //$("body>div.active").removeClass('active');
            var locaturl = window.location.origin + '/Html/login/AuthSuccess.html';
            layer.open({
                type: 2,
                title: 'QQ授权登录',
                area: ['550px', '370px'],
                shade: 0.5,
                shadeClose: false,
                content: ['https://graph.qq.com/oauth2.0/show?which=Login&display=pc&response_type=code&client_id=101401174&redirect_uri=https%3a%2f%2fwww.ggzuhao.com%2fLogin%2fQQcallBack&state=' + locaturl,
                    'no'
                ],
                success: function(layero, index) {
                    console.log(layero, index)
                }
            });
        }

        function phoneLogin() {
            _czc.push(['_trackEvent', '登录弹框', '点击量', '账号密码登录']);
            $('.code-login').hide();
            $('.password-login').show();
            $('#loginBox_pone .login-btn').parent().addClass('submit_btn');
            $('#loginBox_over .login-btn').parent().removeClass('submit_btn');
            $('#loginBox_pone').css('display', 'block');
            $('#loginBox_over').css('display', 'none');
            $('.wx-login').hide();
            $('#login-phone-over').css('display', 'block');
            exTimer && clearInterval(exTimer);
            scanWxCodeTimer && clearInterval(scanWxCodeTimer);
            //closeWxQRcode()
        }
        // 微信登录
        function WXLogin() {
            $('#login-phone-over').hide();
            // $('#loginBox_pone').css('display', 'none');
            // $('#loginBox_over').css('display', 'none');
            $('.expressTime-mask').hide();
            exTimer && clearInterval(exTimer);
            scanWxCodeTimer && clearInterval(scanWxCodeTimer);
            $('.wx-code').addClass('show');
            // $.ajax({
            //     // url: 'https://ggzuhaowechat.ggzuhao.com/Default/GetQRcodeInfo?expTime=180',
            //     url: 'Login/GetQRcodeInfo?expTime=180',
            //     data: {},
            //     //dataType:'text',
            //     //dataType:'jsonp',
            //     type: 'GET',
            //     //timeout:20000,
            //     success: function(res) {
            //         //$("#wx-toast").show();
            //         $('#wxQRcode').attr('src', res.url);
            //         $('.wx-login').show();
            //         exTime();
            //         scanWxCode(res.key);
                    
            //     },
            //     error: function(res) {
                    
            //     }
            // })
            HttpGet('Login/GetQRcodeInfo?expTime=180').then(function(res){
                $('#wxQRcode').attr('src', res.url);
                $('.wx-login').show();
                exTime();
                window.parent.ticketKey = res.key
                scanWxCode(res.key);
            })
        }

        // 微信扫码轮询
        var scanWxCodeTimer = null,
            exTimer = null;

        function scanWxCode(ticketKey) {
            scanWxCodeTimer = setInterval(function() {
                // HttpGet('login/WeChatScanRegLogin', {
                //     ticketKey: ticketKey
                // }).then(function(res) {
                //     if (res.Code == 0) {
                //         closeWxQRcode();
                //         SetLoginUserCookie(JSON.stringify(res));
                //         GetLoginUser();
                //         $('.login-modal').hide();
                //         document.getElementById("sfa").contentWindow.location.reload();
                //         var _userInfo = GetLoginUserCookie();
                //         if (!_userInfo.Phone) {
                //             // window.parent.$('#bindPhone input[type="text"]').val('');
                //             // window.parent.$('#bindPhone').addClass('active');
                //             showBindPhoneModal()
                //         }
                //         _czc.push(['_trackEvent', '登录弹窗', '微信扫码登录成功', '数量']);
                //     } else if (res.Code == 10008) {
                //         layer.msg(res.Message);
                //         closeWxQRcode();
                //     }
                // })
                HttpGet('Login/WechatLogin', {
                    ticketKey: ticketKey
                })
                .then(function(res) {
                    if (res.Code == 0) {
                        closeWxQRcode();
                        SetLoginUserCookie(JSON.stringify(res));
                        GetLoginUser();
                        $('.login-modal').hide();
                        document.getElementById("sfa").contentWindow.location.reload();
                        var _userInfo = GetLoginUserCookie();
                        if (!_userInfo.Phone) {                           
                            showBindPhoneModal()
                        }
                        _czc.push(['_trackEvent', '登录弹窗', '微信扫码登录成功', '数量']);
                    }else if(res.Code == 30004){
                        closeWxQRcode();
                        $('.login-modal').hide();
                        showBindPhoneModal()                
                    }
                })
            }, 1000)
        }

        // 二维码过期处理
        function exTime() {
            exTimer && clearInterval(exTimer);
            exTimer = setTimeout(function() {
                scanWxCodeTimer && clearInterval(scanWxCodeTimer);
                $('.expressTime-mask').show();
            }, 180000)
        }

        function reloadQRcode() {
            exTimer && clearInterval(exTimer);
            scanWxCodeTimer && clearInterval(scanWxCodeTimer);
            // $.ajax({
            //     url: 'https://ggzuhaowechat.ggzuhao.com/Default/GetQRcodeInfo?expTime=180',
            //     data: {},
            //     //dataType:'text',
            //     //dataType:'jsonp',
            //     type: 'GET',
            //     //timeout:20000,
            //     success: function(res) {
            //         $('.expressTime-mask').hide();
            //         $('#wxQRcode').attr('src', res.url)
            //         exTime();
            //         scanWxCode(res.key);
            //     },
            //     error: function(res) {
            //         //reject(res);
            //         //console.log(res)
            //     }
            // })
            HttpGet('Login/GetQRcodeInfo?expTime=180').then(function(res){
                $('#wxQRcode').attr('src', res.url);
                $('.wx-login').show();
                exTime();
                window.parent.ticketKey = res.key
                scanWxCode(res.key);
            })
        }

        // 关闭微信二维码
        function closeWxQRcode() {
            exTimer && clearInterval(exTimer);
            scanWxCodeTimer && clearInterval(scanWxCodeTimer);
            // $('.wx-code').removeClass('show');
            // $('.wx-code').css('display', 'none');
            // $('#loginBox_li1').removeClass('active');
            // $('#loginBox_li2').addClass('active');
            // $('#loginBox_over .btn_login').parent().addClass('submit_btn');
            // $('#loginBox_pone .btn_login').parent().removeClass('submit_btn');
            // $('#loginBox_pone').css('display', 'none');
            // $('#loginBox_over').css('display', 'block');

            $('.password-login').hide();
            $('.code-login').show();
            $('.wx-login').hide();
            $('#loginBox_pone').hide();
            $('#loginBox_over').show();
            $('#login-phone-over').show();
            $('#loginBox_over .btn_login').parent().addClass('submit_btn');
            $('#loginBox_pone .btn_login').parent().removeClass('submit_btn');
        }

        function ShowBox(index) {
            getLoginConfig()
            $(".login-modal").hide();
            $(".login-modal").eq(index).show().find(":password").val('');
            $(".login-modal").eq(index).show().find("input[name='phoneCode']").val('');
            exTimer && clearInterval(exTimer);
            scanWxCodeTimer && clearInterval(scanWxCodeTimer);
            if (index === 1) {
                $('#RegBox .login-btn').parent().addClass('submit_btn');
            } else if (index == 2) {
                $(".login-modal").eq(index).find("input").val('');
                $('#findPwdBox .btn-login').parent().addClass('submit_btn');
            } else {
                $('#RegBox .login-btn').parent().removeClass('submit_btn');
                $('#findPwdBox .login-btn').parent().removeClass('submit_btn');
                if (window.wxLoginStatus) {
                    WXLogin();
                }
				
                // $('#loginBox_pone').siblings().not('.box-content-header,.box-content-footer').hide()
                // if (!window.wxLoginStatus) {
                //     $('#loginBox_pone').show()
                // }
                // if (index == 0) {
                //     var show = $('#loginBox_pone').css('display');
                //     if (show === 'none') {
                //         $('#loginBox_over .btn_login').parent().addClass('submit_btn');
                //         $('#loginBox_pone .btn_login').parent().removeClass('submit_btn');
                //     } else {
                //         $('#loginBox_pone .btn_login').parent().addClass('submit_btn');
                //         $('#loginBox_over .btn_login').parent().removeClass('submit_btn');
                //     }
                // }
            }
        }

        //提交注册、修改密码
        function Submit(target, type) {
            var form = $(target).parents("form").get(0);
            var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
            var inputPhone = $.trim(form["phone"].value);
            if (inputPhone == '') {
                layer.alert("手机号不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return;
            }
            if (!reg.test(inputPhone)) {
                layer.alert("手机号码输入格式不正确", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return;
            }
            if ($.trim(form["phoneCode"].value) == '') {
                layer.alert("手机验证码不能为空", {
                    title: '提示',
                    icon: 5
                });
                phoneCode.focus();
                return;
            }

            if ($.trim(form["pass"].value) == '') {
                layer.alert("密码不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["pass"].focus();
                return;
            }

            if ($.trim(form["pass"].value).length < 6 || $.trim(form["pass"].value).length > 18) {
                layer.alert("密码的长度为6~18位", {
                    title: '提示',
                    icon: 5
                });
                form["pass"].focus();
                return;
            }

            if (form["agree"]) {
                var checkAgree = $(form["agree"]);
                if (!checkAgree.is(':checked')) {
                    layer.alert("您还没有同意GG租号平台用户服务协议", {
                        title: '提示',
                        icon: 5
                    });
                    form["agree"].focus();
                    return;
                }
            }
            var loadIndex = layer.load(2);
            var url = '/' + $(form).attr("url");

            var _openid = '';
            var hidOpenId = $("#sfa").contents().find("#hidOpenId");
            if (hidOpenId) {
                _openid = hidOpenId.val();
            }
            HttpGet(url, {
                phone: inputPhone,
                pass: form["pass"].value,
                phoneCode: form["phoneCode"].value,
                // barKey: GetInternetBarId(),
                openid: _openid
            }).then(function(result) {
                layer.close(loadIndex);
                if (result.Code == "0") {
                    if (type == "reg") {
                        layer.alert("注册成功", {
                            title: '提示',
                            icon: 6
                        });
                        //$("body>div.active").removeClass('active');
                        $('.login-modal').hide()
                        SetLoginUserCookie(result.UserInfo);
                        GetLoginUser();
                    } else if (type == 'findPwd') {
                        layer.msg("提交成功");
                        setTimeout(function() {
                            ShowBox(0);
                            //closeWxQRcode();
                        }, 1200)
                    } else {
                        layer.alert("操作成功", {
                            title: '提示',
                            icon: 6
                        });
                    }
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {
                layer.close(loadIndex);
                layer.alert("操作失败，" + result.message, {
                    title: '提示',
                    icon: 5
                });
            });
        }

        //手机绑定
        function bindPhone(target, cb) {
            var form = $(target).parents("form").get(0);
            var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
            var inputPhone = $.trim(form["userPhone"].value);
            if (inputPhone == '') {
                layer.alert("手机号不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["userPhone"].focus();
                return;
            }
            if (!reg.test(inputPhone)) {
                layer.alert("手机号码输入格式不正确", {
                    title: '提示',
                    icon: 5
                });
                form["userPhone"].focus();
                return;
            }
            if ($.trim(form["phoneValiCode"].value) == '') {
                layer.alert("手机验证码不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["phoneValiCode"].focus();
                return;
            }

            if (form["agree"]) {
                var checkAgree = $(form["agree"]);
                if (!checkAgree.is(':checked')) {
                    layer.alert("您还没有同意GG租号平台用户服务协议", {
                        title: '提示',
                        icon: 5
                    });
                    form["agree"].focus();
                    return;
                }
            }
            var loadIndex = layer.load(2);
            var url = '/' + $(form).attr("url");

            var _openid = '';
            var hidOpenId = $("#sfa").contents().find("#hidOpenId");
            if (hidOpenId) {
                _openid = hidOpenId.val();
            }
            // var _userInfo = GetLoginUserCookie();
            // var _loginUserId = _userInfo.UserID;
            HttpGet(url, {
                userPhone: inputPhone,
                phoneCode: form["phoneValiCode"].value,
                // barKey: GetInternetBarId(),
                // userid: _loginUserId
                ticketKey: window.parent.ticketKey
            }).then(function(result) {
                //layer.msg(JSON.stringify(result));        
                layer.close(loadIndex);
                if (result.Code == "0") {
                    layer.msg("手机号绑定成功");
                    $("#bindPhone").removeClass('active');
                    SetLoginUserCookie(JSON.stringify(result));
                    GetLoginUser();
                    if (cb && typeof cb === 'function') {
                        cb();
                    } else {
                        document.getElementById('sfa').contentWindow.location.reload();
                    }
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {
                // layer.msg(JSON.stringify(result));
                layer.close(loadIndex);
                layer.alert("操作失败，" + result.Message, {
                    title: '提示',
                    icon: 5
                });
            });
        }

        //获取验证码
        function GetVerifyCode(obj) {
            if (registerCountdown != 0) {
                return false;
            }
            var form = $(obj).parents("form").get(0);

            var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
            var inputPhone = $.trim(form["phone"].value);
            if (inputPhone == '') {
                layer.alert("手机号不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return false;
            }
            if (!reg.test(inputPhone)) {
                layer.alert("手机号码输入格式不正确", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return false;
            }

            var loadIndex = layer.load(2);
            HttpGet("Login/SendSMS", {
                phone: inputPhone
            }).then(function(result) {
                layer.close(loadIndex);
                if (result.Code == "0") {
                    registerCountdown = 60;
                    var btn = $(obj);
                    btn.css("cursor", "not-allowed");
                    btn.attr('disabled', true);
                    btn.addClass('disabled');
                    btn.text("60s");
                    window.timer1 = window.setInterval(function() {
                        registerCountdown--;
                        if (registerCountdown == 0) {
                            window.clearInterval(timer1);
                            btn.css("cursor", "pointer");
                            btn.text("获取验证码");
                            btn.removeAttr("disabled");
                            btn.removeClass('disabled');
                            return;
                        }
                        btn.text("" + registerCountdown + "s");
                    }, 1000);
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {
                layer.close(loadIndex);
                layer.alert("发送验证码异常", {
                    title: '提示',
                    icon: 5
                });
            });
        }
        //获取验证码
        function GetFindPassVerifyCode(obj) {
            if (countdown != 0) {
                return false;
            }
            var form = $(obj).parents("form").get(0);

            var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
            var inputPhone = $.trim(form["phone"].value);
            if (inputPhone == '') {
                layer.alert("手机号不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return false;
            }
            if (!reg.test(inputPhone)) {
                layer.alert("手机号码输入格式不正确", {
                    title: '提示',
                    icon: 5
                });
                form["phone"].focus();
                return false;
            }

            var loadIndex = layer.load(2);
            HttpGet("Login/FindPassSendSMS", {
                phone: inputPhone
            }).then(function(result) {
                layer.close(loadIndex);
                if (result.Code == "0") {
                    countdown = 60;
                    var btn = $(obj);
                    btn.css("cursor", "not-allowed");
                    btn.attr('disabled', true);
                    btn.addClass('disabled');
                    btn.text("重新发送(60s)");
                    var timer1 = window.setInterval(function() {
                        countdown--;
                        if (countdown == 0) {
                            window.clearInterval(timer1);
                            btn.css("cursor", "pointer");
                            btn.text("获取验证码");
                            btn.removeAttr("disabled");
                            btn.removeClass('disabled');
                            return;
                        }
                        btn.text("重新发送(" + countdown + "s)");
                    }, 1000);
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {
                layer.close(loadIndex);
                layer.alert("发送验证码异常", {
                    title: '提示',
                    icon: 5
                });
            });
        }

        // 手机绑定获取验证码
        function GetBindVerifyCode(obj) {
            if (countdown != 0) {
                return false;
            }
            var form = $(obj).parents("form").get(0);

            var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
            var inputPhone = $.trim(form["userPhone"].value);
            if (inputPhone == '') {
                layer.alert("手机号不能为空", {
                    title: '提示',
                    icon: 5
                });
                form["userPhone"].focus();
                return false;
            }
            if (!reg.test(inputPhone)) {
                layer.alert("手机号码输入格式不正确", {
                    title: '提示',
                    icon: 5
                });
                form["userPhone"].focus();
                return false;
            }
            var loadIndex = layer.load(2);
            HttpGet("Login/FindPassSendSMS2", {
                phone: inputPhone
            }).then(function(result) {
                layer.close(loadIndex);
                if (result.Code == "0") {
                    countdown = 60;
                    var btn = $(obj);
                    btn.css("cursor", "not-allowed");
                    btn.attr('disabled', true);
                    btn.addClass('disabled');
                    btn.text("重新发送(60s)");
                    var timer1 = window.setInterval(function() {
                        countdown--;
                        if (countdown == 0) {
                            window.clearInterval(timer1);
                            btn.css("cursor", "pointer");
                            btn.text("获取验证码");
                            btn.removeAttr("disabled");
                            btn.removeClass('disabled');
                            return;
                        }
                        btn.text("重新发送(" + countdown + "s)");
                    }, 1000);
                } else {
                    layer.alert(result.Message, {
                        title: '提示',
                        icon: 5
                    });
                }
            }).catch(function(result) {
                layer.close(loadIndex);
                layer.alert("发送验证码异常", {
                    title: '提示',
                    icon: 5
                });
            });
        }
        //获取用户余额
        function GetUserBalance(cb) {
            console.log('获取用户余额');
            if (_loginUserId != '') {
                var url = 'clientuser/GetClientUserBalance';
                HttpGet(url, {
                    userId: _loginUserId
                }).then(function(result) {
                    //这里处理成功回调
                    if (result.Code == "0") {
                        $('#top-login-btn').hide();
                        $("#user_balance_lable").html('余额：<span class="color-F21E1E" style="font-weight: 700;">￥' + result.Balance + "元</span>");
                        $('#pop-balance').text('￥' + result.Balance);
                        $('#recharge-pop-balance').text(result.Balance);
                        $('#user_balance_lable,.recharge-btn').show();
                        if (cb && typeof cb === 'function') {
                            cb(result.Balance)
                        }
                    } else {
                        layer.alert(result.Message, {
                            title: '提示',
                            icon: 5
                        });
                    }
                }).catch(function(result) {
                    console.log(result);
                    //这里处理失败回调
                    layer.alert("解析数据异常11", {
                        title: '提示',
                        icon: 5
                    });
                });
            }
        }
        //绑定回车事件
        // $(document).keydown(function(event) {      
        //   if (event.keyCode == 13) {
        //     var boxs = $("body>div.active");
        //     console.log(boxs)
        //     if (boxs.length > 0) {
        //       //$('.submit_btn').eq(0).click();
        //       boxs.eq(0).find('.submit_btn').click();
        //     }
        //   }
        // });
        // $(document).on('keydown',function(event) {  
        //   alert(888)   
        //   if (event.keyCode == 13) {
        //     var boxs = $(".form-box.active");        
        //     if (!boxs.length) return;
        //     //layer.msg(boxs.length)
        //     $('.submit_btn').find('button').click();
        //   }
        // });

        function AlertMegsBox(content, time, _icon) {
            layer.closeAll();
            var closeTime = time * 1000;
            layer.alert(content, {
                icon: _icon,
                btn: [],
                time: closeTime
            });
        }

        function ShowLayer(Message, MsgShowTime, MsgType, isCallBack) {
            layer.closeAll()
            var closeTime = MsgShowTime * 1000;
            if (MsgType == 1) { //ok
                if (Message != "") {
                    layer.alert(Message, {
                        title: '温馨提示',
                        icon: 1,
                        time: closeTime,
                        success: function(layero, index) {
                            if (isCallBack == 1) {
                                BackSoSo();
                            }
                        }
                    }, function(index) {
                        layer.close(index);
                    });
                }
            } else if (MsgType == 2) { //error
                if (Message != "") {
                    layer.alert(Message, {
                        title: '温馨提示',
                        icon: 2,
                        time: closeTime,
                        success: function(layero, index) {
                            if (isCallBack == 1) {
                                BackSoSo();
                            }
                        }
                    }, function(index) {
                        layer.close(index);
                    });
                }
            }
            //else if(msgType==3)
            //{//info
            //    layer.alert(content, { title: title, icon: 7 });
            //}
        }

        //打开加速器
        function openAccelerator() {
            var returnValue = Extern_Form_boost();
            if (!returnValue[0]) {
                layer.msg('未安装加速器');
            }
        }
        //
        function OpenToUrl() {
            OpenUrl('https://www.ggzuhao.com/?from=clientweb');
        }
        //提交客户端信息
        function ActiveMachine(prams) {
            $.get("http://192.168.1.200:8002/zh/AgencyZH/ActiveMachine?" + prams, function(data) {
                //提交成功
            });
        }

        function OpenUrl(url) {
            //Extern_Form_open_ie_url(url);     
            //var a= '{"funName":"StartUrl","params":"'+url+'"}';
            Extern_Form_jsComInterface('{"funName":"StartUrl","params":"' + url + '"}');
        }

        function ShowAlert(content, icon) {
            layer.closeAll();
            layer.alert(content, {
                title: '温馨提示',
                icon: icon
            });
        }

        function ShowMsgBox(content, action) {
            layer.closeAll()
            if (action == 'show') {
                layer.closeAll();
                layerMsgIndex = layer.msg(content, {
                    shade: [0.4],
                    time: 0,
                    icon: 4
                });
            } else {
                layer.closeAll();
            }
        }
        var layerLoadingIndex = 0
        function ShowLoadingBox(content, action) {
            layer.closeAll()
            if (action == 'show') {
                layer.closeAll();
                layerLoadingIndex = layer.msg(content, {
                    // shade: [0.4],
                    // time: 0,
                    // icon: 4
                    icon: 16,
                    time: false,
                    shade: 0.1
                });
            } else {
                layer.closeAll();
            }
        }

        var _msgLayerIndex = 0;

        function ShowMsg(content) {
            layer.closeAll();
            _msgLayerIndex = layer.msg(content, {
                shade: 0.7,
                time: (1000 * 60)
            });
        }

        function CloseMsg() {
            layer.close(_msgLayerIndex);
        }

        function ShowMsg(content, timer) {
            var _timer = (timer || 1) * 1000;
            layer.msg(content, {
                shade: 0.7,
                time: _timer
            });
        }

        var _msgConfirmIndex = 0;

        function ShowConfirm(content, params, callback) {
            _msgConfirmIndex = layer.confirm(content, params, callback);
        }

        function CloseConfirm() {
            layer.close(_msgConfirmIndex);
        }

        var _orderObj;

        function GetOrders(orderInfo) {
            if (orderInfo != "" && orderInfo.toString().substring(0, 1) == "{") {
                window.sfa.contentWindow.BindList(orderInfo);
            } else {
                layer.alert('数据格式错误', {
                    title: '提示',
                    icon: 2
                });
            }
        }

        function StartGame(shCode, gameName, t, zoneName, platform_id) {
            // Extern_Form_startgame(shCode);            
            // alert(shCode)
            var params = {
                code: shCode,
                gameName: gameName
            };
            localStorage.setItem('startgamename',gameName)
            // alert(JSON.stringify({"funName":"StartGame","params":params}))
            //Extern_Form_jsComInterface(JSON.stringify({"funName":"StartGame","params":params}))
            // Extern_Form_jsComInterface('{"funName":"StartGame","params":{"platform_id":"' + (platform_id === '0' ? 3 : platform_id) || 3 + '","code":"' + shCode + '","gameName":"' + gameName + '","appCode":"C9F590B12B87483DABFE0C03357E6854","appRelativePath":"shanghao\\\\","appVersion":"","updateType":0,"moduleName":"business.dll","showUpdateWnd":false,"zoneName":"' + zoneName + '"}}');
            Extern_Form_jsComInterface('{"funName":"StartGame","params":{"code":"' + shCode + '","gameName":"' + gameName + '","appCode":"C9F590B12B87483DABFE0C03357E6854","appRelativePath":"shanghao\\\\","appVersion":"","updateType":0,"moduleName":"business.dll","showUpdateWnd":false,"zoneName":"' + zoneName + '","platform_id":"'+ ((platform_id ? (platform_id - 0) : platform_id) || 0) +'"}}');
        }
        var StartBooster_index = '';
        var speed_btn = null;
        var isStartBoosterSuccess = '';

        function StartBooster(shCode, zoneName, btn) {
            speed_btn = btn;
            StartBooster_index = layer.msg('启动加速中...', {
                icon: 16,
                time: false,
                shade: 0.1
            });
            var res = Extern_Form_jsComInterface('{"funName":"StartBooster","params":{"code":"' + shCode + '","zoneName":"' + zoneName + '"}}');
            setTimeout(function() {
                if (typeof parent.isStartBoosterSuccess === 'boolean') {
                    return;
                } else {
                    layer.msg('加速没有成功，请重新再试一次。');
                }
            }, 30000);
        }

        function StopBooster() {
            Extern_Form_jsComInterface('{"funName":"StopBooster","params":null}');
        }

        function ShowBoosterStatus(shCode, zoneName, isSuccess, errorMsg) {
            //alert(shCode+'-'+zoneName+'-'+isSuccess+'-'+errorMsg)
            layer.close(StartBooster_index);
            isStartBoosterSuccess = true;
            if (isSuccess) {
                sessionStorage.setItem(shCode, zoneName);
                $('.speed_btn').text('启动加速');
                if (speed_btn) {
                    speed_btn.text('停止加速');
                }
            } else {
                layer.alert(errorMsg || '加速失败')
            }
        }

        function OneKeySHGetOrder() {
            return _orderObj;
        }

        function SetServiceTime(timer) {

        }

        var _content = '';
        var _timer = 0;

        function SoSo(content, timer) {
            _content = content;
            _timer = timer;
        }

        function BackSoSo() {
            var _sleepTimer = parseInt(_timer) * 1000;
            setTimeout('Extern_Form_callback(\'' + _content + '\')', _sleepTimer);
        }

        function RefreshZuHaoOrder() {
            window.sfa.contentWindow.LoadOrders();
        }

        function SetBtnGrayColor(shCoder) {
            window.sfa.contentWindow.SetBtnStarGameGrayColor(shCoder);
        }

        function SetBtnRedColor(shCoder) {
            window.sfa.contentWindow.SetBtnStarGameRedColor(shCoder);
        }

        function AddOverOrderArray(shCoder) {
            _overOrderArray.push(shCoder);
        }

        function GoToClientOverOrder() {
            if (_overOrderArray.length > 0) {
                $.each(_overOrderArray, function(v, k) {
                    if (k != "") {
                        Extern_Form_end_order(k, '订单到时结束');
                        _overOrderArray.splice(v, 1);
                    }
                });
            }
        }

        var _ticketInfo = '';
        var _internetBarId = ''; //网吧ID
        function SetTick() {
            var tickeInfo = Extern_Form_get_ticket();
            if (tickeInfo != "" && tickeInfo.toString().substring(0, 1) == "{") {
                var tempObj = eval('(' + tickeInfo + ')');
                var tempContent = tempObj.Content;
                if (tempObj.Code == true) {
                    _ticketInfo = tempContent.ticket;
                    // _internetBarId = "F2BB14B3D21A48A5A5D5FB5FF26532FF"; //tempContent.partId;
                }
            }
        }

        function GetTicket() {
            return _ticketInfo;
        }

        function GetInternetBarId() {
            // _internetBarId = Extern_Form_get_partid(); //F2BB14B3D21A48A5A5D5FB5FF26532FF
            //_internetBarId = '0DE7D302F31B43A78292CB62F58EFA3A'; //F2BB14B3D21A48A5A5D5FB5FF26532FF
            // try {
            //     _internetBarId = JSON.parse(Extern_Form_jsComInterface('{"funName":"GetNetbarId","params":null}')).results;
            // } catch (error) {
                
            // }
            
            // return _internetBarId;
            return GetNetbarKey()
        }

        //保存信息使用任何
        function SaveInfo(k, v) {
            Extern_Form_save_info(k, v);
        }

        function goBack() {
            // if ((_currRecordIndex - 2) >= 0) {
            //   window.sfa.src = _arrBrowseRecords[(_currRecordIndex - 2)];
            //   //_arrBrowseRecords.splice((_currRecordIndex - 2), 1);
            //   _currRecordIndex = _currRecordIndex - 1;
            // }              
            // if(_currRecordIndex>0){
            //   _currRecordIndex = --_currRecordIndex;
            //   //window.sfa.src = _arrBrowseRecords[_currRecordIndex];
            // }  
            var win = document.querySelector('#sfa').contentWindow;
            if (win.location.pathname === '/html/hall/hall_detail.html') {
                if (win.product && win.product.attributeList) {
                    var obj = win.product.attributeList
                    localStorage.setItem('attributeList', obj)
                }                
            }    
            history.back();
        }

        function goForward() {
            // if(_currRecordIndex<_arrBrowseRecords.length-1){
            //   _currRecordIndex = ++_currRecordIndex;
            //   //window.sfa.src = _arrBrowseRecords[_currRecordIndex];
            // }  
            history.forward();
        }

        function goRefresh() {
            // window.sfa.src = window.sfa.src;      
            var path = window.sfa.contentWindow.location.pathname.toLocaleLowerCase();
            if (path.indexOf('pay_state.html') > -1) {
                history.back();
            } else {
                window.sfa.contentWindow.location.reload();
            }
        }

        function locationReplace(url) {
            window.sfa.contentWindow.location.replace(url);
        }

        function GoToUrl(url, index) {
            localStorage.removeItem('attributeList')
            window.sfa.src = url;
            // if(index||index===0){
            //   _currRecordIndex++;
            //   _arrBrowseRecords.push(index);
            // }      
        }

        function AddRecord(url) {
            var isExists = 0;
            _arrBrowseRecords.forEach(function(v, k) {
                if (v == url) {
                    isExists = 1;
                }
            });
            if (isExists == 0) {
                _arrBrowseRecords.push(url);
                _currRecordIndex = _arrBrowseRecords.length;
            }
            //console.log(_currRecordIndex);
        }


        function Copy(value) {
            try {
                var aux = document.createElement("input");
                aux.setAttribute("value", value);
                document.body.appendChild(aux);
                aux.select();
                document.execCommand("copy");
                document.body.removeChild(aux);

                ShowAlert("复制成功", 6);
            } catch (e) {
                ShowAlert('复制失败', 5);
            }

        }

        var openIndex = 0;

        function Open(title, url, width, heigh, customClass, callback) {
            openIndex = layer.open({
                skin: customClass,
                title: title,
                type: 2,
                content: url,
                area: [width, heigh],
                success: function() {
                    // console.log($('.to-pay-modal #ifr_fill'))    
                    // $('.to-pay-modal #ifr_fill').attr('height',260);  
                    if (callback && typeof callback === 'function') callback();
                }
            });
        }

        function CloseOpen() {
            layer.close(openIndex);
        }

        function StartOrStopSetInterval() {
            if (_status == 0) {
                clearInterval(_intervalHandle);
            } else {
                if (_loginUserId != '') {
                    _intervalHandle = setInterval(GetUserBalance, 180000);

                }
            }
        }

        function btnSearch() {
            var searchKey = $.trim($("#searchKey").val());
            $('.search-pop').hide()
            GoToUrl("/html/hall/hall.html?where=" + searchKey + "&random=" + Math.random());
            if (searchKey) {
                var searchlist = GetCustomData2('search');
                searchlist = searchlist ? JSON.parse(searchlist) : [];
                var index = -1;
                searchlist.forEach(function(v, i) {
                    if (v === searchKey) {
                        index = i;
                    }
                })
                if (searchlist.length >= 6) {
                    if (index > -1) {
                        searchlist.splice(index, 1);
                        searchlist.unshift(searchKey)
                    } else {
                        searchlist.splice(searchlist.length - 1, 1);
                        searchlist.unshift(searchKey)
                    }
                } else {
                    if (index > -1) {
                        searchlist.splice(index, 1);
                        searchlist.unshift(searchKey)
                    } else {
                        searchlist.unshift(searchKey)
                    }
                }

                SaveCustomData2('search', JSON.stringify(searchlist))
            }
        }

        function OpenWindowIEUrl(url) {
            //Extern_Form_open_ie_url(url);
            try {
                Extern_Form_jsComInterface('{"funName":"StartUrl","params":{"url":"' + url + '"}}')
            } catch (error) {
                window.open(url)
            }
        }
        //获取url参数
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
        //后台调取跳转方法
        function JumpPageUrl(Code) {
            window.sfa.src = '../launch/launch_game.html?code=' + Code;
        }
    </script>
    <script type="text/javascript">
        function btnLoginOutClientXBox() {
            //Extern_Form_beforeexit();
            layer.confirm("退出客户端会使已登录的游戏掉线", {
                title: '确定退出GG租号客户端么？',
                icon: 3
            }, function(index) {
                //exit(event);
                Extern_Form_exit();
            });
        };
        $(document).ready(function() {
            $("#btnSetting").click(function(event) {
                if ($(this).parent().find("div").hasClass("active")) {
                    $(this).parent().find("div").removeClass("active");
                } else {
                    $(this).parent().find("div").addClass("active");
                }
            });
            $("#btnSetting").mouseleave(function() {
                $('#setting_body').removeClass("active");
            });

            $("#btnLoginOutClient").click(function(event) {
                layer.confirm("退出客户端会使已登录的游戏掉线", {
                    title: '确定退出GG租号客户端么？',
                    icon: 3
                }, function(index) {
                    exit(event);
                });
            });

            $("#btnLoginOutClientX").click(function(event) {
                //debugger
                _czc.push(['_trackEvent', '关闭按钮', '点击', 'X']);
                layer.open({
                    content: '关闭客户端同时也会关闭正在运行中的游戏哦',
                    skin: 'closeTip-class',
                    btn: ['关闭', '最小化'],
                    yes: function(index, layero) {
                        //do something
                        //btnLoginOutClientXBox();
						Extern_Form_exit();
                    },
                    btn2: function(index, layero) {
                        minimize();
                    }
                });
                // btnLoginOutClientXBox();
            });


            $(".sub-left li").not("#btnLianXiKeFu").click(function() {
                if (!$(this).attr('data-url')) {
                    return;
                }
                $(".sub-left li").not("#btnLianXiKeFu").removeClass("active");
                $(this).addClass("active");
            });

            $("#btnGoBack").click(function() {
                //Extern_Form_page_goback();
                goBack()
            });

            $("#btnGoForward").click(function() {
                //Extern_Form_page_goforward();
                goForward()
            });
            $("#btnRefresh").click(function(e) {
                goRefresh();
            });
            $("#btnSearch").click(function() {
                btnSearch();
                _czc.push(['_trackEvent', '首页', '搜索框', '点击次数']);
            });
            var keyWordsTimer = null;
            $("#searchKey").on('keypress', function() {
                if (event.keyCode == 13) {
                    btnSearch();
                    _czc.push(['_trackEvent', '首页', '搜索框', '回车次数']);
                }
            });
            $("#searchKey").on("input", function(event) {
                keyWordsTimer && clearTimeout(keyWordsTimer);
                keyWordsTimer = setTimeout(function() {
                    var searchKey = $.trim($("#searchKey").val());
                    if (searchKey) {
                        $('.search-keywords-pop #search-keywords').text(searchKey);
                        $('.search-keywords-pop').show();
                        HttpGet("/product/KeySearch?keyValue=" + searchKey).then(function(result) {
                            console.log(result)
                            if (result.Code == 0) {
                                if (result.result && result.result.length) {
                                    var str = '';
                                    for (var i = 0; i < result.result.length; i++) {
                                        str += '<li data-type="' + result.result[i].typeValue + '" data-keyId="' + result.result[i].keyId + '" data-gameId="' + result.result[i].gameId + '" data-gameName="' + result.result[i].gameName + '">' + result.result[i].key + '</li>';
                                    }
                                    $('.search-keywords-pop ul').html(str);
                                } else {
                                    $('.search-keywords-pop ul').html('<div style="text-align:center;">暂无数据</div>');
                                }
                            }
                        })
                    } else {
                        $('.search-keywords-pop').hide()
                    }
                }, 600)
            })
            $("#searchKey").on('focus', function() {
                var searchKey = $.trim($("#searchKey").val());
                if (searchKey) {
                    $('.search-keywords-pop').show();
                } else {
                    var searchlist = GetCustomData2('search');
                    if (searchlist) {
                        searchlist = JSON.parse(searchlist);
                        var str = '';
                        for (var i = 0; i < searchlist.length; i++) {
                            str += '<li class="search-item">' + searchlist[i] + '</li>';
                        }
                        $('.search-pop ul').html(str);
                        $('.search-pop ul').html(str);
                        $(".search-pop .search-item").unbind("click");
                        $('.search-pop .search-item').on('click', function(e) {
                            e.stopPropagation()
                            $('#searchKey').val($(this).text())
                            btnSearch();
                        })
                        $('.search-pop').show()
                    }
                }
            }).on('blur', function() {
                setTimeout(function() {
                    $('.search-pop').hide()
                    $('.search-keywords-pop').hide()
                }, 300)
            });
            $(".delete-search-btn").on('click', function() {
                $('.search-pop ul').html('')
                SaveCustomData2("search", "")
            })
            $(".search-keywords-pop ul").on('click', 'li', function(e) {
                var currentDom = $(e.currentTarget);
                var searchKey = currentDom.text();
                console.log(currentDom.attr('data-type'), searchKey)
                $('.search-keywords-pop').hide()

                if (searchKey) {
                    var searchlist = GetCustomData2('search');
                    searchlist = searchlist ? JSON.parse(searchlist) : [];
                    var index = -1;
                    searchlist.forEach(function(v, i) {
                        if (v === searchKey) {
                            index = i;
                        }
                    })
                    if (searchlist.length >= 6) {
                        if (index > -1) {
                            searchlist.splice(index, 1);
                            searchlist.unshift(searchKey)
                        } else {
                            searchlist.splice(searchlist.length - 1, 1);
                            searchlist.unshift(searchKey)
                        }
                    } else {
                        if (index > -1) {
                            searchlist.splice(index, 1);
                            searchlist.unshift(searchKey)
                        } else {
                            searchlist.unshift(searchKey)
                        }
                    }

                    SaveCustomData2('search', JSON.stringify(searchlist))
                }
                $('#searchKey').val(searchKey);
                if (currentDom.attr('data-type') == 2) {

                    GoToUrl("/html/hall/hall.html?where=" + searchKey + "&random=" + Math.random());
                } else {
                    GoToUrl("/html/hall/hall.html?tag=" + currentDom.attr('data-keyId') + "&id=" + currentDom.attr('data-gameId') + "&name=" + currentDom.attr('data-gameName') + "&tagname=" + searchKey + "&random=" + Math.random());
                }
            })
            $("#btnClickLianXiKeFu,#bottom-kefu-btn").click(function() {
                // OpenWindowIEUrl("https://clientweb.ggzuhao.com/xiaoneng.html");       
                _czc.push(['_trackEvent', '在线客服按钮', '点击', '在线客服']);
                if (window.location.hostname === 'testclientweb.ggzuhao.com') {
                    OpenWindowIEUrl("https://testclientweb.ggzuhao.com/Html/web/kefu.html");
                } else {
                    OpenWindowIEUrl("https://clientweb.ggzuhao.com/Html/web/kefu.html");
                }
            });

            $("#btnBaZheBuyChiJi").click(function() {

                OpenWindowIEUrl("http://www.taohaobang.com/?from=clientweb");
            });

            $("#btnBaXiazaiApp").click(function() {
                OpenWindowIEUrl("http://index.ggzuhao.com/app/download/pc/?from=clientweb");
            });

            $("#btnBaZheBuyzhanghao2").click(function() {
                OpenWindowIEUrl("http://www.taohaobang.com/activity/accountRecovery?code=wbzuhao");
            });

            $('#xieyi,#xieyi2').click(function(e) {
                e.stopPropagation();
                OpenWindowIEUrl('https://www.ggzuhao.com/default/service');
            })

            $('#testcommon').click(function() {
                GoToUrl('./test.html')
            });

            // 首单奖励
            $('#linkToOrderReward').on('click', function() {
                var _userInfo = GetLoginUserCookie();
                if (_userInfo != null) {
                    OpenWindowIEUrl('p.580wangba.com/Html/orderActivity/index.html?userId=' + _userInfo.UserID)
                } else {
                    OpenWindowIEUrl('p.580wangba.com/Html/orderActivity/index.html')
                }
            })


            // window.onload = function() {
            //   //SetTick();
            //   var Code = getQueryString('Code');
            //   //判断是否传入上号码
            //   if (Code) {
            //     JumpPageUrl(Code);
            //   } else {
            //     //GetInternetBarId(); //获取网吧id
            //     alert(1)
            //     GetLoginUser(); //判断是否登陆
            //     setInterval(GoToClientOverOrder, 1000); //订单倒计时

            //     StartOrStopSetInterval();
            //   }
            //   //if (ticketInfo != "") {
            //   //    _sellerId = GetSellerId();
            //   //    GetLoginUser();
            //   //    setInterval(GoToClientOverOrder, 1000);
            //   //}
            // }      
        });

        function openKefu() {
            //OpenWindowIEUrl("https://clientweb.ggzuhao.com/Html/web/kefu.html"); 
            if (window.location.hostname === 'testclientweb.ggzuhao.com') {
                OpenWindowIEUrl("https://testclientweb.ggzuhao.com/Html/web/kefu.html");
            } else {
                OpenWindowIEUrl("https://clientweb.ggzuhao.com/Html/web/kefu.html");
            }
        }

        function clickAction(e) {
            var duration = 750;

            // 样式string拼凑
            var forStyle = function(position) {
                var cssStr = '';
                for (var key in position) {
                    if (position.hasOwnProperty(key)) cssStr += key + ':' + position[key] + ';';
                };
                return cssStr;
            }

            // 获取鼠标点击位置
            var forRect = function(target) {
                var position = {
                        top: 0,
                        left: 0
                    },
                    ele = document.documentElement;
                'undefined' != typeof target.getBoundingClientRect && (position = target.getBoundingClientRect());
                return {
                    top: position.top + window.pageYOffset - ele.clientTop,
                    left: position.left + window.pageXOffset - ele.clientLeft
                }
            }

            var show = function(event) {
                var pDiv = event.target,
                    cDiv = document.createElement('div');
                pDiv.appendChild(cDiv);
                var rectObj = forRect(pDiv),
                    _height = event.pageY - rectObj.top,
                    _left = event.pageX - rectObj.left,
                    _scale = 'scale(' + pDiv.clientWidth / 100 * 10 + ')';
                var position = {
                    top: _height + 'px',
                    left: _left + 'px'
                };
                cDiv.className = cDiv.className + " waves-animation",
                    cDiv.setAttribute("style", forStyle(position)),
                    position["-webkit-transform"] = _scale,
                    position["-moz-transform"] = _scale,
                    position["-ms-transform"] = _scale,
                    position["-o-transform"] = _scale,
                    position.transform = _scale,
                    position.opacity = "1",
                    position["-webkit-transition-duration"] = duration + "ms",
                    position["-moz-transition-duration"] = duration + "ms",
                    position["-o-transition-duration"] = duration + "ms",
                    position["transition-duration"] = duration + "ms",
                    position["-webkit-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
                    position["-moz-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
                    position["-o-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
                    position["transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
                    cDiv.setAttribute("style", forStyle(position));
                var finishStyle = {
                    opacity: 0,
                    "-webkit-transition-duration": duration + "ms",
                    "-moz-transition-duration": duration + "ms",
                    "-o-transition-duration": duration + "ms",
                    "transition-duration": duration + "ms",
                    "-webkit-transform": _scale,
                    "-moz-transform": _scale,
                    "-ms-transform": _scale,
                    "-o-transform": _scale,
                    top: _height + "px",
                    left: _left + "px",
                };
                setTimeout(function() {
                    cDiv.setAttribute("style", forStyle(finishStyle));
                    setTimeout(function() {
                        pDiv.removeChild(cDiv);
                    }, duration);
                }, 100)
            }
            show(e)
        }


        function show_shq_phone_modal() {

            $('.shq_phone-modal').show()
        }

        function hide_shq_phone_modal() {
            $('.shq_phone-modal').hide()
        }

        function showDemoModal() {
            layer.open({
                title: false,
                btn: false,
                area: ['920px', '670px'],
                content: '<img src="/Content/public/img/demo.png"/>'
            });
        }
		function showCommitmentModal(OrderformID, cb, e) {
		
			if (cb && typeof cb === 'function') cb()
			
			return false;
			
		}
		
        function showCommitmentModal_222(OrderformID, cb, e) {
            var event = e;
			if (event) {
                $(event.target).prop('disabled', true)
            }
            var that = this;
            var _userInfo = GetLoginUserCookie();
            console.log(_userInfo)
            HttpGet('/Order/GetUserRealNameInfo?orderNo=' + OrderformID + (_userInfo && _userInfo.UserID ? ('&userId=' + _userInfo.UserID) : '&userId=')).then(function(result) {
                console.log(result)
                if (result.Code !== 20008) {
                    if (result.Code == 0) {
                        
                        _czc.push(['_trackEvent', '承诺书', '页面', '展现量']);
                        var str = '<div id="content2" style="padding: 20px;">' +
                            '<div style="text-align: center;font-size: 18px;">租用游戏账号承诺书</div>' +
                            '<div> 本人姓名：<input id="RealName2" style="width: 260px;height: 30px;margin-top:10px;background-color: #fff;padding-left: 10px;" placeholder="请输入"></input>' +
                            '</div>' +
                            '<div>身份证号：<input id="Certificate2" style="width: 260px;height: 30px;margin-top:10px;background-color: #fff;padding-left: 10px;" placeholder="请输入"></input>' +
                            '</div>' +
                            '<div>联系电话：<input id="Phone2" style="width: 260px;height: 30px;margin-top:10px;background-color: #fff;padding-left: 10px;" placeholder="请输入"></input>' +
                            '</div>' +
                            '<div style="font-weight: bold;margin-top: 10px;">声明：我保证以上提供的本人身份信息正确无误，愿意承担该信息在平台所产生的一切法律责任。</div>' +
                            '<div>我清楚知晓并同意 <a style="font-weight: bold;" href="javascript:OpenWindowIEUrl(\'https://www.ggzuhao.com/article/3/41154.html\');">《平台服务协议》</a>和<a style="font-weight: bold;" href="javascript:OpenWindowIEUrl(\'https://www.ggzuhao.com/article/3/41155.html\');">《隐私政策》</a>，租用游戏帐号的同时不能使用任何辅助软件破坏游戏体验平衡的行为（包括但不限于自瞄、透视、连发、不掉血、加速、瞬移、装死、穿墙、一秒千刀、自动改键、换肤、自动刷新、修改等），以及账号内辱骂他人、挂机、发布有损国家民族政府利益、分裂等言论，可能造成账号毁损或者被游戏厂商封禁。我承诺在' +
                            '<span style="font-weight: bold;">每次</span>租赁游戏过程中，不进行以上开挂或不当行为，如发现进行此类行为并造成账号毁损或被游戏厂商封禁，我愿意按照当时租用的时租价格*封禁天数(游戏公司官方网站查询结果为准)，进行赔偿给GG租号平台。</div>' +
                            '<div style="text-align: right;">承诺时间：<span id="CurrTime"></span></div>' +
                            '</div>';
                        setTimeout(function() {
                            layer.open({
                                title: '租用游戏账号承诺书',
                                content: str,
                                area: ['650px'],
                                btn: ['同意'],
                                btnAlign: 'c',
                                type: 1,
                                success: function() {
                                    if (event) {
                                        $(event.target).prop('disabled', false)
                                    }
                                    setTimeout(function() {
                                        $('#CurrTime').text(result.CurrTime)
                                        if (!result.CurrTime) {
                                            $('#CurrTime').parent().hide()
                                        } else {
                                            $('#CurrTime').parent().show()
                                        }
                                        if (result.RealName) {
                                            $('#RealName2').val(result.RealName)
                                            $('#Certificate2').val(result.Certificate);
                                            $('#Phone2').val(result.Phone.substr(0, 11))
                                            $('#RealName2,#Certificate2,#Phone2').prop('disabled', true)
                                            $('#RealName2,#Certificate2,#Phone2').css('border-color', '#ffffff')
                                            if (!result.RealName) {
                                                $('#RealName2').parent().hide()
                                            } else {
                                                $('#RealName2').parent().show()
                                            }
                                            if (!result.Certificate) {
                                                $('#Certificate2').parent().hide()
                                            } else {
                                                $('#Certificate2').parent().show()
                                            }
                                            if (!result.Phone) {
                                                $('#Phone2').parent().hide()
                                            } else {
                                                $('#Phone2').parent().show()
                                            }

                                            that.info = result;

                                        } else {
                                            $('#RealName2,#Certificate2,#Phone2').css('border-color', '#dddddd')
                                            $('#RealName2,#Certificate2,#Phone2').prop('disabled', false)
                                        }
                                    })
                                },
                                yes: function(index) {
                                    _czc.push(['_trackEvent', '承诺书', '同意按钮', '点击量']);
                                    var name = $('#RealName2').val();
                                    var no = $('#Certificate2').val();
                                    var phone = $('#Phone2').val();
                                    if (!name) {
                                        layer.msg('请输入姓名')
                                        return false;
                                    }
                                    if (!no) {
                                        layer.msg('请输入身份证')
                                        return false;
                                    }
                                    var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                                    if (!reg.test(no)) {
                                        layer.msg('请输入正确的身份证')
                                        return false;
                                    }

                                    if (!phone) {
                                        layer.msg('请输入手机号')
                                        return false;
                                    }
                                    var reg = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/; //验证规则

                                    if (!reg.test(phone)) {
                                        layer.msg('请输入正确的手机号')
                                        return false;
                                    }
                                    var index1 = layer.load(1);
                                    var params = JSON.stringify({
                                        orderId: OrderformID,
                                        desc: '租号承诺书同意截图'
                                    })
                                    var result2 = "{}";
                                    try {
                                        var a = Extern_Form_jsComInterface('{"funName":"ScreenCapture","params":' + params + '}');
                                        if (a) {
                                            result2 = a;
                                        }
                                        result2 = JSON.parse(result2);
                                        if (result2 && result2.code) {
                                            HttpGet('/Order/SaveLaunchGameAgreement?orderNo=' + OrderformID + '&captureUrl=' + result2.Content.filePath + '&userName=' + name + '&idCardNo=' + no + '&phoneCode=' + phone + (result.UserID ? ('&userId=' + result.UserID) : '&userId=')).then(function(res) {
                                                layer.close(index1);
                                                if (res.Code == 0) {
                                                    layer.close(index);

                                                    if (cb && typeof cb === 'function') cb()
                                                } else {
                                                    layer.msg(res.Message)
                                                }

                                            }).catch(function(res) {
                                                layer.close(index);
                                                layer.close(index1);
                                                if (cb && typeof cb === 'function') cb()
                                            })
                                        } else {
                                            // layer.msg('接口繁忙，请稍后重试')
                                            if (cb && typeof cb === 'function') cb()
                                        }
                                    } catch (err) {
                                        layer.close(index1);
                                        //alert(err)
                                        if (cb && typeof cb === 'function') cb()
                                    }

                                },
                                cancel: function(i) {
                                    // 右上角关闭事件的逻辑
                                    debugger
                                    _czc.push(['_trackEvent', '承诺书', '关闭按钮', '点击量']);
                                    i && layer.close(i);
                                }
                            })
                        }, 100)

                    } else {
						if (event) {
                            $(event.target).prop('disabled', false)
                        }
                        layer.msg(result.Message)
                    }
                } else {
					if (event) {
                        $(event.target).prop('disabled', false)
                    }
                    if (cb && typeof cb === 'function') cb()
                }
            })
        }
    </script>

    <!-- <script charset="utf-8" src="http://wpa.b.qq.com/cgi/wpa.php"></script>
      <script>
          BizQQWPA.addCustom([{
              aty: '0', //指定工号类型,0-自动分流，1-指定工号，2-指定分组
              nameAccount: '073185525100', //营销 QQ 号码
              selector: 'btnLianXiKeFu' //WPA 被放置的元素
          }]);
      </script> -->

</body>

</html>