https://starhomecrm.com/index.php?m=user&a=login

Submitted URL:
https://starhomecrm.comRedirected
Report Finished:

The outgoing links identified from the page

LinkText
https://my.jxycrm.com/index.php?m=admin&a=register新用户注册
https://my.jxycrm.com/index.php?m=admin&a=find_pwd找回密码
http://wpa.qq.com/msgrd?v=3&uin=1067892114&site=qq&menu=yesQQ在线客服
http://www.crm.cc/©2019 简信CRM

JavaScript Variables · 10 found

Global JavaScript variables loaded on the window object of a page, are variables declared outside of functions and accessible from anywhere in the code within the current scope

NameType
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
$function
jQueryfunction
toastrobject
Spinnerfunction
Laddaobject
swalfunction
sweetAlertfunction

Console log messages · 2 found

Messages logged to the web console

TypeCategoryLog
verbosedom
URL
https://starhomecrm.com/index.php?m=user&a=login
Text
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://starhomecrm.com/index.php?m=user&a=login
Text
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o

HTML

The raw HTML body of the page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta charset="utf-8">
	<title>员工登录 - Powered By 简信CRM</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="简信CRM">
	<link rel="shortcut icon" href="/Public/ico/favicon.png">
	<link href="/Public/style/css/bootstrap.min.css" rel="stylesheet">
	<link type="text/css" href="/Public/css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="/Public/style/css/plugins/toastr/toastr.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/Public/css/baseuser.css"> 

	<script src="/Public/style/js/jquery-2.1.1.js"></script>
    <script src="/Public/style/js/bootstrap.min.js"></script>

    <script src="/Public/style/js/plugins/toastr/toastr.min.js"></script>
    <script src="/Public/js/jquery.base64.js"></script>
	<script src="/Public/js/jquery.md5.js"></script>

    <!-- ladda -->
    <link href="/Public/style/css/plugins/ladda/ladda-themeless.min.css" rel="stylesheet">
	<script src="/Public/style/js/plugins/ladda/spin.min.js"></script><style type="text/css"></style>
	<script src="/Public/style/js/plugins/ladda/ladda.min.js"></script>
	<script src="/Public/style/js/plugins/ladda/ladda.jquery.min.js"></script>
	
	<!-- Sweet alert -->
	<script src="/Public/style/js/plugins/sweetalert/sweetalert.min.js"></script>
    <link href="/Public/style/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<style>
	.errorInput {border:1px solid red;}
	
	.loginBtninfo {
		display: inline-block;
		text-align: center;
	}
	.company_box {
		padding: 2px 18px 2px 32px;
		max-height: 300px;
    	overflow-y: auto;
    	margin-bottom: 15px;
	}
	.company_body {
		width: 100%;
		height: 50px;
		line-height: 50px;
		margin-bottom: 5px;
		border: 1px solid #adadad;
		text-align: center;
		cursor: pointer;
		border-radius: 3px;
	}
</style></head>

<body>
<input type="hidden" class="alert_tishi" rel="error" value="请先登录..."><input type="hidden" id="alert_defaultinfo_name" value="StarHome">
<script>
    $(document).ready(function() {
        var tishi = $('.alert_tishi').val();
        var is_success = $('.alert_tishi').attr('rel');
        var alert_defaultinfo_name = $('#alert_defaultinfo_name').val();
        setTimeout(function() {
            if(is_success == 'error'){
                toastr.options = {
                    closeButton: true,
                    progressBar: true,
                    showMethod: 'slideDown',
                    timeOut: 4000,
                    fadeIn: 7000
                };
                toastr.error(alert_defaultinfo_name,tishi);
            }else{
                toastr.options = {
                    closeButton: true,
                    progressBar: true,
                    showMethod: 'slideDown',
                    timeOut: 2000
                };
                toastr.success(alert_defaultinfo_name,tishi);
            }
        }, 800);
    });
</script><div class="content-login">
    <div class="imgdefault" style="background: url(/Public/img/default.png) center center no-repeat #5d9bf4;background-size: contain;"></div>
    <div class="logininfo">
    	<div class="logininfowidth" id="first_step">
            <div class="loginrq ">
                <a href="javascript:;">
                   	<img src="./Uploads//201911/23/5dd8df2b984a18081.png" style="width: 234px;height:72px;">
                </a>
            </div>
		    <form action="" class="formtheme" method="post" id="login_form">
		    	<input type="hidden" name="config_id" value="">
			    <div class="logininputList logininputListUser">
			        <input type="text" class="inputinfo" name="name" id="name" placeholder="手机号" autofocus="autofocus">
			    </div>
			    <div class="logininputList logininputListPwd">
			 		<input type="password" class="inputinfo" name="password" id="password" placeholder="密码">
			    </div>
			    <div class="logininputList" style="margin-top:-12px;margin-bottom: 10px;">
					<a href="javascript:void(0);" class="ladda-button loginBtninfo" id="loginsub" data-style="zoom-in">
						<span class="ladda-label">登录</span>
					<span class="ladda-spinner"></span></a>
			    </div>
			    <p class="logininputList" style="padding-top: 30px;text-align: center;">
			   		<a href="https://my.jxycrm.com/index.php?m=admin&amp;a=register">新用户注册</a> | <a href="https://my.jxycrm.com/index.php?m=admin&amp;a=find_pwd">找回密码</a>
			    </p>
		    </form>
        </div>
        <!-- 多公司选择公司 -->
	    <div class="logininfowidth" id="second_step" style="display: none;top: 40%;">
	        <div class="loginrq" style="text-align: center;height: 60px;">
	            <h3>选择公司</h3>
	        </div>
	    	<div class="company_box"></div>
	    	<div class="logininputList logininputListPwd">
			 	<input type="password" class="inputinfo" id="pwd_temp" placeholder="根据选择登录的公司确认登录密码">
			</div>
		    <div class="logininputList" style="margin-top:-20px;margin-bottom: 10px;">
				<a href="javascript:void(0);" class="ladda-button loginBtninfo" id="login_again" data-style="zoom-in">
					<span class="ladda-label">确认</span>
				<span class="ladda-spinner"></span></a>
		    </div>
	    </div>
	    <div style="position: absolute; bottom: 50px; width: 100%; ">
	    	<div style="text-align: center;">
			   	<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1067892114&amp;site=qq&amp;menu=yes" target="_blank" style="color:#a1a1a1;">QQ在线客服</a> | <font style="color:#a1a1a1;">服务热线:400-0665-929</font> <br>
		    	<a href="http://www.crm.cc/" target="_blank" style="color:#a1a1a1;">©2019 简信CRM</a>
    		</div>
    	</div>
    </div>
</div>

<script type="text/javascript">
	// 回车可触发表单提交事件
	// $('body').keyup(function(event){
	//     if(event.keyCode == "13"){
	//         $('#loginsub').click();
	//     }
	// });

	// 保存按钮loading
	$( '.ladda-button' ).ladda( 'bind', { timeout: 2000 } );

	$.base64.utf8encode = true;

	// 点击登录
	$('#loginsub').click(function() {
		swal({
			title: '正在验证信息',
			text: '... ...',
			type: 'info',
			showConfirmButton: false
		});
		if($('#name').val() == '' || $('#password').val() == ''){
			swal('用户名或密码不能为空', '', 'error');
			return false;
		} else {
			var password = $.trim($('#password').val());			
			$('#password').val($.md5(password));
		}
		$.ajax({
			type:'post',
			url: "/index.php?m=user&a=login",
			data:$('#login_form').serialize(), // 你的formid
			async: true,
			success:function(data){
				if(data.status == 1){
					swal('登录成功', '', 'success');
					window.location.href = "/index.php?m=index&a=index";
				} else if (data.status == 2) {					
					var company_html = '';
					$.each(data.data, function(k, v){
						company_html += "<div class='company_body' config_id='"+v.config_id+"'>"+v.company+"</div>";
					});
					$('.company_box').html(company_html);
					$('#first_step').hide();
					$('#second_step').show();
					$('#pwd_temp').val(password); // 谷歌浏览器有问题,password赋值后无法直接正常获取,只能先赋值到临时input表单
					swal.close();
				} else {
					$('#password').val(password);
					swal('登录异常', data.info, 'error');
				}
			},
			dataType:'json'
		});
	});

	// 选择公司
	$(document).on('click','.company_body',function(){
		$('.company_body').css({'background-color':'#fff', 'color':'#909090'});
		$(this).css({'background-color':'#1ab394', 'color':'#fff'});
		var config_id = $(this).attr('config_id');	
		$('input[name="config_id"]').val(config_id);
	});

	// 多公司选择后再次请求登录
	$('#login_again').click(function(){	
		swal({
			title: '正在登录',
			text: '... ...',
			type: 'info',
			showConfirmButton: false
		});			
		var config_id = $('input[name="config_id"]').val();
		if (config_id) {
			var password = $.trim($('#pwd_temp').val());	
			$('#password').val($.md5(password));
			$.ajax({
				type:'post',
				url: "/index.php?m=user&a=login",
				data:$('#login_form').serialize(), // 你的formid
				async: true,
				success:function(data){
					if(data.status == 1){
						swal('登录成功', '', 'success');
						window.location.href = "/index.php?m=index&a=index";
					} else {
						// $('#first_step').show();
						// $('#second_step').hide();
						// $('input[name="config_id"]').val('');
						$('#password').val(password);
						swal('登录异常', data.info, 'error');
					}
				},
				dataType:'json'
			});
		} else {
			swal('登录异常', '请选择想要登录的公司', 'warning');
		}
	});
</script>
</body></html>