Browse Source

企业工作台

jack 8 years ago
parent
commit
b099014045

+ 60 - 0
cmp-portal/cmp-UnstaffList.html

@ -0,0 +1,60 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>企业员工管理</title>
8
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
9
<link type="text/css" rel="stylesheet" href="css/common.css">
10
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
11
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
12
</head>
13
<body>
14

15
<!--头部-->
16
<header>
17
	<script type="text/javascript" src="js/public/cmpHeader.js"></script>
18
</header>
19

20
<!--中间-->
21
<div id="container">
22
	<div class="containerCon con-center">
23
        <div class="workmenu">
24
            <a href="cmp-workspaces.html" class="workmenutit">企业工作台</a>
25
            <a href="cmp-needList.html" class="worksubmenu" >需求</a>
26
            <a href="javascript:;" class="worksubmenu cmpBg">员工</a>
27
        </div>
28
        <div class="workcon">
29
			<div class="workconitem">
30
			    <div class="workcontit">企业员工
31
			    	<a href="cmp-staffList.html"class="worksamlltit">员工管理</a>
32
					<a class="worksamlltit worksamlltitnow cmpBorder cmpColor">员工认证</a>
33
			    </div>	
34
					<!--员工认证-->
35
					<div class="workblock clearfix">
36
						<div class="workselectcon">
37
							<form class="stafffrm">
38
								<p class="smalltip">列表中的用户在资料中填写了您的企业名称,点击认证后,该用户将成为您的【企业认证员工】,能够以您企业的名义发布需求。</p>
39
							</form>
40
							<ul class="staffMana bgRadius clearfix" id="UnauthorizedUserList">
41
								
42
							</ul>
43
						</div>
44
					</div>	
45
				</div>
46
			</div>
47
        </div>
48
	</div>
49
</div>
50

51

52
<!--底部-->
53
<footer>
54
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
55
</footer>
56
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
57
<script type="text/javascript" src="js/public/common.js"></script>
58
<script type="text/javascript"src="js/cmp-UnstaffList.js"></script>
59
</body>
60
</html>

+ 1 - 102
cmp-portal/cmp-needList.html

@ -65,108 +65,7 @@
65 65
			            <div class="workselectcon" id="shoudao">
66 66
		                	<div class="workContainer">
67 67
			                	<ul id="demandList">
68
									<li class='workselectitem'>
69
								  		<div class='col-w-2'>
70
											<div class='workitimg headRadius'>
71
												<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
72
											</div>
73
										</div>
74
										<div class="col-w-10 needinfo">
75
											<div class='workinfor worksitcon'>
76
												<h4> 
77
													<span class="h1Font">["name"] </span>
78
											        <em class="authicon authicon-com-ok"></em>
79
												</h4>
80
												<h6 class='h3Font'>
81
													<span>["title"]</span>, <span>["office"]</span>,<span>["orgName"]</span>,<span>["department"]</span> | <span>["address"]</span>
82
												</h6>
83
												<h6 style='position:relative;'>
84
													<div class='titList'>需求主题:<em class='h4Font'> data[i]["consultTitle"] </em></div>
85
													<span class='lasttime rightTime'>2017年3月9日 14:20</span>
86
													<p class='rebackcon ellipsisSty-2'>plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]</p>
87
												</h6>
88
											</div>
89
											<div class='workhandle'>
90
												<div class='rightopert floatR'>
91
													<span class='replybtn'>查看</span>
92
												</div>
93
												<div class='leftstate floatR'>
94
													<span class='coultstate status-4'><i>寻找资源</i></span>
95
												</div>
96
												<div class='leftstate floatR'>
97
													<span class='coultstate coulstAim status-4'><i>个人需求</i></span>
98
												</div>
99
											</div>
100
										</div>
101
									</li>
102
									<li class='workselectitem'>
103
								  		<div class='col-w-2'>
104
											<div class='workitimg headRadius'>
105
												<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
106
											</div>
107
										</div>
108
										<div class="col-w-10 needinfo">
109
											<div class='workinfor worksitcon'>
110
												<h4> 
111
													<span class="h1Font">["name"] </span>
112
											        <em class="authicon authicon-pro" title="科袖认证专家"></em>
113
												</h4>
114
												<h6 class='h3Font'>
115
													<span>["title"]</span>, <span>["office"]</span>,<span>["orgName"]</span>,<span>["department"]</span> | <span>["address"]</span>
116
												</h6>
117
												<h6 style='position:relative;'>
118
													<div class='titList'>需求主题:<em class='h4Font'> data[i]["consultTitle"] </em></div>
119
													<span class='lasttime rightTime'>2017年3月9日 14:20</span>
120
													<p class='rebackcon ellipsisSty-2'>plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]</p>
121
												</h6>
122
											</div>
123
											<div class='workhandle'>
124
												<div class='rightopert floatR'>
125
													<span class='replybtn'>查看</span>
126
												</div>
127
												<div class='leftstate floatR'>
128
													<span class='coultstate status-4'><i>寻找资源</i></span>
129
												</div>
130
												<div class='leftstate floatR'>
131
													<span class='coultstate coulstAim status-4'><i>个人需求</i></span>
132
												</div>
133
											</div>
134
										</div>
135
									</li>
136
									<li class='workselectitem'>
137
								  		<div class='col-w-2'>
138
											<div class='workitimg headRadius'>
139
												<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
140
											</div>
141
										</div>
142
										<div class="col-w-10 needinfo">
143
											<div class='workinfor worksitcon'>
144
												<h4> 
145
													<span class="h1Font">["name"] </span>
146
											        <em class="authicon authicon-pro" title="科袖认证专家"></em>
147
												</h4>
148
												<h6 class='h3Font'>
149
													<span>["title"]</span>, <span>["office"]</span>,<span>["orgName"]</span>,<span>["department"]</span> | <span>["address"]</span>
150
												</h6>
151
												<h6 style='position:relative;'>
152
													<div class='titList'>需求主题:<em class='h4Font'> data[i]["consultTitle"] </em></div>
153
													<span class='lasttime rightTime'>2017年3月9日 14:20</span>
154
													<p class='rebackcon ellipsisSty-2'>plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]plyFn(userid,data[i]["consultId"])["lastReplyCon"]</p>
155
												</h6>
156
											</div>
157
											<div class='workhandle'>
158
												<div class='rightopert floatR'>
159
													<span class='replybtn'>查看</span>
160
												</div>
161
												<div class='leftstate floatR'>
162
													<span class='coultstate status-4'><i>寻找资源</i></span>
163
												</div>
164
												<div class='leftstate floatR'>
165
													<span class='coultstate coulstAim status-4'><i>个人需求</i></span>
166
												</div>
167
											</div>
168
										</div>
169
									</li>
68
									
170 69
								</ul>
171 70
		                	</div>
172 71


+ 11 - 177
cmp-portal/cmp-staffList.html

@ -9,8 +9,6 @@
9 9
<link type="text/css" rel="stylesheet" href="css/common.css">
10 10
<link type="text/css" rel="stylesheet" href="css/cmpindex.css">
11 11
<script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
12
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
13
<script type="text/javascript" src="js/public/common.js"></script>
14 12
</head>
15 13
<body>
16 14

@ -31,21 +29,21 @@
31 29
			<div class="workconitem">
32 30
			    <div class="workcontit">企业员工
33 31
			    	<a class="worksamlltit worksamlltitnow cmpBorder cmpColor">员工管理</a>
34
					<a class="worksamlltit">员工认证</a>
32
					<a href="cmp-UnstaffList.html"class="worksamlltit">员工认证</a>
35 33
			    </div>
36 34
			    <div class="worksubcon clearfix">
37 35
			    	<!--未认证-->
38
		            <div class="workblock identityState">
36
		            <div class="workblock identityState" id="identityState">
39 37
						<div class="nowState">
40 38
						   <p><span class="identProcess" id="identProcess">通过企业认证后,您可以在这里认证企业员工,<br />这些【企业认证员工】可以在科袖网发布企业需求。</span><span class="identts" id="identts"></span></p>
41 39
						   <a href="cmp-setAuth.html"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上认证</button></a>
42 40
						</div>
43 41
					</div>
44 42
					<!--员工管理-->
45
					<div class="workblock clearfix">
43
					<div class="workblock clearfix" id="staff">
46 44
						<div class="workselectcon">
47 45
							<form class="stafffrm">
48
								<input type="email" name="staffemail" class="frmtype staffemail" placeholder="请输入您企业员工的邮箱地址" />
46
								<input type="email" name="staffemail" class="frmtype staffemail" placeholder="请输入您企业员工的邮箱地址" id="mail"/>
49 47
								<button type="button" class="frmtype btnModel headRadius identBtn">邀请</button>
50 48
								<ul class="staffTip smalltip">
51 49
									<li>* 对方接受邀请后,将成为您的【企业认证员工】,能够以您企业的名义发布需求。</li>
@ -53,170 +51,11 @@
53 51
								</ul>
54 52
								<p class="smalltip">点击移除后,该用户将不再是您的【企业认证员工】,不能再发布企业需求,您可以在【需求管理】中关闭他之前发布的需求。</p>
55 53
							</form>
56
							<ul class="staffMana bgRadius clearfix">
57
								<li>
58
									<div class='leftlogo floatL headRadius'>
59
										<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
60
									</div>
61
									<div class='rightinfo staffinfo floatL'>
62
										<p class="h3Font">["name"] </p>
63
										<p class='h5Font ellipsisSty'>
64
											<span>["title"]</span>, <span>["office"]</span>
65
										</p>
66
										<p class='h5Font ellipsisSty'>
67
											<span>["department"]</span>, <span>["orgName"]</span>
68
										</p>
69
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">移除</button>
70
									</div>
71
								</li>
72
								<li>
73
									<div class='leftlogo floatL headRadius'>
74
										<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
75
									</div>
76
									<div class='rightinfo staffinfo floatL'>
77
										<p class="h3Font">["name"] </p>
78
										<p class='h5Font ellipsisSty'>
79
											<span>["title"]</span>, <span>["office"]</span>
80
										</p>
81
										<p class='h5Font ellipsisSty'>
82
											<span>["department"]</span>, <span>["orgName"]</span>
83
										</p>
84
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">移除</button>
85
									</div>
86
								</li>
87
								<li>
88
									<div class='leftlogo floatL headRadius'>
89
										<img class='headPhoto' src='images/default-photo.jpg'  width='100%'>
90
									</div>
91
									<div class='rightinfo staffinfo floatL'>
92
										<p class="h3Font">["name"] </p>
93
										<p class='h5Font ellipsisSty'>
94
											<span>["title"]</span>, <span>["office"]</span>
95
										</p>
96
										<p class='h5Font ellipsisSty'>
97
											<span>["department"]</span>, <span>["orgName"]</span>
98
										</p>
99
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">移除</button>
100
									</div>
101
								</li>
102
								<li>
103
									<div class='leftlogo floatL headRadius'>
104
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
105
									</div>
106
									<div class='rightinfo staffinfo floatL'>
107
										<p class="h3Font">["name"] </p>
108
										<p class='h5Font ellipsisSty'>
109
											<span>["title"]</span>, <span>["office"]</span>
110
										</p>
111
										<p class='h5Font ellipsisSty'>
112
											<span>["department"]</span>, <span>["orgName"]</span>
113
										</p>
114
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">移除</button>
115
									</div>
116
								</li>
117
								<li>
118
									<div class='leftlogo floatL headRadius'>
119
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
120
									</div>
121
									<div class='rightinfo staffinfo floatL'>
122
										<p class="h3Font">["name"] </p>
123
										<p class='h5Font ellipsisSty'>
124
											<span>["title"]</span>, <span>["office"]</span>
125
										</p>
126
										<p class='h5Font ellipsisSty'>
127
											<span>["department"]</span>, <span>["orgName"]</span>
128
										</p>
129
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">移除</button>
130
									</div>
131
								</li>
54
							<ul class="staffMana bgRadius clearfix" id="authorizedUserList">
55
								
132 56
							</ul>
133 57
						</div>
134
					</div>
135
					<!--员工认证-->
136
					<div class="workblock clearfix">
137
						<div class="workselectcon">
138
							<form class="stafffrm">
139
								<p class="smalltip">列表中的用户在资料中填写了您的企业名称,点击认证后,该用户将成为您的【企业认证员工】,能够以您企业的名义发布需求。</p>
140
							</form>
141
							<ul class="staffMana bgRadius clearfix">
142
								<li>
143
									<div class='leftlogo floatL headRadius'>
144
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
145
									</div>
146
									<div class='rightinfo staffinfo floatL'>
147
										<p class="h3Font">["name"] </p>
148
										<p class='h5Font ellipsisSty'>
149
											<span>["title"]</span>, <span>["office"]</span>
150
										</p>
151
										<p class='h5Font ellipsisSty'>
152
											<span>["department"]</span>, <span>["orgName"]</span>
153
										</p>
154
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">待认证</button>
155
									</div>
156
								</li>
157
								<li>
158
									<div class='leftlogo floatL headRadius'>
159
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
160
									</div>
161
									<div class='rightinfo staffinfo floatL'>
162
										<p class="h3Font">["name"] </p>
163
										<p class='h5Font ellipsisSty'>
164
											<span>["title"]</span>, <span>["office"]</span>
165
										</p>
166
										<p class='h5Font ellipsisSty'>
167
											<span>["department"]</span>, <span>["orgName"]</span>
168
										</p>
169
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">待认证</button>
170
									</div>
171
								</li>
172
								<li>
173
									<div class='leftlogo floatL headRadius'>
174
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
175
									</div>
176
									<div class='rightinfo staffinfo floatL'>
177
										<p class="h3Font">["name"] </p>
178
										<p class='h5Font ellipsisSty'>
179
											<span>["title"]</span>, <span>["office"]</span>
180
										</p>
181
										<p class='h5Font ellipsisSty'>
182
											<span>["department"]</span>, <span>["orgName"]</span>
183
										</p>
184
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">待认证</button>
185
									</div>
186
								</li>
187
								<li>
188
									<div class='leftlogo floatL headRadius'>
189
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
190
									</div>
191
									<div class='rightinfo staffinfo floatL'>
192
										<p class="h3Font">["name"] </p>
193
										<p class='h5Font ellipsisSty'>
194
											<span>["title"]</span>, <span>["office"]</span>
195
										</p>
196
										<p class='h5Font ellipsisSty'>
197
											<span>["department"]</span>, <span>["orgName"]</span>
198
										</p>
199
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">待认证</button>
200
									</div>
201
								</li>
202
								<li>
203
									<div class='leftlogo floatL headRadius'>
204
										<img class='headPhoto' src='../images/default-photo.jpg'  width='100%'>
205
									</div>
206
									<div class='rightinfo staffinfo floatL'>
207
										<p class="h3Font">["name"] </p>
208
										<p class='h5Font ellipsisSty'>
209
											<span>["title"]</span>, <span>["office"]</span>
210
										</p>
211
										<p class='h5Font ellipsisSty'>
212
											<span>["department"]</span>, <span>["orgName"]</span>
213
										</p>
214
										<button type="button" class="frmtype fontLink btnPosition cmpColor headRadius">待认证</button>
215
									</div>
216
								</li>
217
							</ul>
218
						</div>
219
					</div>	
58
					</div>					
220 59
				</div>
221 60
			</div>
222 61
        </div>
@ -228,14 +67,9 @@
228 67
<footer>
229 68
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
230 69
</footer>
231

232
<script type="text/javascript">
233
	$(".worksamlltit").click(function(){
234
		$(this).addClass("worksamlltitnow cmpBorder cmpColor").siblings().removeClass("worksamlltitnow cmpBorder cmpColor");
235
		$(".workblock").eq($(this).index() + 1).show().siblings().hide();
236
	})
237
</script>
238

239

70
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
71
<script type="text/javascript"src="js/public/jquery.similar.msgbox.js"></script>
72
<script type="text/javascript" src="js/public/common.js"></script>
73
<script type="text/javascript"src="js/cmp-staffList.js"></script>
240 74
</body>
241 75
</html>

+ 106 - 0
cmp-portal/js/cmp-UnstaffList.js

@ -0,0 +1,106 @@
1
$(document).ready(function() {
2
	var id = $.cookie('orgId');
3
	/*获取企业未认证的用户*/
4
	function UnauthorizedUser() {
5
		$.ajax({
6
			url: "/ajax/professor/qaOrgAuth",
7
			type: "GET",
8
			timeout: 10000,
9
			dataType: "json",
10
			data: {
11
				"orgId": id,
12
				"orgAuth": 0
13
			},
14
			success: function(data, textState) {
15
				if(data.success) {
16
					console.log(data);
17
					var $data = data.data;
18
					UnauthorizedUserHtml($data, "#UnauthorizedUserList", 1);
19
				}
20
			},
21
			error: function(XMLHttpRequest, textStats, errorThrown) {
22
				$.MsgBox.Alert('提示', '服务器请求失败')
23
			}
24
		})
25
	}
26
	UnauthorizedUser();
27
	/*企业未认证用户html*/
28
	function UnauthorizedUserHtml() {
29
		var arr = new Array();
30
		for(var i = 0; i < arguments[0].length; i++) {
31
			var img, tiof, deor, otex;
32
			if(arguments[0][i].hasHeadImage) {
33
				img = "/images/head/" + arguments[0][i].id + "_l.jpg";
34
			} else {
35
				img = "../images/default-photo.jpg"
36
			}
37
			if(arguments[0][i].title) {
38
				if(arguments[0][i].office) {
39
					tiof = arguments[0][i].title + " ," + arguments[0][i].office;
40
				} else {
41
					tiof = arguments[0][i].title;
42
				}
43
			} else {
44
				if(arguments[0][i].office) {
45
					tiof = arguments[0][i].office;
46
				} else {
47
					tiof = "";
48
				}
49
			}
50
			if(arguments[0][i].department) {
51
				if(arguments[0][i].orgName) {
52
					deor = arguments[0][i].department + " ," + arguments[0][i].orgName;
53
				} else {
54
					deor = arguments[0][i].department;
55
				}
56
			} else {
57
				if(arguments[0][i].orgName) {
58
					deor = arguments[0][i].orgName;
59
				} else {
60
					deor = "";
61
				}
62
			}
63
			if(arguments[2] == 1) {
64
				otex = "待认证";
65
			} else {
66
				otex = "移除";
67
			}
68
			var oString = "<li>"
69
			oString += "<div class='leftlogo floatL headRadius'>"
70
			oString += "<img class='headPhoto' src='" + img + "'  width='100%'>"
71
			oString += "</div>"
72
			oString += "<div class='rightinfo staffinfo floatL'>"
73
			oString += "<p class='h3Font'>" + arguments[0][i].name + "</p>"
74
			oString += "<p class='h5Font ellipsisSty'>" + tiof + "</p>"
75
			oString += "<p class='h5Font ellipsisSty'>" + deor + "</p>"
76
			oString += "<button type='button' class='frmtype fontLink btnPosition cmpColor headRadius' data-id='" + arguments[0][i].id + "'>" + otex + "</button>"
77
			oString += "</div>"
78
			oString += "</li>"
79
			$(arguments[1]).append(oString);
80
		}
81
	}
82
	/*认证企业员工*/
83
	$("#UnauthorizedUserList").on("click", "button", function() {
84
		var oDataId = $(this).attr("data-id");
85
		var oDa = $(this);
86
		$.ajax({
87
			url: "/ajax/professor/passOrgAuth",
88
			type: "POST",
89
			timeout: 10000,
90
			dataType: "json",
91
			data: {
92
				"id": oDataId,
93
			},
94
			success: function(data, textState) {
95
				if(data.success) {
96

97
					oDa.text("已认证")
98

99
				}
100
			},
101
			error: function(XMLHttpRequest, textStats, errorThrown) {
102
				$.MsgBox.Alert('提示', '服务器请求失败')
103
			}
104
		})
105
	})
106
})

+ 1 - 1
cmp-portal/js/cmp-needList.js

@ -1,5 +1,5 @@
1 1
$(document).ready(function() {
2
	var id = "A93B9348F2094D12A6DC9A23F16E1246";
2
	var id = $.cookie('orgId');
3 3
	var oDemandAim = "",
4 4
		oSortType = "";
5 5
	/*查询企业认证状态*/

+ 157 - 0
cmp-portal/js/cmp-staffList.js

@ -0,0 +1,157 @@
1
$(document).ready(function() {
2
	var id = $.cookie('orgId');
3
	console.log(id);
4
	/*判断企业是否认证*/
5
	function companyAuthStatus() {
6
		$.ajax({
7
			url: "/ajax/org/authStatus",
8
			type: "GET",
9
			timeout: 10000,
10
			dataType: "json",
11
			data: {
12
				"id": id
13
			},
14
			success: function(data, textState) {
15
				if(data.success) {
16
					if(data.data == 3) {
17
						$("#identityState").hide();
18
					} else {
19
						$("#staff").hide();
20
					}
21
				}
22
			},
23
			error: function(XMLHttpRequest, textStats, errorThrown) {
24
				$.MsgBox.Alert('提示', '服务器请求失败')
25
			}
26
		})
27
	}
28
	companyAuthStatus();
29
	/*获取企业认证的用户*/
30
	function UnauthorizedUser() {
31
		$.ajax({
32
			url: "/ajax/professor/qaOrgAuth",
33
			type: "GET",
34
			timeout: 10000,
35
			dataType: "json",
36
			data: {
37
				"orgId": id,
38
				"orgAuth": 1
39
			},
40
			success: function(data, textState) {
41
				if(data.success) {
42
					console.log(data);
43
					var $data = data.data;
44
					UnauthorizedUserHtml($data, "#authorizedUserList", 0);
45
				}
46
			},
47
			error: function(XMLHttpRequest, textStats, errorThrown) {
48
				$.MsgBox.Alert('提示', '服务器请求失败')
49
			}
50
		})
51
	}
52
	UnauthorizedUser()
53
		/*企业认证用户html*/
54
	function UnauthorizedUserHtml() {
55
		var arr = new Array();
56
		for(var i = 0; i < arguments[0].length; i++) {
57
			var img, tiof, deor, otex;
58
			if(arguments[0][i].hasHeadImage) {
59
				img = "/images/head/" + arguments[0][i].id + "_l.jpg";
60
			} else {
61
				img = "../images/default-photo.jpg"
62
			}
63
			if(arguments[0][i].title) {
64
				if(arguments[0][i].office) {
65
					tiof = arguments[0][i].title + " ," + arguments[0][i].office;
66
				} else {
67
					tiof = arguments[0][i].title;
68
				}
69
			} else {
70
				if(arguments[0][i].office) {
71
					tiof = arguments[0][i].office;
72
				} else {
73
					tiof = "";
74
				}
75
			}
76
			if(arguments[0][i].department) {
77
				if(arguments[0][i].orgName) {
78
					deor = arguments[0][i].department + " ," + arguments[0][i].orgName;
79
				} else {
80
					deor = arguments[0][i].department;
81
				}
82
			} else {
83
				if(arguments[0][i].orgName) {
84
					deor = arguments[0][i].orgName;
85
				} else {
86
					deor = "";
87
				}
88
			}
89
			if(arguments[2] == 1) {
90
				otex = "待认证";
91
			} else {
92
				otex = "移除";
93
			}
94
			var oString = "<li>"
95
			oString += "<div class='leftlogo floatL headRadius'>"
96
			oString += "<img class='headPhoto' src='" + img + "'  width='100%'>"
97
			oString += "</div>"
98
			oString += "<div class='rightinfo staffinfo floatL'>"
99
			oString += "<p class='h3Font'>" + arguments[0][i].name + "</p>"
100
			oString += "<p class='h5Font ellipsisSty'>" + tiof + "</p>"
101
			oString += "<p class='h5Font ellipsisSty'>" + deor + "</p>"
102
			oString += "<button type='button' class='frmtype fontLink btnPosition cmpColor headRadius' data-id='" + arguments[0][i].id + "'>" + otex + "</button>"
103
			oString += "</div>"
104
			oString += "</li>"
105
			$(arguments[1]).append(oString);
106
		}
107
	}
108
	/*移除企业员工*/
109
	$("#authorizedUserList").on("click", "button", function() {
110
		var oDataId = $(this).attr("data-id");
111
		var oDa = $(this);
112
		$.ajax({
113
			url: "/ajax/professor/removeOrgAuth",
114
			type: "POST",
115
			timeout: 10000,
116
			dataType: "json",
117
			data: {
118
				"id": oDataId,
119
			},
120
			success: function(data, textState) {
121
				if(data.success) {
122
					oDa.parents("li").remove();
123

124
				}
125
			},
126
			error: function(XMLHttpRequest, textStats, errorThrown) {
127
				$.MsgBox.Alert('提示', '服务器请求失败')
128
			}
129
		})
130
	})
131
	/*检验邮箱*/
132
	$("#mail").on("blur",function(){
133
		var oMail=$(this).val();
134
		var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
135
		if(oMail.trim().length==0) {
136
			$.MsgBox.Alert('提示', '请输入您企业员工的邮箱地址');
137
			return;
138
		}
139
		if(!gunf.test(oMail.trim())){
140
			$.MsgBox.Alert('提示', '请输入正确的邮箱地址');
141
		}
142
	})
143
	$("button:contains('邀请')").on("click",function(){
144
		var oMail=$(this).val();
145
		var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
146
		if(oMail.trim().length==0) {
147
			$.MsgBox.Alert('提示', '请输入您企业员工的邮箱地址');
148
			return;
149
		}
150
		if(!gunf.test(oMail.trim())){
151
			$.MsgBox.Alert('提示', '请输入正确的邮箱地址');
152
			return;
153
		}else{
154
			
155
		}
156
	})
157
})

+ 1 - 1
cmp-portal/js/cmp-updateinfo.js

@ -1,5 +1,5 @@
1 1
$(document).ready(function() {
2
	var id = "05FBD2E6F568461CA7EC378E66C47ABE";
2
	var id = $.cookie('orgId');
3 3
	var fileId = null;
4 4
	var cacheImageKey = null;
5 5
	/*企业信息*/

+ 1 - 2
cmp-portal/js/cmp-workspaces.js

@ -1,6 +1,5 @@
1 1
$(document).ready(function() {
2
	var id = "A93B9348F2094D12A6DC9A23F16E1246";
3
	console.log(id);
2
	var id = $.cookie('orgId');
4 3
	/*企业信息*/
5 4
	function companyInformation() {
6 5
		$.ajax({

+ 2 - 2
cmp-portal/js/companybrowinfor.js

@ -1,6 +1,5 @@
1 1
$(document).ready(function() {
2
	//var id = "05FBD2E6F568461CA7EC378E66C47ABE";
3
	var id="BB8EE2EC6881419DACC5AF4FE650055A";
2
	var id = $.cookie('orgId');
4 3
	/*企业信息*/
5 4
	function companyInformation() {
6 5
		$.ajax({
@ -11,6 +10,7 @@ $(document).ready(function() {
11 10
			beforeSend: function() {},
12 11
			success: function(data, textState) {
13 12
				if(data.success) {
13
					console.log(data);
14 14
					var $data = data.data;
15 15
					$(".h1Font").text($data.name);
16 16
					if($data.hasOrgLogo) {

+ 2 - 2
companybrowinfor.html

@ -157,10 +157,10 @@
157 157
</footer>
158 158

159 159
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
160
<script type="text/javascript" src="js/jquery.cookie.js"></script>
161
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
160 162
<script type="text/javascript" src="js/index.js"></script>
161 163
<script type="text/javascript" src="js/common.js"></script>
162
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
163
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
164 164
<script type="text/javascript" src="cmp-portal/js/companybrowinfor.js"></script>
165 165
<script type="text/javascript">
166 166
	//拿到点击的顺序,然后求出局文档的距离