






<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资产管理业务综合报送平台</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/grid.css">
    <link rel="stylesheet" href="css/module.css">
    <link rel="stylesheet" href="css/login.css?version=20240206">
    <link rel="shortcut icon" href="images/favicon.ico">

</head>
<body>
    <div class="outBox">
        <div class="hander">
         <div class="hander-img">
             <img src="images/logo_new.png" alt="">
         </div>
         <!-- <div class="changeTab"> <a href="" style="color: #fff;text-decoration: none;" target="_self">切换旧版</a></div> -->
        </div>
        <div class="conter">
          <div class="redBg">  
              <div class="bgTitle">
                  <h1 class="top">
                      资产管理业务综合报送平台
                  </h1>
                  <p>Asset Management Business Electronic Registration System</p>
              </div>
              <div class="warringBox" style="display:none">
                  <span></span>
                  <p class="tiShi">

                  </p>
                  <p class="titleBox">
                      温馨提示：为保障系统的数据安全与稳定运行xxxxxxxxxxxxxxxxxxxxxxxxx完，期间系统将暂停服务。
                      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx完，统筹规划登记备案及相关信息报送的时间安排，感谢
                  </p>
                  <p class="del"></p>
              </div>
          </div>
          <div class="loginBox">
             <div class="login-inner"   style="z-index: 999;">
                 <form class="m-login-form" method="post" id="loginForm" onsubmit="return false;" novalidate>
                     <!-- <div style="width: 390px;">
                         <div style="width: 360px;margin: 0 auto;"><img src="images/logo.png" alt="中国基金业协会"></div>
                     </div> -->
                     <!-- div style="width: 360px;margin: 0 0 0 15px;">
         <p style="color: red;">
             温馨提示：为保障系统的数据安全与稳定运行，2018年9月30日17:00至10月8日8:30，中国证券投资基金业协会将对资产管理业务综合报送平台系统进行运营维护，期间系统将暂停服务。
 
         请系统用户合理安排系统登录使用时间，统筹规划登记备案及相关信息报送的时间安排，感谢您的支持与配合！
 
         </p>
     </div -->
                     <div class="log_con_new">
                         <div class="log_tab_new">
                             <div class="log_tab_con_new">
                                 <ul>
                                     <li class="log_tabLiyes_new" id="log_yh">用户名登录<span></span></li>
                                     <!-- <div class="log_rel"></div> -->
                                     <li class="log_tabLino_new" id="log_dj">登记编码登录<span></span></li>
                                 </ul>
                             </div>
                         </div>
                         <!-- 用户名登陆 -->
                         <div class="log_main_new" id="log_yh1">
                             <input class="log_input_new" type="text" id="accountName" name="accountName" placeholder="请输入账号" required tabindex="1">
                             <input class="log_input_new" style="margin-bottom:10px;" type="password" id="password" name="password" placeholder="请输入密码" required tabindex="2">
                             <div class="form-group captcha" id="captcha-block1" style="display: none;">
                                 <input class="form-input log_input_new wd90" style="width: 100px" type="text" placeholder="验证码" id="captcha1" name="captcha1" required>
                                 <img class="captcha-btn captcha-img1 ml5" title="点击更换验证码" src="captcha.jpg" onclick="flushCaptcha()"/>
                                 <a href="javascript:flushCaptcha();" class="link captcha-btn">换一张</a>
                             </div>
                             <span id="error_tip1" class="error-tips log_error_tip_new" ></span>
                             <span id="pwd_error1" class="error-tips log_error_tip_new" ></span>
                             <a class="register" href="https://ambers.amac.org.cn/web/register.html" style="float:left;margin-left:15px;margin-top: 5px;color: blue; text-decoration: none;">注册</a>
                             <a class="recovery" href="https://ambers.amac.org.cn/web/passwordRecovery.html" style="float: right;margin-right: 14px;margin-top: 5px;color: blue; text-decoration: none;">忘记密码?</a>
                             <button class="log_input_new2 log_bag" onclick="login();" id="btn-login1">登&nbsp;&nbsp;录</button>
                            
                         </div>
                         <!-- 登记号登陆 -->
                         <div class="log_main_new" style="display: none;" id="log_dj1">
                             <input class="log_input_new" type="text" id="registerNo" name="registerNo" placeholder="登记号（仅限私募机构）" required tabindex="1">
                             <input class="log_input_new" style="margin-bottom:10px;" type="password" id="registerPassword" name="registerPassword" placeholder="密码" required tabindex="2">
                             <div class="form-group captcha" id="captcha-block2" style="display: none;">
                                 <input class="form-input log_input_new wd90" style="width: 100px" type="text" placeholder="验证码" id="captcha2" name="captcha2" required>
                                 <img class="captcha-btn captcha-img2 ml5" title="点击更换验证码" src="captcha.jpg" onclick="flushCaptcha()"/>
                                 <a href="javascript:flushCaptcha();" class="link captcha-btn">换一张</a>
                             </div>
                             <span id="error_tip2" class="error-tips log_error_tip_new" ></span>
                             <span id="pwd_error2" class="error-tips log_error_tip_new" ></span>
                             <a class="register" href="https://ambers.amac.org.cn/web/register.html" style="float:left;margin-left:15px;margin-top: 5px;color: blue; text-decoration: none;">注册</a>
                             <a class="recovery" href="https://ambers.amac.org.cn/web/passwordRecovery.html" style="float: right;margin-right: 14px;margin-top: 5px;color: blue; text-decoration: none;">忘记密码?</a>
                             <button class="log_input_new2 log_bag" onclick="login();" id="btn-login2">登&nbsp;&nbsp;录</button>
                            
                         </div>
                         <div class="login-bottom">
                            <span  class="genDuo">附件说明</span>
                            <div class="genDuo_inner">
                                <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/onLineRunInform.pdf" title="《关于资产管理业务综合报送平台上线运行相关安排的说明》" target="_blank"><B>《关于资产管理业务综合报送平台上线运行相关安排的说明》</B></a><br>
                                    <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/memberOperationGuide.pdf" title="《会员资格申请操作手册》" target="_blank"><B>《会员资格申请操作手册》</B></a>
                                    <div style="margin-top: 5px" >
                                        <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/managerPofNotice.pdf" title="《私募基金管理人登记须知》" target="_blank"><B>《私募基金管理人登记须知》</B></a>
                                    </div>
                                    <div style="margin-top: 5px" >
                                        <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/privateInvestmentNotice.pdf" title="《私募投资基金备案须知》" target="_blank"><B>《私募投资基金备案须知》</B></a>
                                    </div>
                                    <div style="margin-top: 5px" >
                                        <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/201806.pdf" title="《外商独资和合资私募证券投资基金管理人登记备案填报说明(2018年6月)》" target="_blank"><B>《外商独资和合资私募证券投资基金管理人登记备案填报说明(2018年6月)》</B></a>
                                    </div>
                                    <div style="margin-top: 5px" >
                                        <a id='runinform' href="https://ambers.amac.org.cn/web/app/static/template/securityFuturesMgrRules.pdf" title="《证券期货经营机构私募资产管理计划备案管理办法》" target="_blank"><B>《证券期货经营机构私募资产管理计划备案管理办法》</B></a>
                                    </div>
                            </div>
                    </div>
                     </div>
                 </form>
             </div>
            
          </div>
        </div>
        <div class="footer">
            <span>版权所有：中国证券投资基金业协会 &nbsp; 京ICP备16045718号&nbsp;&nbsp;&nbsp;<img style="vertical-align:middle;margin-left:10px;" src="images/ipv6.png" alt="IPV6">&nbsp;&nbsp;&nbsp; 微信公众号：CHINAAMAC&nbsp;&nbsp;&nbsp; 电话咨询热线 : 400-017-8200 会员服务咨询邮箱 : membership@amac.org.cn</span>
            <!-- <a class="pull-right mr20 link" href="">填表说明</a>
            <a id='reference' href="https://ambers.amac.org.cn/web/app/static/template/reference.pdf" class="pull-right mr20 link">操作手册</a>-->
            
            <a id='reference2' style="margin-left: 20px;color: #428bca;" href="https://ambers.amac.org.cn/web/app/static/template/managerOpertionGuide.pdf">管理人登记操作手册</a>
            <a id='reference1' style="margin-left: 20px;color: #428bca;" href="https://ambers.amac.org.cn/web/app/static/template/productBusinessOperation.pdf" >产品备案操作手册</a>
        </div>
     </div>
    <script src="js/jquery.min.js"></script>
<script src="js/rewritefirm.js"></script>
<script src="js/jquery.cookie-1.4.1.min.js"></script>
<script src="js/crypto-js.min.js"></script>
<script>
    $(function(){
        //检查IE浏览器版本
        checkIeExplorer();

        //检查cookie是否禁用
        $.cookie('cookieInspect','ture');
        if(!$.cookie('cookieInspect')){
            zdalert("系统提示",'您的浏览器禁用了cookie，请启用后再登录。否则不能正常登录。');
        }
    });

    function flushCaptcha() {
        $(".captcha-btn").attr("src", "captcha.jpg?" + Math.random());
    }

    // 系统维护强制退出登录  这里有个跨域问题
    myFunction();
    //window.setInterval(myFunction, 1000 * 5 * 12); //轮询测试环境 5秒一次
    function myFunction() {
        var url = window.location.search.replace('?service=','');
        // 生产环境如果是吉贝克的系统时，跳转请求后台维护数据
        if (url.indexOf('amrs.amac.org.cn') !== -1) {
            url = 'https://ambers.amac.org.cn/web/';
        }
        $.ajax({
            url: '/cas/getMaintenanceFlag',
            type: 'GET',
            complete:function(result){
                if( result != null && result.responseJSON && (result.responseJSON.server == '1' || result.responseJSON.server == '3') ){
                    if( result.responseJSON.noticeFlag == 'Y' ){
                        $('.warringBox')[0].style.display = 'block';
                        $('.titleBox').html(result.responseJSON.noticeContent);
                    }
                    if( result.responseJSON.loginFlag == 'Y' ){
                        $('.loginBox')[0].style.display = 'none';
                    }
                }
            }
        });
    }

    function encryptByAES(plainText, secretKey) {
        var keyStr = secretKey.substring(0, 16);
        var ivStr = secretKey.substring(16, secretKey.length);
        var key = CryptoJS.enc.Utf8.parse(keyStr)
        var iv = CryptoJS.enc.Utf8.parse(ivStr)
        var encrypted = CryptoJS.AES.encrypt(plainText, key, {
            iv: iv,
            mode: CryptoJS.mode.CBC,
            padding: CryptoJS.pad.Pkcs7
        })
        return encrypted.ciphertext.toString(CryptoJS.enc.Base64)
    }

    function login() {
        if($.cookie('CASTGC') && $.cookie('CASTGC') != ""){
            $.ajax({
                url:"https://ambers.amac.org.cn/web/api/private/logout",
                type:'GET',
                complete:function(resp){
                    if(resp.status == 404){
                        zdalert("系统提示",'您未安全退出，请关闭浏览器再次登录。');
                    }else{
                        zdconfirm("系统提示",'您未安全退出，是否重新登录。',function(result){
                            if(result){
                                window.location.href = "https://ambers.amac.org.cn/web/api/private/logout";
                                $.cookie('CASTGC','');
                            }
                        });
                    }
                }
            });
            return;
        }

        var token = {}, loginMode, textPassword;
        if ($("#log_yh1").is(':visible')) {
            token.username = $("#accountName").val();
            if (token.username == '') {
                $("#error_tip1").show();
                $("#pwd_error1").hide();
                $("#error_tip1").html("请输入用户名");
                return;
            }

            textPassword = $("#password").val();
            if (token.password == '') {
                $("#error_tip1").hide();
                $("#pwd_error1").show();
                $("#pwd_error1").html("请输入密码");
                return;
            }

            token.captcha = $("#captcha1").val();
            loginMode = 1;
        } else {
            token.registerNo = $("#registerNo").val();
            if (token.registerNo == '') {
                $("#error_tip2").show();
                $("#pwd_error2").hide();
                $("#error_tip2").html("请输入登记号");
                return;
            }

            textPassword = $("#registerPassword").val();
            if (token.password == '') {
                $("#error_tip2").hide();
                $("#pwd_error2").show();
                $("#pwd_error2").html("请输入密码");
                return;
            }
            token.captcha = $("#captcha2").val();
            loginMode = 2;
            token.username = token.registerNo;
        }
        token.loginMode = loginMode;
        var btn = $('#btn-login' + loginMode);

        $.ajax({
            url: "aeskey?accountName=" + token.username,
            type: 'get',
            dataType: 'json'
        }).done(function (data) {
            var password = encryptByAES(textPassword, data);
            token.password = password;
            var errorCnt = 3;
            $.ajax({
                url: "login?service=https://ambers.amac.org.cn/web/",
                type: "POST",
                data: token,
                dataType: "json"
            }).done(function(data, status, xhr){
                var pwdRegx = /^(?=.*[A-Za-z])(?=.*\d)(?=.*[-`=\\\[\];',./~!@#$%^&*()_+|{}:"<>?])[A-Za-z\d-`=\\\[\];',./~!@#$%^&*()_+|{}:"<>?]{8,}$/;
                if (!pwdRegx.test(textPassword)) {
                    localStorage.setItem("modifyPwdFlag", "Y")
                }
                window.location.href = xhr.getResponseHeader("Location");
            }).fail(function(XMLHttpRequest){
                if (XMLHttpRequest.status >= 400 && XMLHttpRequest.status < 500) {
                    $("#error_tip" + token.loginMode).html(XMLHttpRequest.responseJSON.message);
                    if (XMLHttpRequest.responseJSON.errorCnt != null) {
                        errorCnt = XMLHttpRequest.responseJSON.errorCnt;
                    }
                    if (errorCnt < 3) {
                        $(".captcha").show();
                        flushCaptcha();
                    } else {
                        $(".captcha").hide();
                    }
                } else {
                    $("#error_tip" + token.loginMode).html("服务器错误，请稍后再试");
                }
            }).always(function () {
                btn.removeAttr('disabled');
            })
        }).fail(function (XMLHttpRequest) {
            btn.removeAttr('disabled');
            $("#error_tip" + token.loginMode).html("服务器错误，请稍后再试");
        })
    }

    function checkIeExplorer(){
        var browser = navigator.appName;
        var b_version = navigator.appVersion;
        var version = b_version.split(";");
        if(version.length > 1&&"Microsoft Internet Explorer" == browser){
            var trim_version = parseInt(version[1].replace(/[ ]/g,"").replace(/MSIE/g,""));
            if(trim_version < 8){
                $("#loginDiv").show();
                if($("#accountName").val() != ""){
                    $("#accountName").val("");
                }
                if($("#password").val() != ""){
                    $("#password").val("");
                }
            }
        }
    }

    var useAgent = navigator.userAgent,rMsie=/(msie\s|trident.*rv:)([\w.]+)/;
    var browser;
    var version;
    function uaMatch(ua){
        var match =rMsie.exec(ua);
        if(match !==null){
            return {browser:"IE",version : match[2] || "0"}
        }else{
            return{browser:"",version:"0"}
        }
    }
    var browwMatch = uaMatch(useAgent.toLowerCase());
    if(browwMatch.browser){
        browser = browwMatch.browser;
        version =browwMatch.version;
    }
    var checkIe =browser + version;

    if(checkIe == "IE9.0" || checkIe == "IE8.0" || checkIe == "IE7.0" ||checkIe == "IE6.0"){
        $("#ie_con").show();
    }

    $("#log_yh").click(function(){
        $("#log_yh1").show();
        $("#log_dj1").hide();
        $("#log_dj").removeClass("log_tabLiyes_new");
        $("#log_dj").addClass("log_tabLino_new");
        $("#log_yh").removeClass("log_tabLino_new");
        $("#log_yh").addClass("log_tabLiyes_new");
    });

    $("#log_dj").click(function(){
        $("#log_dj1").show();
        $("#log_yh1").hide();
        $("#log_dj").removeClass("log_tabLino_new");
        $("#log_dj").addClass("log_tabLiyes_new");
        $("#log_yh").removeClass("log_tabLiyes_new");
        $("#log_yh").addClass("log_tabLino_new");
    });
    //后面z加的
    $('.del').click(function(){
       $('.warringBox').hide();
    })
    $('.genDuo').click(function(
    ){
        $('.genDuo_inner').toggle()
    })
</script>
</body>
</html>