You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
212 lines
7.0 KiB
Plaintext
212 lines
7.0 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>手机登录</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script type="text/javascript" src="../../WF/Scripts/bootstrap/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../WF/Scripts/bootstrap/js/bootstrap.min.js"></script>
|
|
<link href="../../WF/Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../WF/Style/skin/plugins/metisMenu/jquery.metisMenu.js"></script>
|
|
<script src="../../WF/Style/skin/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
|
<script src="../../WF/Style/skin/js/appnew.js?v=4.1.0"></script>
|
|
<script type="text/javascript" src="../../WF/Style/skin/js/index.js"></script>
|
|
<script src="../../WF/Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
<!-- 引用通用的js文件. -->
|
|
<script type="text/javascript" src="../../WF/Scripts/config.js"></script>
|
|
<script type="text/javascript" src="../../WF/Comm/Gener.js"></script>
|
|
<script src="../../WF/Scripts/layui/layui/lay/modules/layer.js"></script>
|
|
<style>
|
|
body {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-top: 10%
|
|
}
|
|
|
|
.header strong {
|
|
display: block;
|
|
padding: 10px 0px;
|
|
}
|
|
|
|
.form-group .form-control {
|
|
box-sizing: border-box;
|
|
height: 36px;
|
|
}
|
|
|
|
.btn.signin_btn, .btn.signin_btn:focus {
|
|
width: 100%;
|
|
padding: 0;
|
|
height: 45px;
|
|
background: #26d9b3;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-family: "CircularStd-Bold";
|
|
text-transform: uppercase;
|
|
border-radius: 3px;
|
|
box-shadow: 0 5px 20px rgba(60,191,163,.3);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.footp {
|
|
color: #a1a5ad;
|
|
font-size: 16px;
|
|
font-family: "CircularStd-Book";
|
|
max-width: 265px;
|
|
margin: 34px auto;
|
|
}
|
|
|
|
.footp > a {
|
|
color: #202e42;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.inv-footer {
|
|
border-top: 1px solid #ccc;
|
|
padding: 10px 0px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" language="javascript">
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
var orgNo = GetQueryString("OrgNo");
|
|
var userNo = GetQueryString("From");
|
|
|
|
var org = new Entity("BP.Cloud.Org", orgNo);
|
|
|
|
|
|
var html = "<img src='../../DataUser/OrgIcon/" + org.No + ".png' onerror=\"this.src='../../DataUser/OrgIcon/ccs.png'\" />";
|
|
html += "<strong>欢迎加入:" + org.Name + "</strong>";
|
|
$("#OrgInfo").html(html);
|
|
|
|
var depts = new Entities("BP.Cloud.Depts");
|
|
depts.Retrieve("OrgNo", orgNo, "Idx");
|
|
|
|
//默认是发送人的部门.
|
|
var emp = new Entity("BP.Cloud.Emp", orgNo + "_" + userNo);
|
|
|
|
//绑定部门.
|
|
GenerBindDDL("DDL_Dept", depts, "No", "Name", emp.FK_Dept);
|
|
});
|
|
|
|
function CheckUserNo(val) {
|
|
|
|
if (val == '') {
|
|
layer.msg("账号手机号,不能为空.");
|
|
return false;
|
|
}
|
|
|
|
if (!(/^1[3456789]\d{9}$/.test(val))) {
|
|
layer.msg("手机号码有误,请重填.");
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
var url = "http://passport.ccbpm.cn/Handler.ashx?DoType=IsExitUserNo&UserNo=" + val;
|
|
var data = DBAccess.RunDBSrc(url, 1,);
|
|
if (data === 1) {
|
|
layer.msg("您好,该手机号已经注册过了,您可以找回密码。");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
function Submit() {
|
|
|
|
var tel = $("#TB_No").val();
|
|
if (CheckUserNo(tel) == false)
|
|
return;
|
|
|
|
var name = $("#TB_Name").val();
|
|
if (name == '' || name == undefined) {
|
|
layer.msg("名称不能为空.");
|
|
return;
|
|
}
|
|
|
|
var pass1 = $("#TB_Pass1").val();
|
|
var pass2 = $("#TB_Pass2").val();
|
|
if (pass1 != pass2) {
|
|
layer.msg("两次密码不一致.");
|
|
return;
|
|
}
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.App_Organization");
|
|
handler.AddFormData();
|
|
handler.AddUrlData();
|
|
var data = handler.DoMethodReturnString("Invited_Submit");
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
layer.msg("注册成功,确定后登陆系统.");
|
|
SetHref(data);
|
|
}
|
|
function Lgoin() {
|
|
var url = "http://passport.ccbpm.cn/Default.htm?OrgNo=" + GetQueryString("OrgNo");
|
|
SetHref(url);
|
|
}
|
|
function ByWX() {
|
|
var url = "InvitedByWX.htm";
|
|
url += "?OrgNo=" + GetQueryString("OrgNo");
|
|
url += "&From=" + GetQueryString("From");
|
|
SetHref(url);
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<div id="OrgInfo"> </div>
|
|
</div>
|
|
|
|
<form id="cc">
|
|
<div class="form-group">
|
|
<label>手机号</label>
|
|
<input type="text" id="TB_No" class="form-control" name="TB_No" placeholder="手机号,账号" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>
|
|
姓名
|
|
</label>
|
|
<input type="text" id="TB_Name" class="form-control" name="TB_Name" placeholder="姓名" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>
|
|
所在部门
|
|
</label>
|
|
|
|
<select id="DDL_Dept" name="DDL_Dept" class="form-control"></select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>
|
|
密码
|
|
</label>
|
|
<input type="password" id="TB_Pass1" name="TB_Pass1" class="form-control" placeholder="请输入密码" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>
|
|
重复密码
|
|
</label>
|
|
<input type="password" id="TB_Pass2" name="TB_Pass2" class="form-control" placeholder="确认密码" />
|
|
</div>
|
|
<div class="form-group">
|
|
|
|
<input type="button" class="btn signin_btn" value="提交注册信息" onclick="Submit()" />
|
|
</div>
|
|
<p class="text-center footp">
|
|
已经注册, <a href="javascript:();" onclick="Lgoin()">登陆</a>
|
|
</p>
|
|
</form>
|
|
<div class="inv-footer">
|
|
<a href="javascript:ByWX()"><img src="../Img/weixin.jpg" width="30"/> </a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |