Browse Source

Merge remote-tracking branch 'origin/dev' into test

zzy.zhiyuan.foxmail 8 years ago
parent
commit
54ccebc45c

+ 1 - 1
articalInfo.html

@ -52,7 +52,7 @@
52 52
					<div class="clearfix">		
53 53
						<a class="proinfor floatL" style="display:block;width:64%;" id="lineId">
54 54
							<div class="headblock floatL" style="width:40px"><img id="proHead" class="headimg headRadius" src="../images/default-photo.jpg" width="100%"></div>
55
							<div class="listtit2 floatL"><span style="margin-right:10px;color: #ff9900;" id="proName"></span><span id="proTitle"></span><span id="proOffice"></span><span id="proOrg"></span><span id="proAddress"></span></div>
55
							<div class="listtit2 floatL"><span style="color: #ff9900;" id="proName"></span><span style="margin-left:10px;" id="proTitle"></span><span id="proOffice"></span><span id="proOrg"></span><span id="proAddress"></span></div>
56 56
						</a>
57 57
						<div class="navOperate floatR">
58 58
							<span class="wrapicon upTop"></span>

+ 1 - 1
cmp-portal/cmp-workspaces.html

@ -50,7 +50,7 @@
50 50
			            <div class="workblock identityState" id="authBad" style="display:none">
51 51
							<div class="nowState">
52 52
							   <p><span class="identProcess" id="identProcess">通过企业认证,员工可以在科袖网发布企业需求,<br />专家帮助您解决研发难题。</span><span class="identts" id="identts"></span></p>
53
							   <a href="cmp-setAuth.html"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上去认证</button></a>
53
							   <a href="cmp-setAuth.html?auth=1"><button type="button" class="frmtype btnModel headRadius identBtn" id="identBtn">马上去认证</button></a>
54 54
							</div>
55 55
						</div>
56 56
						<div class="workblock clearfix" id="authOk" style="display:none">

+ 1 - 0
cmp-portal/css/cmpindex.css

@ -62,6 +62,7 @@ a.worksubmenu.cmpBg{color: #FFFFFF;}
62 62
.workselectitem table tr .workcheck{ text-align:center;}
63 63
.worksitcon{ width:100%;margin-top:0; overflow:hidden; }
64 64
.worksitcon .titList{font-weight:bold;font-size:14px;padding-right: 130px;}
65
.worksitcon .titList em{font-style: normal;}
65 66
.worksitcon .lasttime{ font-size:13px; color:#666;}
66 67
.worksitcon .lasttime.rightTime{position: absolute; right: 20px;top:0}
67 68
.worksitcon span{ padding-right:4px;}

+ 5 - 3
cmp-portal/css/common.css

@ -518,7 +518,7 @@ a:active,a:hover{outline:0;text-decoration:none;}
518 518
/*倒三角*/
519 519
.to-bottom {display: inline-block;overflow: hidden;width: 0px;height: 0px;border: 6px solid #ccc;border-color: #ccc #fff; border-width: 6px 6px 0 6px;position: absolute;right: 0;top: 40%;}
520 520
/*/////////////////////表单样式/////////////////////// */
521
.frmtype{border:1px #b5b5b5 solid;font-size:14px;outline: none; padding:6px 20px 6px 10px;border-radius: 6px;}
521
.frmtype{border:1px #b5b5b5 solid;font-size:14px;line-height:16px;outline: none; padding:6px 20px 6px 10px;border-radius: 6px;}
522 522
.frmtype:focus{box-shadow: none;outline:none;border-color:#28b8fa;}
523 523
.frmtypeW{width:98%;margin: auto;}
524 524
textarea.frmtype{height:100px;}
@ -603,8 +603,10 @@ button.btnModelBig:hover{
603 603
.nodatabox .keyword{font-size:20px; padding:0 6px;color:#555555;}
604 604
/***********************缺省页面*******************/
605 605

606
.containerCon{width:1100px;padding:0 20px;position:relative; margin:auto;overflow: hidden; }
607
.overInitial{overflow:initial;}
606
.containerCon{width:1100px;padding:0 20px;position:relative; margin:auto;}
607
.containerCon:before,.containerCon:after{display:table;content:" "}
608
.containerCon:after{clear: both;}
609
/*.overInitial{overflow:initial;}*/
608 610
/*新版footer*/
609 611
footer{position: absolute;right:0; left: 0;bottom:0;background: #373d41;color:#888;font-size:16px;line-height:30px;}
610 612
footer .containerCon{background: #373d41;}

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

@ -62,8 +62,8 @@ $(document).ready(function() {
62 62
						$("#authCompany").addClass("authicon-com-ok");
63 63
						$("#authCompany").attr("title","认证企业")
64 64
					}else{
65
						$("#authCompany").addClass("authicon-com-no");
66
						$("#authCompany").attr("title","未认证企业")
65
						/*$("#authCompany").addClass("authicon-com-no");
66
						$("#authCompany").attr("title","未认证企业")*/
67 67
					}
68 68
					if($data.organization.industry){
69 69
						$(".ellipsisSty").text($data.organization.industry);

+ 6 - 5
cmp-portal/js/cmp-setAuth-imgup.js

@ -21,14 +21,15 @@ function uploadFun(_this, num) {
21 21
/*上传文件生成cacheKey码*/
22 22
function ajaxFileUpload(num) {
23 23
	$.ajaxFileUpload({
24
		url: '/ajax/cachedFileUpload',
24
		url: '/ajax/cachedFileUpload?text=1',
25 25
		secureuri: false,
26 26
		fileElementId: 'fileone' + num,
27
		dataType: 'json',
27
		type: "POST", 
28
		dataType:"text/html",
28 29
		success: function(data, status) {
29
			console.log(data)
30
			if(data.success) {
31
				$("#fileone" + num).attr("data-id", data.data[0].cacheKey);
30
			var $data = JSON.parse(data);
31
			if($data.success) {
32
				$("#fileone" + num).attr("data-id", $data.data[0].cacheKey);
32 33
			}
33 34
		}
34 35
	})

+ 7 - 1
cmp-portal/js/cmp-setAuth.js

@ -2,9 +2,15 @@
2 2
$(function() {
3 3

4 4
	var orgid = $.cookie('orgId');
5
	var auth = GetQueryString("auth");
5 6
	var temp = [];
6 7
	/*查询企业认证状态*/
7
	authStatus();
8
	if(auth==1){
9
		$(".authup").removeClass("displayNone");
10
	}else{
11
		authStatus();	
12
	}
13
	
8 14

9 15
	$("#authsubmet").on("click", function() {
10 16
		var fileoneVal = $("#fileone1").attr("data-id");

+ 3 - 3
cmp-portal/js/cmp-workspaces.js

@ -14,8 +14,8 @@ $(document).ready(function() {
14 14
					var otext, oguimo;
15 15
					console.log(data);
16 16
					if($data.authStatus != 3) {
17
						$("#photoClass").addClass("authicon-com-no")
18
						$("#photoClass").attr("title", "未认证企业");
17
						/*$("#photoClass").addClass("authicon-com-no")
18
						$("#photoClass").attr("title", "未认证企业");*/
19 19
						$("#authBad").show();
20 20
					} else {
21 21
						$("#photoClass").addClass("authicon-com-ok");
@ -188,7 +188,7 @@ $(document).ready(function() {
188 188
			}
189 189
			var ostring = '<li>'
190 190
			ostring += '<div class="leftlogo floatL">'
191
			ostring += '<img class="headRadius" src="' + img + '" />'
191
			ostring += '<img class="headRadius" src="' + img + '" width="100%"/>'
192 192
			ostring += '<div class="h4Font"><span>' + arr[i].professor.name + '</span></div></div>'
193 193
			ostring += '<div class="rightinfo floatL">'
194 194
			ostring += '<p class="h3Font fontweight ellipsisSty">' + arr[i].demandTitle + '</p>'

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

@ -21,9 +21,10 @@ $(document).ready(function() {
21 21
					$("#comName").text($data.name);
22 22
					if($data.authStatus == 3) {
23 23
						$("#authS").addClass("authicon-com-ok").attr("title", "认证企业");
24
					} else {
24
					} 
25
					/*else {
25 26
						$("#authS").addClass("authicon-com-no").attr("title", "未认证企业");
26
					}
27
					}*/
27 28
					if($data.hasOrgLogo) {
28 29
						$("#oimg").attr("src", "/images/org/" + $data.id + ".jpg");
29 30
					} else {

+ 1 - 1
cmp-portal/js/public/cmpHeader.js

@ -8,7 +8,7 @@
8 8
								'</div>' +
9 9
						'</div>' +	
10 10
					'<div class="container-fulid navheader">'+
11
					  '<div class="containerCon clearfix overInitial">'+
11
					  '<div class="containerCon clearfix">'+
12 12
					  		'<div class="floatL">'+
13 13
									'<div class="headlogo floatL">'+
14 14
											'<a href="javascript:;"><h1></h1></a>'+

+ 1 - 1
css/common.css

@ -186,7 +186,7 @@ button.btnModel[disabled]:hover{background:#d6d8de;}
186 186
}
187 187

188 188
/*认证标识相关*/
189
.authiconNew{/*position:absolute;top:1px;*/display: inline-block;margin-left:4px;background-position: center;background-repeat: no-repeat;}
189
.authiconNew{position:relative;top:2px;display: inline-block;margin-left:4px;background-position: center;background-repeat: no-repeat;}
190 190
.authicon-pro{width:16px;height:16px;background-image:url(../images/porfile_icon_zhuanjia_nor.png);background-size: cover;}/*科袖认证专家*/
191 191
.authicon-com-ok{width:16px;height:16px;background-image:url(../images/porfile_icon_qiye_hig.png);background-size: cover;}/*认证企业*/
192 192
.authicon-com-no{width:16px;height:16px;background-image:url(../images/porfile_icon_qiye_nor.png);background-size: cover;}/*未认证企业*/

+ 2 - 2
css/index.css

@ -1,4 +1,4 @@
1
\n @charset "utf-8";
1
 @charset "utf-8";
2 2
/* CSS Document */
3 3

4 4
html, body{}
@ -145,7 +145,7 @@ input{ outline:none;}
145 145
.industrybox{font-size:14px; color:#999;  }
146 146
/*------------------------------------------------------------------------------------*/
147 147
/*账号设置*/
148
.account{ width:1050px; min-height:100px; margin:auto; padding: 40px 0;}
148
.account{ width:1050px; min-height:100px; margin:auto; padding: 40px 0;overflow: hidden;}
149 149
.account-set{ width:12%; min-height: 280px; float:left; background:#f8f8f8; border-radius:6px; margin-top:50px; overflow:hidden;}
150 150
.account-title{ height:58px; padding:0 20px;font-size:17px;line-height:68px;color:#a3a3a3;}
151 151
.leftsidebar{ display:block; width:100%; height:40px; padding-left:30px;font-size:15px;line-height:40px; color:#313131;}

+ 1 - 9
discover.html

@ -38,7 +38,7 @@
38 38
	</div>
39 39
</div>
40 40
<footer>
41
	<script type="text/javascript" src="js/Footer.js"></script>
41
	<script type="text/javascript" src="js/footer.js"></script>
42 42
</footer>
43 43

44 44
<script type="text/javascript" src="js/jquery.cookie.js"></script>
@ -47,13 +47,5 @@
47 47
<script type="text/javascript" src="js/common.js"></script>
48 48
<script type="text/javascript" src="js/discover.js"></script>
49 49

50
<script>
51
	$(".tcdPageCode").createPage({
52
		pageCount: Math.ceil(1/2),
53
		current: 1,
54
		backFn: function(p) {
55
		}
56
	});
57
</script>
58 50
</body>
59 51
</html>

+ 15 - 13
js/discover.js

@ -2,9 +2,9 @@
2 2
$(function() {
3 3
	loginStatus();//判断个人是否登录
4 4
	var userid = $.cookie("userid");
5
	discover(10, 1);
5
	discover(10, 1,true);
6 6
	/*发现列表显示*/
7
	function discover(pageSize, pageNo) {
7
	function discover(pageSize, pageNo,isbind) {
8 8
		$.ajax({
9 9
			"url": "/ajax/article/pqFind",
10 10
			"type": "get",
@ -66,15 +66,17 @@ $(function() {
66 66
						}
67 67
					}
68 68
					//分页
69
					$(".tcdPageCode").createPage({
70
						pageCount: Math.ceil(data.data.total / 10),
71
						current: data.data.pageNo,
72
						backFn: function(p) {
73
							$("#table-item").html("");
74
							discover(10, p);
75
							document.body.scrollTop = document.documentElement.scrollTop = 0;
76
						}
77
					});
69
					if(isbind==true){
70
						$(".tcdPageCode").createPage({
71
							pageCount: Math.ceil(data.data.total / 10),
72
							current: data.data.pageNo,
73
							backFn: function(p) {
74
								$("#table-item").html("");
75
								discover(10, p,false);
76
								document.body.scrollTop = document.documentElement.scrollTop = 0;
77
							}
78
						});
79
					}
78 80
					$(".loading").remove();
79 81
				}
80 82

@ -129,9 +131,9 @@ $(function() {
129 131
					$itemlist.find("#userUrl").attr("href", "companybrowinfor.html?orgid=" + data.data.id);
130 132
					if(data.data.authStatus==3){
131 133
						$itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");;	
132
					}else{
134
					}/*else{
133 135
						$itemlist.find(".authiconNew").addClass("authicon-com-no").attr("title", "未认证企业");;
134
					}
136
					}*/
135 137
				
136 138
				}
137 139
			},

+ 1 - 2
js/information.brow.js

@ -529,7 +529,7 @@ $(function() {
529 529
					//显示专家信息到保存数据
530 530
					name = $info.name;
531 531
					if($info.descp == undefined && $info.subject == undefined && $info.researchAreas.length == 0 && $info.industry == undefined && $info.edus.length == 0 && $info.jobs.length == 0 && $info.projects.length == 0 && $info.papers.length == 0 && $info.patents.length == 0 && $info.honors.length == 0) {
532
						$("div:contains('专家信息')").parents(".menublock").hide();
532
						$("div:contains('个人信息')").parents(".menublock").hide();
533 533
					}
534 534
					if($info.descp) {
535 535
						$("#descpS").text($info.descp);
@ -638,7 +638,6 @@ $(function() {
638 638
						$("span:contains('荣誉及奖项')").parents(".introduction").hide();
639 639
						$("a:contains('荣誉及奖项')").hide();
640 640
					}
641
642 641
//下滑滚动不覆盖底部 
643 642
	var d;
644 643
	var t;

+ 47 - 10
js/myDemand.js

@ -1,7 +1,7 @@
1 1
$(document).ready(function() {
2 2
	loginStatus();//判断个人是否登录
3 3
	var yesNo = "",
4
		oSortType = 0;
4
		oSortType = 0,demandType;
5 5
	/*我的需求列表*/
6 6
	function myDemandList(isbind, page, pageNum, dema, sortType) {
7 7
		$.ajax({
@ -159,17 +159,33 @@ $(document).ready(function() {
159 159
			},
160 160
			success: function(data, textState) {
161 161
				if(data.success) {
162
					console.log(data);
162 163
					var $rta=data.data;
164
					$("#induSub").val("");
165
					$("textarea").val("");
166
					$("#demandContent").val("");
167
					$("#navsub").find("li").removeClass("aimedLi");
168
					$("#mutChecked").find("li").removeClass("checkedLi");
169
					$('.checkNow').removeClass('checkNow');
163 170
					if($rta.authStatus!=3){
164
						location.href="realname-authentication.html";
171
						if($rta.orgAuth==1){
172
							$(".blackcover ").show();
173
							$("span:contains('企业需求')").addClass("checkNow");
174
							$("span:contains('个人需求')").addClass("checkNo");
175
							demandType=2;
176
						}else{
177
							location.href="realname-authentication.html";
178
						}
179
						
165 180
					}else{
166 181
						$(".blackcover ").show();
167
						$("#induSub").val("");
168
						$("textarea").val("");
169
						$("#demandContent").val("");
170
						$("#navsub").find("li").removeClass("aimedLi");
171
						$("#mutChecked").find("li").removeClass("checkedLi");
172
						
182
						if($rta.orgAuth==0){
183
							$("span:contains('企业需求')").addClass("checkNo");
184
							$("span:contains('个人需求')").addClass("checkNow");
185
							demandType=1;
186
						}else{
187
							demanTy();
188
						}
173 189
					}
174 190
					
175 191
				}
@ -206,7 +222,28 @@ $(document).ready(function() {
206 222
			}
207 223
		}
208 224
	}
209

225
	/*切换需求类型*/
226
function demanTy() {
227
	var deTy = document.getElementsByClassName("boxnavTo")[0];
228
	var deTyChild = deTy.getElementsByTagName("span");
229
	if(deTyChild[0].className != "checkNo" && deTyChild[1].className != "checkNo") {
230
		for(var n = 0; n < deTyChild.length; n++) {
231
			(function(m) {
232
				deTyChild[m].onclick = function() {
233
					this.className = "checkNow";
234
					if(m == 0) {
235
						demandType=1;
236
						deTyChild[1].className = "";
237
					} else if(m == 1) {
238
						demandType=2;
239
						deTyChild[0].className = "";
240
					}
241
				}
242
			})(n);
243
		}
244
	}
245
}
246
	
210 247
	/*需求题目限制30个字*/
211 248
	$("#demandContent").on('keyup', function() {
212 249
		if(this.value.length > 30) {
@ -325,7 +362,7 @@ $(document).ready(function() {
325 362
			data: {
326 363
				"demander": userid,
327 364
				"demandAim": consun,
328
				"demandType": 1,
365
				"demandType": demandType,
329 366
				"demandTitle": $("#demandContent").val(),
330 367
				"demandContent":$("textarea").val(),
331 368
				"args": arr

+ 2 - 2
myDemand.html

@ -32,8 +32,8 @@
32 32
					<li><label>请选择您的需求类型<em class="requiredcon">*</em></label></li>
33 33
					<li class="divideSpace" id="navsubTo" >
34 34
						<ul class="boxnav boxnavTo chooseBox clearfix">
35
							<li><span class='checkNow'>个人需求</span></li><!--默认状态是无class 选中状态checkNow-->
36
							<li><span class='checkNo'>企业需求</span></li><!--不可用状态checkNo-->
35
							<li><span>个人需求</span></li><!--默认状态是无class 选中状态checkNow-->
36
							<li><span>企业需求</span></li><!--不可用状态checkNo-->
37 37
						</ul>
38 38
						<div class="littipCh">
39 39
							<div class="littip">注:当企业入驻科袖后,企业的关联用户将可以发布企业需求</div>