Browse Source

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

Conflicts:
	js/workindex.js
zzy.zhiyuan.foxmail 8 years ago
parent
commit
c0cd79b927

+ 7 - 3
cmp-portal/cmp-pwdReset02.html

@ -58,10 +58,14 @@ $(function(){
58 58
	var companyEmailVal = GetQueryString("companyEmailVal");
59 59
	$("#emailShow").text(companyEmailVal);
60 60
	$("#emailGo").on("click", function(){
61
		 var url = companyEmailVal.split('@')[1];
61
		var url = companyEmailVal.split('@')[1];
62 62
        for (var j in hash){  
63
            $(this).attr("href", hash[url]); 
64
            location.href=hash[url]; 
63
            if(hash[url]==undefined){
64
        		location.href="http://mail." + url; 	
65
        	}else{
66
        	 	$(this).attr("href", hash[url]); 
67
            	location.href=hash[url]; 	
68
        	}
65 69
        }  
66 70
	});
67 71
})

+ 7 - 3
cmp-portal/cmp-settled-active.html

@ -50,9 +50,13 @@ $(function(){
50 50
	$("#emailShow").text(companyEmailVal);
51 51
	$("#emailGo").on("click", function(){
52 52
		 var url = companyEmailVal.split('@')[1];
53
        for (var j in hash){  
54
            $(this).attr("href", hash[url]); 
55
            location.href=hash[url]; 
53
        for (var j in hash){
54
        	if(hash[url]==undefined){
55
        		location.href="http://mail." + url; 	
56
        	}else{
57
        	 	$(this).attr("href", hash[url]); 
58
            	location.href=hash[url]; 	
59
        	}
56 60
        }  
57 61
	});
58 62
})

+ 4 - 2
cmp-portal/cmp-workspaces.html

@ -33,8 +33,10 @@
33 33
			        <div class="workconleft floatL">
34 34
			            <!--企业信息、相关记录-->
35 35
			            <div class="workblock clearfix">
36
			            	<div class="leftlogo boxBlock cmplogo headRadius floatL">
37
			            		<img class="boxBlockimg headRadius" src="" id="oimg"/>
36
			            	<div class="leftlogo floatL cmplogo">
37
			            		<div class="boxBlock headRadius" style="height:140px;width: 140px;">
38
				            		<img class="boxBlockimg headRadius" style="max-width: 140px;" src="" id="oimg"/>
39
				            	</div>
38 40
			            	</div>
39 41
							<div class="rightinfo cmpinfo floatL">
40 42
			            		<div class="h1Font"><span></span><em class="authicon" id="photoClass"></em></div>

+ 6 - 4
cmp-portal/css/cmpindex.css

@ -1,14 +1,15 @@
1 1
@charset "utf-8";
2 2
/* CSS Document */
3
body,html{/*background: #f4f6f8;*/}
3 4
.con-center{padding:20px 10px 40px; margin:10px auto;}
4 5
5 6
/*左侧菜单*/
6
.workmenu{text-align: center; float:left; width:12%; height:300px; background: #fafafa;border-radius: 6px;overflow: hidden;}
7
.workmenu{text-align: center; float:left; width:12%; height:300px; background: #FAFAFA;border-radius: 6px;overflow: hidden;}
7 8
a.workmenutit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px; border-bottom:1px #28b8fa solid;cursor:pointer; display: block;color:#313131; }
8 9
a.worksubmenu{width:100%; height:40px; margin:10px 0;font-size:15px;line-height:40px; color:#313131;display: block;}
9 10
a.worksubmenu.cmpBg{color: #FFFFFF;}
10 11
/*右侧内容*/
11
.workcon{float:right; margin-left:10px; width:87%; background: #fafafa;border-radius:6px;overflow: hidden;}
12
.workcon{float:right; margin-left:10px; width:87%; background: #FAFAFA;border-radius:6px;overflow: hidden;}
12 13
.worksubcon{ padding:20px 16px;}
13 14
.workconleft{width:70%;}
14 15
.workcontit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px;color: #606060; border-bottom:1px solid #e7e7e7;}
@ -181,7 +182,8 @@ img.loading{position: absolute;left:50%;top:30%}
181 182
input.uploadInp[type="file"]{position:absolute;height: 40px;width: 100%;top: 0;outline: none;opacity: 0;cursor: pointer;}
182 183
.uploadInp .webuploader-pick{background: #28b8fa; height: 40px;width: 100%;line-height: 30px;margin: 0;}
183 184
.uploadInp .webuploader-element-invisible{height:40px}
184
.boxBlock.uploader-list{width: 140px; height:140px;background: #e8e8e8;;}
185
.boxBlock.uploader-list{width: 140px; height:140px;background: #e8e8e8;}
186
.boxBlock.uploader-list .boxBlockimg{max-width: 140px;}
185 187
186 188
.cmpFrmList{padding:10px 0;}
187 189
.cmpFrmList>li{position: relative;clear:both;margin:4px 0;padding:6px 0;}
@ -282,6 +284,6 @@ ul.cmpAllUl.cmpArticalul.cmpArticalul2{width: 97%;margin:10px;}
282 284
.rightRequ .requiredcon{top:2px; right:-6px;left:auto;}
283 285
.uploderArt{position:absolute;width:200px;top:0px;right:-208px;text-align: center;}
284 286
.uploderArt .uploadInpArt{cursor:pointer;width: 100%;z-index: 10;color:#EFEFEF;}
285
.uploderArt .imgBlock{position: relative;width: 140px;margin: auto;}
287
.uploderArt .imgBlock{position: relative;width: 140px;margin: auto;overflow: hidden;}
286 288
.uploderArt .smalltip{line-height: 16px;}
287 289
.cmpArticalFrm .deleteFont{cursor:pointer;position:absolute; right:20px;top:40px;color: #FF0000;}

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

@ -564,7 +564,7 @@ button.btnModelBig:hover{
564 564
.modelClosebtn{position:absolute; top:0; right:-50px; display:block; width:20px; height:20px; background:url(../../images/workclose.png) center center no-repeat; padding:20px;cursor:pointer; z-index:1055;}  
565 565
.modelOpen{overflow: hidden;}
566 566

567
/*图片在容器中无变形居中显示*/
567
/*图片在容器中无变形居中显示*//*display: table;table-layout: fixed;*/
568 568
.boxBlock{width:200px; height:200px;display: table-cell;vertical-align:middle; text-align:center;overflow: hidden;}
569 569
.boxBlockimg{max-width: 100%;max-height: 100%;vertical-align:middle;height:auto !important; overflow-y:auto;}
570 570

@ -608,7 +608,7 @@ button.btnModelBig:hover{
608 608
.containerCon:after{clear: both;}
609 609
/*.overInitial{overflow:initial;}*/
610 610
/*新版footer*/
611
footer{position: absolute;right:0; left: 0;bottom:0;background: #373d41;color:#888;font-size:16px;line-height:30px;}
611
footer{position: absolute;right:0; left: 0;bottom:0;background: #373d41;color:#888;font-size:14px;line-height:30px;}
612 612
footer .containerCon{background: #373d41;}
613 613
footer a{color:#888;text-decoration: none;}
614 614
footer p .listlink{margin-right:25px;color:#888;}
@ -634,12 +634,13 @@ header .topheader{background: #000;height:30px;font-size:14px;line-height:30px;}
634 634
header .topheader .containerCon{background: #000;}
635 635
header .topheader a{padding:0 10px;margin-right:16px;color:#FFFFFF}
636 636
header .topheader .downicon{background: url(../images/top_icon_shouji_nor.png) 0 center no-repeat;padding-left:18px;}
637
header .headlogo h1 {width: 60px;height: 30px;margin:14px 14px 14px 0;padding: 0;background-image: url(../images/home_icon_logo2.png);background-size:contain;overflow: hidden;}
637
header .headlogo h1 {width: 60px;height: 30px;margin:14px 14px 14px 0;padding: 0;background-image: url(../images/home_icon_cmplogo.png);background-size:contain;overflow: hidden;}
638 638
header .headnav{margin:0 14px;}
639 639
header .headnav li{float:left;margin:0 4px; padding:12px 0;}
640 640
header .headnav li a{ color:#FFFFFF; padding:14px 18px;}
641
header .headuser{overflow: hidden;border:1px solid #222222; width: 40px;height: 40px;margin:10px 0 10px 20px;cursor: pointer;}
642
header .headuserimg{position:relative;}
641
header .headuserimg{position:relative;padding: 10px 0 10px 20px; width: 60px;height: 60px;}
642
header .headuser{overflow: hidden;border:1px solid #222222; width: 40px;height: 40px;display: table-cell; vertical-align:middle; text-align:center;cursor: pointer;}
643
header .headuser img{max-width: 40px;max-height: 100%;vertical-align:middle;height:auto !important; overflow-y:auto;}
643 644
header .headnavbtn{margin:14px 6px;}
644 645
header .headnavbtn a{color:#FFFFFF;}
645 646
header .headnavbtn li{float:right;margin:0 6px;}

BIN
cmp-portal/images/home_icon_cmplogo.png


BIN
cmp-portal/images/home_icon_logo2.png


+ 1 - 0
cmp-portal/js/cmp-articalList.js

@ -121,6 +121,7 @@ $(function() {
121 121
					newsname = data.data;
122 122
					console.log(newsname);
123 123
					$.MsgBox.Alert("消息", "文章发表成功!");
124
					$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
124 125
					newslist();
125 126
					UE.delEditor('editor');
126 127
					BombBoxlClose();

+ 6 - 2
cmp-portal/js/cmp-setBind.js

@ -102,8 +102,12 @@ $(function() {
102 102
						$("#emailGo").on("click", function() {
103 103
							var url = companyEmailVal.split('@')[1];
104 104
							for(var j in hash) {
105
								$(this).attr("href", hash[url]);
106
								window.open(hash[url]);
105
								if(hash[url]==undefined){
106
					        		window.open("http://mail." + url);
107
					        	}else{
108
					        	 	$(this).attr("href", hash[url]);
109
									window.open(hash[url]);
110
					        	}
107 111
							}
108 112
							location.reload(true);
109 113
						});

+ 1 - 0
cmp-portal/js/cmp-setPwd.js

@ -83,6 +83,7 @@ $(function() {
83 83
					console.log($data)
84 84
					if($data.data) {
85 85
						$.MsgBox.Alert('提示', '密码修改成功!');
86
						$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
86 87
						$("#cmpAllUl input").val("");
87 88
						$("#newpwdSubmit").attr("disabled", true);
88 89
					}else{

+ 15 - 11
cmp-portal/js/cmp-updateinfo.js

@ -65,9 +65,11 @@ $(document).ready(function() {
65 65
							case '5':
66 66
								$("#qualificationList").find("li").eq(4).addClass("cmpBg listactive")
67 67
								break;
68
							default:
68
							case '6':
69 69
								$("#qualificationList").find("li").eq(5).addClass("cmpBg listactive")
70 70
								break;
71
							default:
72
								break;
71 73
						}
72 74
					}
73 75
					if($data.orgType) {
@ -88,9 +90,11 @@ $(document).ready(function() {
88 90
							case '6':
89 91
								$("#orgType").find("li").eq(4).addClass("cmpBg listactive")
90 92
								break;
91
							default:
93
							case '7':
92 94
								$("#orgType").find("li").eq(5).addClass("cmpBg listactive")
93 95
								break;
96
							default:
97
								break;
94 98
						}
95 99
					}
96 100
					if($data.industry) {
@ -193,7 +197,7 @@ $(document).ready(function() {
193 197
		})
194 198
		/*保存*/
195 199
	$("button:contains('保存')").click(function() {
196
			var oBusinessAbbreviation = $("#businessAbbreviation").val().trim();
200
			/*var oBusinessAbbreviation = $("#businessAbbreviation").val().trim();
197 201
			var oTextArea = $("textarea").val().trim();
198 202
			var oBusinessType = $("#orgType").find("li.cmpBg.listactive").length;
199 203
			var oBusinessDimensions = $("#qualificationList").find("li.cmpBg.listactive").length;
@ -231,9 +235,7 @@ $(document).ready(function() {
231 235
			if(oEditUlistCNumber == 0) {
232 236
				$.MsgBox.Alert('提示', '企业资质必填一项');
233 237
				return;
234
			}
235
			/*					
236
			fn: 企业logo上传临时文件名 NULL 字符串*/
238
			}*/
237 239
			var tex = $("#orgType").find("li.cmpBg.listactive").text();
238 240
			var oTextGui = $("#qualificationList").find("li.cmpBg.listactive").text();
239 241
			var $info = {};
@ -258,9 +260,11 @@ $(document).ready(function() {
258 260
				case '外资企业':
259 261
					$info.orgType = 6;
260 262
					break;
261
				default:
263
				case '初创企业':
262 264
					$info.orgType = 7;
263 265
					break;
266
				default:
267
					break;
264 268
			}
265 269
			switch(oTextGui) {
266 270
				case '50人以内':
@ -278,9 +282,11 @@ $(document).ready(function() {
278 282
				case '500-1000人':
279 283
					$info.orgSize = 5;
280 284
					break;
281
				default:
285
				case '1000人以上':
282 286
					$info.orgSize = 6;
283 287
					break;
288
				default:
289
					break;
284 290
			}
285 291
			if($("#inteAddress").val().trim()) {
286 292
				$info.orgUrl = $("#inteAddress").val();
@ -376,9 +382,7 @@ $(document).ready(function() {
376 382
	});
377 383
	/*取消*/
378 384
	$("#Ocancel").click(function() {
379
			fileId = null;
380
			cacheImageKey = null;
381
			companyInformation();
385
			location.href="cmp-workspaces.html"
382 386
		})
383 387
		/*选择城市*/
384 388
		/*选择城市填充js	*/

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

@ -52,10 +52,14 @@ $(document).ready(function() {
52 52
							case '6':
53 53
								otext = "外资企业";
54 54
								break;
55
							default:
55
							case '7':
56 56
								otext = "初创企业";
57 57
								break;
58
							default:
59
								otext = "";
60
								break;
58 61
						}
62
						if(otext != "")
59 63
						$("#cmpBasic").append("<span>" + otext + "</span>")
60 64
					}
61 65
					if($data.orgSize) {
@ -75,10 +79,14 @@ $(document).ready(function() {
75 79
							case '5':
76 80
								oguimo = "500-1000人";
77 81
								break;
82
							case '6':
83
								oguimo = "500-1000人";
84
								break;
78 85
							default:
79
								oguimo = "1000人以上";
86
								oguimo = "";
80 87
								break;
81 88
						}
89
						if(oguimo!="")
82 90
						$("#cmpBasic").append("<span>" + oguimo + "</span>")
83 91
					}
84 92
					if($data.foundTime) {

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

@ -96,9 +96,11 @@ $(document).ready(function() {
96 96
							case '5':
97 97
								$("#qualificationList").text("500-1000人")
98 98
								break;
99
							default:
99
							case '6':
100 100
								$("#qualificationList").text("1000人以上")
101 101
								break;
102
							default:
103
								break;
102 104
						}
103 105
					} else {
104 106
						$("#qualificationList").remove();
@ -120,10 +122,14 @@ $(document).ready(function() {
120 122
							case '6':
121 123
								$("#orgType").text("外资企业");
122 124
								break;
123
							default:
125
							case '7':
124 126
								$("#orgType").text("初创企业");
125 127
								break;
128
							default:
129
								break;
126 130
						}
131
					}else{
132
						$("#orgType").remove();
127 133
					}
128 134
					if($data.industry) {
129 135
						indu($data.industry, '#industryShow')
@ -225,7 +231,7 @@ $(document).ready(function() {
225 231
			}
226 232
			var oString = '<dd>'
227 233
			oString += '<div class="staffChild">'
228
			oString += '<img class="headRadius" src="' + img + '" width="100%" />'
234
			oString += '<img class="headRadius" src="' + img + '" width="100%" data-id="'+arr[i].id+'" style="cursor:pointer"/>'
229 235
			oString += '</div><div class="h4Font"><span>' + arr[i].name + '</span></div>'
230 236
			oString += '<div class="h4Font">' + tiof + '</div></dd>'
231 237
			$("#userList").append(oString);
@ -270,5 +276,11 @@ $(document).ready(function() {
270 276
		error: function() {
271 277
			return;
272 278
		}
279
	});
280
	/*点击企业员工头像跳转个人浏览页面*/
281
	$("#userList").on("click","img",function(){
282
		var dataId=$(this).attr("data-id");
283
		console.log(dataId)
284
		location.href="information-brow.html?professorId="+dataId;
273 285
	})
274 286
})

+ 8 - 1
cmp-portal/js/public/cmpFooter.js

@ -11,7 +11,7 @@ footerHtml += '<div class="container-fulid">'+
11 11
								'<p>' +
12 12
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">关于我们</a>' +
13 13
									'<a class="listlink" href="javascript:void(0);"  rel="nofollow" id="cmpSet">企业入驻</a>' +
14
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">我是专家</a>' +
14
									'<a class="listlink" href="javascript:void(0);"  rel="nofollow" id="perso">我是专家</a>' +
15 15
									'<a class="listlink" href="../privacy.html" target="_blank" rel="nofollow">用户协议</a>' +
16 16
									'<a class="listlink" href="../download.html" target="_blank" rel="nofollow">产品下载</a>' +
17 17
								'</p>' +
@ -55,5 +55,12 @@ $(function(){
55 55
			location.href="cmp-settled-reg.html"
56 56
		}
57 57
	})
58
	$("#perso").click(function(){
59
	var userid = $.cookie('userid');
60
if(userid=="null"||userid==undefined){
61
			location.href="login.html";
62
		}
63
	location.href="../expert-authentication.html";
64
})
58 65
})
59 66


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

@ -23,7 +23,7 @@
23 23
								//已登录状态
24 24
								'<div class="onlogin floatR displayNone">'+
25 25
									'<div class="headuserimg floatR">'+
26
											'<div class="headuser headRadius"><img src="../images/default-icon.jpg" width="100%" id="imglogo" /></div>'+
26
											'<div class="headuser headRadius"><img src="../images/default-icon.jpg" id="imglogo" /></div>'+
27 27
											'<div class="comuserSelf displayNone">' +
28 28
					                '<div class="triangleB"></div>'+
29 29
					                '<div class="personal-box bgRadius">'+

+ 4 - 4
css/common.css

@ -121,7 +121,7 @@ button.btnModel[disabled]:hover{background:#d6d8de;}
121 121
#header.firstL{ background:rgba(255,153,0,0);}
122 122
#header.firstB{ background:rgba(55,61,65,1);}
123 123
#header.Nosear{position:static;}
124
.logo{ display:block; width:80px; height:40px; background:url(../images/logo.png) no-repeat;background-size:100% 100%; /* margin-left:80px;*/ margin-top:10px; float:left;}
124
.logo{ display:block; width:60px; height:30px;margin:14px 14px 14px 0; background:url(../images/logo.png) no-repeat;background-size:100% 100%; float:left;}
125 125
.searchblock{ width:280px; height:35px; position:absolute; left:50%; top:50%; margin-left:-140px; margin-top:-17.5px;}
126 126
.search-txt{ width:220px;line-height:35px; height:35px; background:#fff; border:none;-moz-border-radius:6px 0 0 6px;-webkit-border-radius:6px 0 0 6px; border-radius:6px 0 0 6px; behavior:url(../js/ie-css3.htc); float:left;font-size:14px;padding-left:10px; color:#a3a3a3;}
127 127
.search-btn{ width:35px; height:35px; background:#fff; border-radius:0 6px 6px 0;-moz-border-radius:0 6px 6px 0;-webkit-border-radius:0 6px 6px 0; float:left; cursor:pointer; behavior:url(../js/ie-css3.htc);cursor:pointer;}
@ -197,8 +197,8 @@ button.btnModel[disabled]:hover{background:#d6d8de;}
197 197

198 198
/*/////////// 专家认证图标 //////////////*/
199 199
.authobject{ float:left;}
200
.authicon{ float:left;width:18px; height:18px; background:url(../images/authsort2.png) no-repeat;}
201
.authicon-cu{background-position: 0 0;background-size:auto 100%;}/*认证科研型专家*/
200
.authicon{ float:left;width:16px; height:16px;background-size: cover;}
201
.authicon-cu{background-image: url(../images/porfile_icon_zhuanjia_nor.png);}/*认证科研型专家*/
202 202
.authicon-com{background-position: -20px 0;background-size:auto 100%;}/*认证企业型专家*/
203 203
/*/////////// 普通用户认证标识 //////////////*/
204 204
.authicon2{float:left;position:relative;width:60px; height:20px;margin: 0;background:url(../images/authsort.png) no-repeat;}
@ -273,7 +273,7 @@ footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);bac
273 273
/*新版header*/
274 274
header{background: #373d41;color:#888;font-size:16px;line-height:32px;height:60px;}
275 275
header .containerCon{background: #373d41;}
276
header .headlogo h1 {width: 64px;height: 32px;margin:14px 14px 14px 0;padding: 0;background-image: url(../images/home_icon_logo_orange.png);background-size:contain;overflow: hidden;}
276
header .headlogo h1 {width: 60px;height: 30px;margin: 14px 14px 14px 0;padding: 0;background-image: url(../images/home_icon_logo_orange.png);background-size:contain;overflow: hidden;}
277 277
header .headnav{margin:0 14px;}
278 278
header .headnav li{float:left;margin:0 4px; padding:12px 0;}
279 279
header .headnav li a{ color:#FFFFFF; padding:14px 18px;}

+ 88 - 87
css/genindex.css

@ -1,16 +1,17 @@
1 1
@charset "utf-8";
2 2
/* CSS Document */
3
html,body{background: #f4f6f8;}
3 4
.con-center{padding:20px 10px 40px; margin:10px auto;}
4 5
/*左侧菜单*/
5
.workmenu{text-align: center; float:left; width:12%; height:300px; background: #fafafa;border-radius: 6px;overflow: hidden;}
6
a.workmenutit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px; border-bottom:1px #28b8fa solid;cursor:pointer; display: block;color:#313131; }
7
a.worksubmenu{width:100%; height:40px; margin:10px 0;font-size:15px;line-height:40px; color:#313131;display: block;}
8
a.worksubmenu.cmpBg{color: #FFFFFF;}
6
/*.workmenu{text-align: center; float:left; width:12%; height:300px; background: #fafafa;border-radius: 6px;overflow: hidden;}
7
a.workmenutit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px; border-bottom:1px #28b8fa solid;cursor:pointer; display: block;color:#313131; }
8
a.worksubmenu{width:100%; height:40px; margin:10px 0;font-size:15px;line-height:40px; color:#313131;display: block;}
9
a.worksubmenu.cmpBg{color: #FFFFFF;}*/
9 10
/*右侧内容*/
10
.workcon{float:right; margin-left:10px; width:87%; background: #fafafa;border-radius:6px;overflow: hidden;}
11
.worksubcon{ padding:20px 16px;}
11
/*.workcon{float:right; margin-left:10px; width:87%; background: #fafafa;border-radius:6px;overflow: hidden;}
12
.worksubcon{ padding:20px 16px;}
12 13
.workconleft{width:70%;}
13
.workcontit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px;color: #606060; border-bottom:1px solid #e7e7e7;}
14
.workcontit{height: 60px;padding: 0 20px;font-size:16px;line-height:60px;color: #606060; border-bottom:1px solid #e7e7e7;}*/
14 15
15 16
/*////////////工作台/////////////////*/
16 17
.workblock{width:100%; padding:10px; overflow:hidden; background:#fff; margin:0;margin-bottom:16px;}
@ -98,94 +99,94 @@ a.worksubmenu.cmpBg{color: #FFFFFF;}
98 99
.workdropdown2 li{width:200px;}
99 100
100 101
/*需求查看*/
101
.consultdialogbox{ width:100%;padding: 20px 20px 80px 20px;color:#666;font-size:15px;line-height: 28px;}
102
.dialoghead{ padding:20px; border-radius:10px 10px 0 0; text-align:center; border-bottom:1px #d6d6d6 solid; background-color:#F3F3F3; position:relative;}
103
.dialoghead .backupbtn{ background:url(../../images/backup.png) no-repeat center center; width:24px; height:24px; padding:20px; position:absolute; top:50%; left:16px; margin-top:-16px; cursor:pointer;}
104
.dialoghead .dheadtit{width:680px; margin:auto; font-size: 18px;line-height: 18px; }
105
.dialoghead .dheadtit .dialogpro{ padding:0 10px; font-size: 20px; color:#333;}
106
.dialogcontain{ background:#fff; border-bottom:1px #d6d6d6 solid; position:relative;}
107
.dialogcontain .dialoginfo{padding: 30px 10px 20px 10px;}
108
.dialogcontain .dialoginfo .dialoginfotype{ padding: 1px 10px; color: #777;}
109
.dialogcontain .dialoginfo .dialogtit{ color: #333;font-size:15px;max-width:90%;}
110
.dialogcontain .dialoginfo .dialogtitTopic{ font-weight: bold;font-size:18px;max-width: 86%;}
111
.dialogcontain .dialoginfo .evadbox{ overflow:hidden; }
112
.dialogcontain .dialogstatus{ position:absolute;min-width:100px; top:-20px; right: -8px;padding: 0 60px;border-radius: 20px 0 0 20px;z-index: 2; line-height: 40px; }
113
.dialogcontain .dialogstatus em{position: absolute;width: 0px; height: 0px;border-top: 0px solid  #0776a9;border-bottom: 6px solid transparent;border-left: 8px solid #0776a9; border-right: 0px solid transparent;right: 0px; bottom: -5px;}
114
115
.consultBasicInfor{background: #ffffea;border-bottom:1px solid #d6d6d6;}
116
.consultBasic{width:50%;padding:10px 20px 20px 40px;}
117
.consultBasic:first-child{border-right:1px solid #d6d6d6;}
118
.consultBasic .workhs{width: auto;}
119
.consultBasic .workhs .workitimg{width:60px;}
120
.consultBasic .workinfor{width: auto;width:64%;padding:5px 16px;}
121
.consultBasic .workinfor .h1Font{font-size:18px;}
122
.consultBasic .workinfor h5{font-size:14px;}
123
124
.cBasicTit{font-size:16px;line-height:30px;text-align: center;}
125
126
.basicBtn{text-align: center;padding:80px 10px 60px 10px; background-color:#FFFFFF;}
127
.basicBtn span{padding:8px 40px;border-radius:6px;font-size: 15px;margin:4px;cursor: pointer;}
128
.basicBtn span.closeBtn{border:none;color:#FF0000}
102
/*.consultdialogbox{ width:100%;padding: 20px 20px 80px 20px;color:#666;font-size:15px;line-height: 28px;}
103
.dialoghead{ padding:20px; border-radius:10px 10px 0 0; text-align:center; border-bottom:1px #d6d6d6 solid; background-color:#F3F3F3; position:relative;}
104
.dialoghead .backupbtn{ background:url(../../images/backup.png) no-repeat center center; width:24px; height:24px; padding:20px; position:absolute; top:50%; left:16px; margin-top:-16px; cursor:pointer;}
105
.dialoghead .dheadtit{width:680px; margin:auto; font-size: 18px;line-height: 18px; }
106
.dialoghead .dheadtit .dialogpro{ padding:0 10px; font-size: 20px; color:#333;}
107
.dialogcontain{ background:#fff; border-bottom:1px #d6d6d6 solid; position:relative;}
108
.dialogcontain .dialoginfo{padding: 30px 10px 20px 10px;}
109
.dialogcontain .dialoginfo .dialoginfotype{ padding: 1px 10px; color: #777;}
110
.dialogcontain .dialoginfo .dialogtit{ color: #333;font-size:15px;max-width:90%;}
111
.dialogcontain .dialoginfo .dialogtitTopic{ font-weight: bold;font-size:18px;max-width: 86%;}
112
.dialogcontain .dialoginfo .evadbox{ overflow:hidden; }
113
.dialogcontain .dialogstatus{ position:absolute;min-width:100px; top:-20px; right: -8px;padding: 0 60px;border-radius: 20px 0 0 20px;z-index: 2; line-height: 40px; }
114
.dialogcontain .dialogstatus em{position: absolute;width: 0px; height: 0px;border-top: 0px solid  #0776a9;border-bottom: 6px solid transparent;border-left: 8px solid #0776a9; border-right: 0px solid transparent;right: 0px; bottom: -5px;}
115

116
.consultBasicInfor{background: #ffffea;border-bottom:1px solid #d6d6d6;}
117
.consultBasic{width:50%;padding:10px 20px 20px 40px;}
118
.consultBasic:first-child{border-right:1px solid #d6d6d6;}
119
.consultBasic .workhs{width: auto;}
120
.consultBasic .workhs .workitimg{width:60px;}
121
.consultBasic .workinfor{width: auto;width:64%;padding:5px 16px;}
122
.consultBasic .workinfor .h1Font{font-size:18px;}
123
.consultBasic .workinfor h5{font-size:14px;}
124

125
.cBasicTit{font-size:16px;line-height:30px;text-align: center;}
126

127
.basicBtn{text-align: center;padding:80px 10px 60px 10px; background-color:#FFFFFF;}
128
.basicBtn span{padding:8px 40px;border-radius:6px;font-size: 15px;margin:4px;cursor: pointer;}
129
.basicBtn span.closeBtn{border:none;color:#FF0000}*/
129 130
130 131
/*员工列表*/
131
.staffemail{width: 300px;padding-left:10px;}
132
.staffMana{margin:10px 4px;padding:10px; border:1px solid #D0D0D0;}
133
.staffMana li{ width: 48%;float:left;padding:10px;border:1px dashed #a6a6a6;margin:6px 1%;border-radius: 6px;}
134
.staffMana li .leftlogo{ margin: 8px 0;}
135
.staffinfo{width: 84%;padding-right: 40px;}
136
.staffinfo .btnPosition{right:-8px;}
137
.stafffrm{padding:2px 8px;}
138
.staffTip{background: #f5f5f5;padding: 10px;}
132
/*.staffemail{width: 300px;padding-left:10px;}
133
.staffMana{margin:10px 4px;padding:10px; border:1px solid #D0D0D0;}
134
.staffMana li{ width: 48%;float:left;padding:10px;border:1px dashed #a6a6a6;margin:6px 1%;border-radius: 6px;}
135
.staffMana li .leftlogo{ margin: 8px 0;}
136
.staffinfo{width: 84%;padding-right: 40px;}
137
.staffinfo .btnPosition{right:-8px;}
138
.stafffrm{padding:2px 8px;}
139
.staffTip{background: #f5f5f5;padding: 10px;}*/
139 140
/*企业信息浏览*/
140
.mainHead{background: #fafafa;padding:20px;margin:0 auto 10px;border-radius: 6px;}
141
.cmpLogoblock div{width: 180px;height: 180px;margin:auto;overflow: hidden;}
142
.menublock{height:420px;}
143
.subsidebar{cursor: pointer;}
144
.right-box{padding:8px;}
145
.right-title{ position:relative; overflow:hidden;}
146
.right-title span{font-size:20px;line-height:30px;}
147
.infor-browse{padding:0 16px;}
148
.infoList{ overflow: hidden;padding:6px 0;}
149
.infoList li{margin:4px;position: relative;overflow: hidden;}
150
.industryList li{padding-left: 10px;}
151
.industryList li:before{content: ' '; background: #666;display: block;width: 4px;height: 4px;border-radius: 50%; position: absolute;top:8px;left:0;}
152
.areaList{overflow: hidden;}
153
.areaList li{float:left;padding:6px 20px;border:1px solid #D6D6D6; border-radius:6px;}
154
.needTopic{ display:inline-table; max-width:76%;}
155
.needAim{margin-left:20px;}
156
.cmpStaff dl{width:100%;float:none;margin-right:-4%;}
157
.cmpStaff dd{max-width:120px;text-align: center;margin:2% 2.9% 1% 0;}
158
.cmpStaff dd .staffChild{width:80px;margin:auto}
141
/*.mainHead{background: #fafafa;padding:20px;margin:0 auto 10px;border-radius: 6px;}
142
.cmpLogoblock div{width: 180px;height: 180px;margin:auto;overflow: hidden;}
143
.menublock{height:420px;}
144
.subsidebar{cursor: pointer;}
145
.right-box{padding:8px;}
146
.right-title{ position:relative; overflow:hidden;}
147
.right-title span{font-size:20px;line-height:30px;}
148
.infor-browse{padding:0 16px;}
149
.infoList{ overflow: hidden;padding:6px 0;}
150
.infoList li{margin:4px;position: relative;overflow: hidden;}
151
.industryList li{padding-left: 10px;}
152
.industryList li:before{content: ' '; background: #666;display: block;width: 4px;height: 4px;border-radius: 50%; position: absolute;top:8px;left:0;}
153
.areaList{overflow: hidden;}
154
.areaList li{float:left;padding:6px 20px;border:1px solid #D6D6D6; border-radius:6px;}
155
.needTopic{ display:inline-table; max-width:76%;}
156
.needAim{margin-left:20px;}
157
.cmpStaff dl{width:100%;float:none;margin-right:-4%;}
158
.cmpStaff dd{max-width:120px;text-align: center;margin:2% 2.9% 1% 0;}
159
.cmpStaff dd .staffChild{width:80px;margin:auto}*/
159 160
/*修改企业信息*/
160
.uploadlogo{position:relative;background: rgba(40,184,250,.8); color:#FFFFFF;padding:8px 0;}
161
input.uploadInp[type="file"]{position:absolute;height: 40px;width: 100%;top: 0;outline: none;opacity: 0;cursor: pointer;}
162
.cmpFrmList{padding:10px 0;}
163
.cmpFrmList>li{position: relative;clear:both;margin:4px 0;padding:6px 0;}
164
.cmpFrmList>li:before,.cmpFrmList>li:after{display:table;content:" "}
165
.cmpFrmList>li:after{clear: both;}
166
.ulspace{padding:10px 0;}
167
.ulspace li{margin:4px;padding:6px 10px;text-align: center;border-width:1px;border-style:solid;border-color:#D6D6D6;border-radius:6px;}
168
.enterpriseType li{width:31%;float:left;}
169
.enterpriseType li.listactive{border-color:#28b8fa;}
170
.enterpriseType li.listactive:before{content:"";display:inline-block;width:14px;height:14px;margin-right:3px;background-image:url(../images/con_icon_selected.png);background-size:contain;overflow:hidden;}
171
.editUlist li{float:left; position:relative;padding:4px 36px 4px 10px;}
172
.editUlist li img{position:absolute;right:8px;top:8px;width: 12px;cursor: pointer;}
173
.editUlistC li{position:relative;width:96%;padding:6px 10px;margin:4px;}
174
.editUlistC li img{position:absolute;right:10px;top:10px;width: 12px;cursor: pointer;}
175
.paddingSpace{padding:0 6px;}
161
/*.uploadlogo{position:relative;background: rgba(40,184,250,.8); color:#FFFFFF;padding:8px 0;}
162
input.uploadInp[type="file"]{position:absolute;height: 40px;width: 100%;top: 0;outline: none;opacity: 0;cursor: pointer;}
163
.cmpFrmList{padding:10px 0;}
164
.cmpFrmList>li{position: relative;clear:both;margin:4px 0;padding:6px 0;}
165
.cmpFrmList>li:before,.cmpFrmList>li:after{display:table;content:" "}
166
.cmpFrmList>li:after{clear: both;}
167
.ulspace{padding:10px 0;}
168
.ulspace li{margin:4px;padding:6px 10px;text-align: center;border-width:1px;border-style:solid;border-color:#D6D6D6;border-radius:6px;}
169
.enterpriseType li{width:31%;float:left;}
170
.enterpriseType li.listactive{border-color:#28b8fa;}
171
.enterpriseType li.listactive:before{content:"";display:inline-block;width:14px;height:14px;margin-right:3px;background-image:url(../images/con_icon_selected.png);background-size:contain;overflow:hidden;}
172
.editUlist li{float:left; position:relative;padding:4px 36px 4px 10px;}
173
.editUlist li img{position:absolute;right:8px;top:8px;width: 12px;cursor: pointer;}
174
.editUlistC li{position:relative;width:96%;padding:6px 10px;margin:4px;}
175
.editUlistC li img{position:absolute;right:10px;top:10px;width: 12px;cursor: pointer;}
176
.paddingSpace{padding:0 6px;}*/
176 177
/*城市选择器*/
177
.citybox span{position:relative;width:96%;display:inline-block;padding:0 0 0 6px;cursor:pointer;margin:0;background:#fff;}
178
.citybox span .mr_show{ font-style:normal;width:100%;color:#AAAAAA;display:inline-block;height:32px;line-height:32px;position:relative;}
179
.citybox span .mr_sj{position: absolute;right: 10px;top: 13px;display:inline-block;height: 0;width: 0;border: 6px solid #fff;border-color: #28b8fa transparent transparent;}
180
.citybox span ul{width:98%;border-radius:0 0 5px 5px;position:absolute;border:1px solid #E8E8E8;background:#fff;left:-1px;top:32px;margin-bottom:10px;display:none;z-index:10;max-height:280px; overflow:auto;}
181
.citybox span ul li{width:100%;float:left;overflow:hidden;border-top:1px solid #E8E8E8;}
182
.citybox span ul li:first-child{border-top:0;}
183
.citybox span ul li a{display:block;height:30px;line-height:30px;padding:0 8px;color:#494949;}
178
/*.citybox span{position:relative;width:96%;display:inline-block;padding:0 0 0 6px;cursor:pointer;margin:0;background:#fff;}
179
.citybox span .mr_show{ font-style:normal;width:100%;color:#AAAAAA;display:inline-block;height:32px;line-height:32px;position:relative;}
180
.citybox span .mr_sj{position: absolute;right: 10px;top: 13px;display:inline-block;height: 0;width: 0;border: 6px solid #fff;border-color: #28b8fa transparent transparent;}
181
.citybox span ul{width:98%;border-radius:0 0 5px 5px;position:absolute;border:1px solid #E8E8E8;background:#fff;left:-1px;top:32px;margin-bottom:10px;display:none;z-index:10;max-height:280px; overflow:auto;}
182
.citybox span ul li{width:100%;float:left;overflow:hidden;border-top:1px solid #E8E8E8;}
183
.citybox span ul li:first-child{border-top:0;}
184
.citybox span ul li a{display:block;height:30px;line-height:30px;padding:0 8px;color:#494949;}*/
184 185
/*日期选择器*/
185
.input-append.date .dateIcon{position:absolute;right:14px; top:6px;}
186
/*.input-append.date .dateIcon{position:absolute;right:14px; top:6px;}*/
186 187
187 188
/*////////////个人设置/////////////////*/
188
a.workmenutit.accouttit{cursor: text;color: #a3a3a3;}
189
/*a.workmenutit.accouttit{cursor: text;color: #a3a3a3;}*/
189 190
ul.cmpAllUl{width:50%;margin:60px auto 20px;}
190 191
ul.cmpAllUl li{position:relative;clear:both;padding:6px 0;}
191 192
ul.cmpAllUl li:before,ul.cmpAllUl li:after{display:table;content:" "}

+ 2 - 7
discover.html

@ -10,9 +10,7 @@
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11 11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12 12
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
13
<style type="text/css">
14
	html,body{background: #f4f6f8;}
15
</style>
13

16 14
</head>
17 15

18 16
<body>
@ -28,10 +26,7 @@
28 26
			</div>
29 27
			<div class="advertBox floatR">
30 28
				<ul class="advertItem">
31
					<li><img src="images/banner/banner01.jpg" /></li>
32
					<li><img src="images/banner/banner01.jpg" /></li>
33
					<li><img src="images/banner/banner01.jpg" /></li>
34
					<li><img src="images/banner/banner01.jpg" /></li>
29
					<li><img src="images/find_img_xiazai_nor.png" /></li>
35 30
				</ul>
36 31
			</div>
37 32
		</div>

BIN
images/find_img_xiazai_nor.png


+ 13 - 4
js/articalInfo.js

@ -40,7 +40,8 @@ $(document).ready(function() {
40 40
			success: function(data) {
41 41
				var $info = data.data || {};
42 42
				if(data.success && data.data) {
43
					var oTime = $info.createTime.substring(0, 4) + "." + $info.createTime.substring(4, 6) + "." + $info.createTime.substring(6, 8) 
43
					//var oTime = $info.createTime.substring(0, 4) + "." + $info.createTime.substring(4, 6) + "." + $info.createTime.substring(6, 8) 
44
					var oTime=timeGeshi($info.createTime);
44 45
					$("#creTime").text(oTime);
45 46
					$("#articleName").text($info.articleTitle);
46 47
					if($info.subject) {
@ -177,7 +178,8 @@ $(document).ready(function() {
177 178
					$(".commentList").html("");
178 179
					$(".message").text($info.length);
179 180
					for(var i = 0; i < $info.length; i++) {
180
						var time = $info[i].createTime.substring(0, 4) + "年" + $info[i].createTime.substring(4, 6) + "月" + $info[i].createTime.substring(6, 8) + "日 " + $info[i].createTime.substring(8, 10) + ":" + $info[i].createTime.substring(10, 12);
181
						//var time = $info[i].createTime.substring(0, 4) + "年" + $info[i].createTime.substring(4, 6) + "月" + $info[i].createTime.substring(6, 8) + "日 " + $info[i].createTime.substring(8, 10) + ":" + $info[i].createTime.substring(10, 12);
182
						var time=timeGeshi($info[i].createTime)
181 183
						if($info[i].professor.hasHeadImage){
182 184
							var img='/images/head/' + $info[i].professor.id + '_l.jpg'
183 185
						}else{
@ -226,7 +228,7 @@ $(document).ready(function() {
226 228
						$("#headImg,#proHead").attr("src", "images/default-icon.jpg");
227 229
					}
228 230
					if($data.foundTime) {
229
						var oTime = timeGeshi($data.foundTime);
231
						var oTime = $data.foundTime.substring(0,4)+"-"+$data.foundTime.substring(4,6)+"-"+$data.foundTime.substring(6,8);
230 232
						$("#createTime").text(oTime);
231 233
					} 
232 234
					if($data.city) {
@ -346,7 +348,14 @@ $(document).ready(function() {
346 348
	}
347 349
	/*时间格式转换*/
348 350
	function timeGeshi(otm) {
349
		var otme = otm.substring(0, 4) + "-" + otm.substring(4, 6) + "-" + otm.substring(6, 8);
351
		var ti=otm.substring(4, 5);
352
		var otme;
353
		if(ti=="0"){
354
			otme =otm.substring(5, 6) + "月" + otm.substring(6, 8)+"日 "+otm.substring(8, 10)+":"+otm.substring(10, 12);
355
		}else{
356
			otme =otm.substring(4, 6) + "月" + otm.substring(6, 8)+"日 "+otm.substring(8, 10)+":"+otm.substring(10, 12);
357
		}
358
		
350 359
		return otme;
351 360
	}
352 361
	function article() {

+ 5 - 1
js/bind-mail.js

@ -32,7 +32,11 @@ function emailSuccess() {
32 32
	$(".maillink").each(function() {
33 33
		var url = mailVal.split('@')[1];
34 34
		for(var j in hash) {
35
			$(this).attr("href", hash[url]);
35
			if(hash[url]==undefined){
36
        		$(this).attr("href", "http://mail." + url);
37
        	}else{
38
        	 	$(this).attr("href", hash[url]);
39
        	}
36 40
		}
37 41
	});
38 42
}

+ 3 - 1
js/consult.js

@ -1,4 +1,6 @@
1
loginStatus();//判断个人是否登录
1
$(function(){
2
	loginStatus();//判断个人是否登录
3
})
2 4
//用户id
3 5
var userid = $.cookie("userid");
4 6

+ 8 - 1
js/footer.js

@ -8,7 +8,7 @@ footerHtml += '<div class="container-fulid">'+
8 8
								'<p>' +
9 9
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">关于我们</a>' +
10 10
									'<a class="listlink" href="javascript:void(0);" rel="nofollow" id="cmpSet2">企业入驻</a>' +
11
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">我是专家</a>' +
11
									'<a class="listlink" href="javascript:void(0);" rel="nofollow" id="perso">我是专家</a>' +
12 12
									'<a class="listlink" href="privacy.html" target="_blank" rel="nofollow">用户协议</a>' +
13 13
									'<a class="listlink" href="download.html" target="_blank" rel="nofollow">产品下载</a>' +
14 14
								'</p>' +
@ -67,3 +67,10 @@ fHtml +='<div class="wrapper clearfix">' +
67 67

68 68

69 69
document.write(footerHtml);
70
$("#perso").click(function(){
71
	var userid = $.cookie('userid');
72
if(userid=="null"||userid==undefined){
73
			location.href="login.html";
74
		}
75
	location.href="expert-authentication.html";
76
})

+ 1 - 1
js/header.js

@ -30,7 +30,7 @@ headerHtml += '<div class="container-fulid">'+
30 30
//旧版header
31 31
var hHtml = '';
32 32
hHtml +='<div class="containerCon"><a href="index.html" alt="科袖" class="logo"></a>'+
33
	'<ul class="headnav floatL" style="margin-left:40px">'+
33
	'<ul class="headnav floatL" style="margin-left:26px">'+
34 34
			'<li><a href="index.html">首页</a></li>'+
35 35
			'<li><a href="discover.html">发现</a></li>'+
36 36
	'</ul>' +

+ 1 - 24
js/index.js

@ -54,30 +54,7 @@ $(function(){
54 54
		if(userid=="null"||userid==undefined){
55 55
			location.href="login.html";
56 56
		}
57
		$.ajax({
58
			url: "/ajax/professor/auth",
59
			type: "GET",
60
			timeout: 10000,
61
			dataType: "json",
62
			data: {
63
				"id": userid,
64
			},
65
			success: function(data, textState) {
66
				if(data.success) {
67
					var $rta=data.data;
68
					if($rta.authType==1){
69
						location.href="needList.html";
70
					}else{
71
						location.href="expert-authentication.html"
72
					}
73
					
74
				}
75

76
			},
77
			error: function(XMLHttpRequest, textStats, errorThrown) {
78

79
			}
80
		})
57
		location.href="expert-authentication.html"
81 58
	})
82 59
	
83 60
	//热门领域

+ 6 - 2
js/login-email-find02.js

@ -13,8 +13,12 @@ $(function (){
13 13
    $("#emailGo").on("click", function(){
14 14
		 var url = GetQueryString("email").split('@')[1];
15 15
        for (var j in hash){  
16
            $(this).attr("href", hash[url]); 
17
            location.href=hash[url]; 
16
            if(hash[url]==undefined){
17
        		location.href="http://mail." + url; 	
18
        	}else{
19
        	 	$(this).attr("href", hash[url]); 
20
           		location.href=hash[url];	
21
        	}
18 22
        }  
19 23
	});
20 24
	

+ 5 - 1
js/settings/account-binding.js

@ -98,7 +98,11 @@ function emailSuccess() {
98 98
	$(".sett").each(function() {
99 99
		var url = mailVal.split('@')[1];
100 100
		for(var j in hash) {
101
			$(this).attr("href", hash[url]);
101
			if(hash[url]==undefined){
102
        		$(this).attr("href", "http://mail." + url);
103
        	}else{
104
        	 	$(this).attr("href", hash[url]);
105
        	}
102 106
		}
103 107
	});
104 108
}

+ 5 - 0
js/workindex.js

@ -49,9 +49,14 @@ $(function() {
49 49
					oAuthType=data.data.authType;
50 50
					if(oAuthType==0){
51 51
<<<<<<< HEAD
52
<<<<<<< HEAD
52 53
=======
53 54
						$("#ponUm").text("个我正在发布的需求")
54 55
>>>>>>> refs/heads/dev
56
=======
57
						$("#ponUm").text("个我正在发布的需求");
58
						$("#searchDemand").text(">>点击查看");
59
>>>>>>> refs/remotes/origin/dev
55 60
						demandNumMy(); 
56 61
					}else if(oAuthType==1){
57 62
						demandNum();