{"status":1,"msg":"\u767b\u5f55\u7a97\u53e3","data":{"html":"<div class=\"ajax_login\">\n    <div class=\"title\">\n        <div class=\"logo\">\u4e50\u6e05\u8682\u8681\u62db\u8058&nbsp;&middot;&nbsp;\u767b\u5f55<\/div>\n        <div class=\"close J_btncancel\"><\/div>\n    <\/div>\n    <div class=\"lmain\">\n        <div class=\"frombox\">\n            <div class=\"tab\">\n                <div class=\"li select J_switch\" data=\"J_type1\">\u624b\u673a\u52a8\u6001\u7801\u767b\u5f55<\/div>\n                <div class=\"li J_switch\" data=\"J_type2\">\u7528\u6237\u540d\u767b\u5f55<\/div>\n                <div class=\"clear\"><\/div>\n            <\/div>\n            <div class=\"login_type J_type1\" style=\"display:block\">\n                <form action=\"\" id=\"topLoginFormMobile\" method=\"get\">\n                    <div class=\"ce\" style=\"height:44px;\">\n                        <div class=\"imgbg\"><\/div>\n                        <input name=\"mobile\" id=\"mobile\" type=\"text\" maxlength=\"11\" class=\"linput\" placeholder=\"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\" autocomplete=\"off\"\/>\n                        <div class=\"send_code\" id=\"topGetCodeBtn\">\u83b7\u53d6\u9a8c\u8bc1\u7801<\/div>\n                    <\/div>\n                    <div style=\"width:312px;text-align: right\"><p style=\"color:#999;font-size:12px;line-height:24px;\">\u5982\u65e0\u6cd5\u6536\u5230\u9a8c\u8bc1\u7801\uff0c\u8bf7\u6362\u4e2a\u6d4f\u89c8\u5668\u518d\u8bd5\u8bd5<\/p><\/div>\n                    <div class=\"ce\" style=\"margin-top:0px;\">\n                        <div class=\"imgbg pwd\"><\/div>\n                        <input name=\"verfy_code\" id=\"verfy_code\" type=\"text\" value=\"\" class=\"linput pwd\" placeholder=\"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\" autocomplete=\"off\"\/>\n                    <\/div>\n                    <div class=\"err\"><!--\u9519\u8bef\u63d0\u793a --><\/div>\n                    <div class=\"ce\">\n                        <input class=\"btn\" type=\"button\" name=\"submit\" id=\"topLoginBtnMobile\" value=\"\u767b\u5f55\" \/>\n                    <\/div>\n                    <div class=\"ce\">\n                        <div class=\"imgchecked_txt expLoginBtn\"><input name=\"expire\" type=\"hidden\" value=\"0\" \/>\u81ea\u52a8\u767b\u5f55<\/div>\n                        <div class=\"getpwd link_gray3\"><a href=\"\/members\/user_getpass.html\">\u5fd8\u8bb0\u5bc6\u7801?<\/a><\/div>\n                    <\/div>\n                <\/form>\n            <\/div>\n            <div class=\"login_type J_type2\">\n                <form action=\"\" id=\"topLoginForm\" method=\"get\">\n                    <div class=\"ce\">\n                        <div class=\"imgbg\"><\/div>\n                        <input name=\"username\" type=\"text\" maxlength=\"16\" id=\"username\" class=\"linput\" placeholder=\"\u8bf7\u8f93\u5165\u7528\u6237\u540d\/\u624b\u673a\u53f7\"  autocomplete=\"off\"\/>\n                    <\/div>\n\n                    <div class=\"ce\">\n                        <div class=\"imgbg pwd\"><\/div>\n                        <input name=\"password\" type=\"password\" id=\"password\" value=\"\" class=\"linput pwd\" placeholder=\"\u8bf7\u8f93\u5165\u5bc6\u7801\"  autocomplete=\"off\"\/>\n                    <\/div>\n                    <div class=\"err\"><!--\u9519\u8bef\u63d0\u793a --><\/div>\n                    <div class=\"ce\">\n                        <input class=\"btn\" type=\"button\" name=\"submit\" id=\"topLoginBtn\" value=\"\u767b\u5f55\" \/>\n                    <\/div>\n                    <div class=\"ce\">\n                        <div class=\"imgchecked_txt expLoginBtn\"><input name=\"expire\" type=\"hidden\" value=\"0\" \/>\u81ea\u52a8\u767b\u5f55<\/div>\n                        <div class=\"getpwd link_gray3\"><a href=\"\/members\/user_getpass.html\">\u5fd8\u8bb0\u5bc6\u7801?<\/a><\/div>\n                    <\/div>\n                <\/form>\n            <\/div>\n        <\/div>\n    <\/div>\n    <div class=\"rmain\">\n        <div class=\"tit\">\u4f7f\u7528\u7b2c\u4e09\u65b9\u8d26\u53f7\u767b\u5f55<\/div>\n        <div class=\"api_login\">\n            <a class=\"uu_api_login_btn weixin\" href=\"\/callback\/index\/mod\/weixin\/type\/login.html\" title=\"\u5fae\u4fe1\u8d26\u53f7\u767b\u5f55\"><\/a>            <div class=\"clear\"><\/div>\n        <\/div>\n        <div class=\"btnbox\">\n            <div class=\"btn_green_api btn_inline  btn_border J_top_loging_user_reg\">\u6ce8\u518c\u8d26\u53f7<\/div>\n        <\/div>\n    <\/div>\n    <div class=\"clear\"><\/div>\n    <input type=\"button\" id=\"btnTopCheck\" style=\"display:none;\">\n    <input type=\"button\" id=\"btnTopLoginMobile\" style=\"display:none;\">\n    <input type=\"button\" id=\"btnTopLoginName\" style=\"display:none;\">\n    <div id=\"topCaptchaBox\"><\/div>\n    <div id=\"topCaptchaBoxLog\"><\/div>\n    <div id=\"topCaptchaBoxLogMobile\"><\/div>\n<\/div>\n\u200b\n<script type=\"text\/javascript\">\n    $('.J_btncancel').die().live('click', function() {\n        $(\".modal,.modal_backdrop\").remove();\n    });\n\/\/\u5207\u6362\u767b\u5f55\u7c7b\u578b\n$(\".J_switch\").die().live('click', function() {\n    $('.frombox .tab .li').removeClass(\"select\");\n    $(this).addClass(\"select\");\n    $('.login_type').hide();\n    data = $(this).attr('data');\n    $('.' + data).show();\n});\n\/\/\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55\n$(\"#topLoginBtn\").die().live('click', function() {\n    var usernameValue = $.trim($('#topLoginForm #username').val());\n    var passwordValue = $.trim($('#topLoginForm #password').val());\n    var expireValue = $.trim($('#topLoginForm input[name=expire]').val());\n    $(\"#topLoginForm .err\").hide();\n    if (usernameValue == '' || passwordValue == '') {\n        $(\"#topLoginForm .err\").html('\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01').show();\n    } else {\n        \/\/ \u5224\u65ad\u662f\u5426\u9700\u8981\u51fa\u73b0\u9a8c\u8bc1\n        if (eval(qscms.varify_user_login) && eval(qscms.captcha_open)) {\n            qsCaptchaHandler(function(callBackArr) {\n                var usernameValue = $.trim($('#topLoginForm #username').val());\n                var passwordValue = $.trim($('#topLoginForm #password').val());\n                var expireValue = $.trim($('#topLoginForm input[name=expire]').val());\n                var dataArr = {username: usernameValue, password: passwordValue, expire: expireValue};\n                $.extend(dataArr, callBackArr);\n                $.ajax({\n                    url: qscms.root + '?m=Home&c=Members&a=login',\n                    type: \"post\",\n                    dataType: \"json\",\n                    data: dataArr,\n                    success: function(result) {\n                        if (parseInt(result.status)) {\n                            window.location.reload();\n                        } else {\n                            disapperTooltip(\"remind\", result.msg);\n                            qscms.varify_user_login = result.data;\n                            $(\"#topLoginFormMobile .err\").html(result.msg).show();\n                            $(\"#topLoginBtnMobile\").val('\u767b\u5f55').prop(\"disabled\", 0);\n                        }\n                    }\n                });\n            });\n        } else {\n            doLoginByAccount();\n        }\n    }\n    return false;\n});\n\nfunction doLoginByAccount() {\n    var usernameValue = $.trim($('#topLoginForm #username').val());\n    var passwordValue = $.trim($('#topLoginForm #password').val());\n    var expireValue = $.trim($('#topLoginForm input[name=expire]').val());\n    $(\"#topLoginBtn\").val('\u767b\u5f55\u4e2d...').prop(\"disabled\", !0);\n    \/\/ \u63d0\u4ea4\u8868\u5355\n    $.ajax({\n        url: qscms.root + '?m=Home&c=Members&a=login',\n        type: \"post\",\n        dataType: \"json\",\n        data: {\n            username: usernameValue,\n            password: passwordValue,\n            expire: expireValue\n        },\n        success: function(result) {\n            if (parseInt(result.status)) {\n                window.location.reload();\n            } else {\n                qscms.varify_user_login = result.data; \/\/\u539f\u6765\u662fresult.data\n                $(\"#topLoginForm .err\").html(result.msg).show();\n                $(\"#topLoginBtn\").val('\u767b\u5f55').prop(\"disabled\", 0);\n            }\n        }\n    });\n}\n\/\/\u624b\u673a\u52a8\u6001\u7801\u767b\u5f55\nvar regularMobile = qscms.regularMobile;\n$(\"#topLoginBtnMobile\").die().live('click', function() {\n    var mobileValue = $.trim($('#topLoginFormMobile input[name=mobile]').val());\n    var verfyCodeValue = $.trim($('#topLoginFormMobile input[name=verfy_code]').val());\n    if (mobileValue == \"\") {\n        disapperTooltip(\"remind\", \"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\");\n        $('#topLoginFormMobile input[name=mobile]').focus();\n        return false;\n    }\n    if (mobileValue != \"\" && !regularMobile.test(mobileValue)) {\n        disapperTooltip(\"remind\", \"\u624b\u673a\u53f7\u7801\u683c\u5f0f\u4e0d\u6b63\u786e\");\n        $('#topLoginFormMobile input[name=mobile]').focus();\n        return false;\n    }\n    if (verfyCodeValue == \"\") {\n        disapperTooltip(\"remind\", \"\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801\");\n        $('#topLoginFormMobile input[name=verfy_code]').focus();\n        return false;\n    }\n\n    if (eval(qscms.varify_user_login) & eval(qscms.captcha_open)) {\n        qsCaptchaHandler(function(callBackArr) {\n            $(\"#topLoginFormMobile .err\").hide();\n            var mobileValue = $.trim($('#topLoginFormMobile input[name=mobile]').val());\n            var verfyCodeValue = $.trim($('#topLoginFormMobile input[name=verfy_code]').val());\n            var expireValue = $.trim($('#topLoginFormMobile input[name=expire]').val());\n            var dataArr = {mobile: mobileValue, mobile_vcode: verfyCodeValue, expire: expireValue};\n            $.extend(dataArr, callBackArr);\n            $(\"#topLoginBtnMobile\").val('\u767b\u5f55\u4e2d...').prop(\"disabled\", !0);\n            \/\/ \u63d0\u4ea4\u8868\u5355\n            $.ajax({\n                url: qscms.root + '?m=Home&c=Members&a=login',\n                type: \"post\",\n                dataType: \"json\",\n                data: dataArr,\n                success: function(result) {\n                    if (parseInt(result.status)) {\n                        window.location.reload();\n                    } else {\n                        qscms.varify_user_login = result.data;\n                        disapperTooltip(\"remind\", \"\u9a8c\u8bc1\u7801\u9519\u8bef\");\n                        $(\"#topLoginBtnMobile\").val('\u767b\u5f55').prop(\"disabled\", 0);\n                    }\n                }\n            });\n        });\n    } else {\n        doLoginByMobile();\n    }\n});\n\nfunction doLoginByMobile() {\n    var mobileValue = $.trim($('#topLoginFormMobile input[name=mobile]').val());\n    var verfyCodeValue = $.trim($('#topLoginFormMobile input[name=verfy_code]').val());\n    var expireValue = $.trim($('#topLoginFormMobile input[name=expire]').val());\n    $(\"#topLoginBtnMobile\").val('\u767b\u5f55\u4e2d...').prop(\"disabled\", !0);\n    \/\/ \u63d0\u4ea4\u8868\u5355\n    $.ajax({\n        url: qscms.root + '?m=Home&c=Members&a=login',\n        type: \"post\",\n        dataType: \"json\",\n        data: {\n            mobile: mobileValue,\n            mobile_vcode: verfyCodeValue,\n            expire: expireValue\n        },\n        success: function(result) {\n            if (parseInt(result.status)) {\n                window.location.reload();\n            } else {\n                console.log(result.data);\n                qscms.varify_user_login = 3\/\/3\u539f\u672c\u662f result.data\n                $(\"#topLoginFormMobile .err\").html(\"\u9a8c\u8bc1\u7801\u9519\u8bef\").show();\n                $(\"#topLoginBtnMobile\").val('\u767b\u5f55').prop(\"disabled\", 0);\n            }\n        }\n    });\n}\n\/\/\u53d1\u9001\u9a8c\u8bc1\u7801\n$(\"#topGetCodeBtn\").die().live('click', function() {\n    if ($(this).hasClass('btn_disabled')) {\n        return false;\n    }\n    var mobileValue = $('#topLoginFormMobile input[name=\"mobile\"]').val();\n    if (!mobileValue.length) {\n        disapperTooltip(\"remind\", \"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\");\n        $('#topLoginFormMobile input[name=mobile]').focus();\n        return false;\n    }\n    if (mobileValue != \"\" && !regularMobile.test(mobileValue)) {\n        disapperTooltip(\"remind\", \"\u624b\u673a\u53f7\u7801\u683c\u5f0f\u4e0d\u6b63\u786e\");\n        $('#topLoginFormMobile input[name=mobile]').focus();\n        return false;\n    }\n    if (eval(qscms.smsTatus)) {\n        if (eval(qscms.varify_mobile) && eval(qscms.captcha_open)) {\n            qsCaptchaHandler(function(callBackArr) {\n                var mobileValue = $.trim($('#topLoginFormMobile input[name=mobile]').val());\n                var dataArr = {sms_type: 'login', mobile: mobileValue};\n                $.extend(dataArr, callBackArr);\n                $('#topGetCodeBtn').text('\u53d1\u9001\u4e2d...').addClass('btn_disabled');\n                $.ajax({\n                    url: qscms.root + '?m=Home&c=Members&a=reg_send_sms',\n                    cache: false,\n                    async: false,\n                    type: 'post',\n                    dataType: 'json',\n                    data: dataArr,\n                    success: function(result) {\n                        if (result.status) {\n                            disapperTooltip(\"success\", \"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536\");\n                            \/\/ \u5f00\u59cb\u5012\u8ba1\u65f6\n                            var countdown = 60;\n                            function settime() {\n                                if (countdown == 0) {\n                                    $('#topGetCodeBtn').text('\u83b7\u53d6\u9a8c\u8bc1\u7801').removeClass('btn_disabled');\n                                    countdown = 60;\n                                    return;\n                                } else {\n                                    $('#topGetCodeBtn').text('\u91cd\u53d1' + countdown + '\u79d2').addClass('btn_disabled');\n                                    countdown--;\n                                }\n                                setTimeout(function() {\n                                    settime()\n                                }, 1000)\n                            }\n                            settime();\n                        } else {\n                            $('#topGetCodeBtn').text('\u83b7\u53d6\u9a8c\u8bc1\u7801').removeClass('btn_disabled');\n                            disapperTooltip(\"remind\", result.msg);\n                        }\n                    },\n                    error: function(result) {\n                        console.log(result);\n                    }\n                });\n            });\n        } else {\n            topSendSms();\n        }\n    } else {\n        disapperTooltip(\"remind\", \"\u77ed\u4fe1\u672a\u5f00\u542f\");\n    }\n});\n\/\/ \u53d1\u9001\u9a8c\u8bc1\u7801\nfunction topSendSms() {\n    $('#topGetCodeBtn').text('\u53d1\u9001\u4e2d...').addClass('btn_disabled');\n    var mobileValue = $.trim($('#topLoginFormMobile input[name=mobile]').val());\n    $.ajax({\n        url: qscms.root + '?m=Home&c=Members&a=reg_send_sms',\n        cache: false,\n        async: false,\n        type: 'post',\n        dataType: 'json',\n        data: {\n            sms_type: 'login',\n            mobile: mobileValue\n        },\n        success: function(result) {\n            if (result.status) {\n                disapperTooltip(\"success\", \"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536\");\n                \/\/ \u5f00\u59cb\u5012\u8ba1\u65f6\n                var countdown = 60;\n                function settime() {\n                    if (countdown == 0) {\n                        $('#topGetCodeBtn').text('\u83b7\u53d6\u9a8c\u8bc1\u7801').removeClass('btn_disabled');\n                        countdown = 60;\n                        return;\n                    } else {\n                        $('#topGetCodeBtn').text('\u91cd\u53d1' + countdown + '\u79d2').addClass('btn_disabled');\n                        countdown--;\n                    }\n                    setTimeout(function() {\n                        settime()\n                    }, 1000)\n                }\n                settime();\n            } else {\n                $('#topGetCodeBtn').text('\u83b7\u53d6\u9a8c\u8bc1\u7801').removeClass('btn_disabled');\n                disapperTooltip(\"remind\", result.msg);\n            }\n        }\n    });\n}\n\/\/ \u81ea\u52a8\u767b\u5f55\n$('.expLoginBtn').die().live('click', function() {\n    var $chkInp = $(this).find(\"input\");\n    var chkInpVal = $chkInp.val();\n    if (chkInpVal == '1') {\n        $chkInp.val('0');\n        $(this).removeClass('select');\n    } else {\n        $chkInp.val('1');\n        $(this).addClass('select');\n    }\n});\n\/\/ \u6ce8\u518c\u8d26\u53f7\n$('.J_top_loging_user_reg').die().live('click', function() {\n        $(\".modal,.modal_backdrop\").remove();\n        siteRegModelShow();\n    })\n<\/script>"},"dialog":""}