Browse Source

解决冲突

lyn7568 5 years ago
parent
commit
49e7f962bd
23 changed files with 2367 additions and 1800 deletions
  1. 1 0
      css/genindex.css
  2. 5 0
      css/share.css
  3. 443 342
      e/index.html
  4. 8 8
      index.html
  5. 1 1
      js/header.js
  6. 6 6
      js/index.js
  7. 3 1
      js/recommend.js
  8. 6 6
      js/searchNew.js
  9. 18 5
      js/teamInforShow.js
  10. 567 535
      js/teamManage.js
  11. 194 169
      js/tidings.js
  12. 180 0
      js/unPatentImport.js
  13. 326 310
      js/unPatentIssue.js
  14. 162 103
      js/unPatentList.js
  15. 1 2
      js/unPatentShow.js
  16. 3 0
      patentList.html
  17. 3 2
      recommend.html
  18. 3 0
      teamInfoShow.html
  19. 114 0
      unPatentImport.html
  20. 241 212
      unPatentIssue.html
  21. 78 71
      unPatentList.html
  22. 1 24
      unPatentShow.html
  23. 3 3
      userInforShow.html

+ 1 - 0
css/genindex.css

@ -507,6 +507,7 @@ ul.atachList>li a.atach-down:hover{color:#28b8fa;text-decoration: underline;}
507 507
.itemListCon .overLable{font-size:14px;color:#14b521;line-height:24px;}
508 508
.itemListCon .form-result>ul>li .madiaEdit>li{float: left;margin-right: 28px;}
509 509
.itemListCon .form-result>ul>li .madiaEdit .editThis{display:inline-block;width:60px;height:32px;background:url(../images/g_article_button_xiugai_hig.png);background-size:cover;cursor:pointer;}
510
.itemListCon .form-result>ul>li .madiaEdit .deteleThis3{display:inline-block;width:80px;height:32px;}
510 511
.itemListCon .form-result>ul>li .madiaEdit .deteleThis2{display:inline-block;width:32px;height:32px;background:url(../images/g_article_button_shanchu_hig.png);background-size:cover;cursor:pointer;}
511 512
.itemListCon .form-result>ul>li .madiaEdit .closeThis{color:#FF0000;}
512 513
.itemListCon .form-result>ul>li .madiaEdit{display:none;overflow:hidden;position:absolute;top:50%;margin-top:-16px;right:0;}

+ 5 - 0
css/share.css

@ -491,3 +491,8 @@ ul.mui-table-view>li:last-child:after{background: none;}
491 491
.item-btn li.collectBtn>span{position:absolute;width:20px;left:50%;margin-left:-10px;top:8px;height:4px;}
492 492
/*附件提示*/
493 493
.atachList{color:#017eb8;background:#e7f5fb;padding:10px 20px;text-align: center;font-size:12px;}
494
495
496
.infocon.madiaBlock>#hotTeam>li {
497
    padding: 0px 15px;
498
}

+ 443 - 342
e/index.html

@ -2,373 +2,474 @@
2 2
<html>
3 3

4 4
<head>
5
<meta charset="UTF-8">
6
<title>科袖网-搭建企业与专家的桥梁</title>
7
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
<link rel="stylesheet" href="../css/bootstrap.min.css" />
9
<link rel="stylesheet" href="../css/reset.css" />
10
<link rel="stylesheet" href="../css/common.css" />
11
<link rel="stylesheet" href="../css/share.css" />
12
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
13
<script type="text/javascript" src="../js/public/baseUtil.js"></script>	
14
<script type="text/javascript" src="../js/public/shareCom.js"></script>	
15
<script type="text/javascript" src="../js/public/openApp.js"></script>	
5
	<meta charset="UTF-8">
6
	<title>科袖网-搭建企业与专家的桥梁</title>
7
	<meta name="viewport"
8
		content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
9
	<link rel="stylesheet" href="../css/bootstrap.min.css" />
10
	<link rel="stylesheet" href="../css/reset.css" />
11
	<link rel="stylesheet" href="../css/common.css" />
12
	<link rel="stylesheet" href="../css/share.css" />
13
	<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
14
	<script type="text/javascript" src="../js/public/baseUtil.js"></script>
15
	<script type="text/javascript" src="../js/public/shareCom.js"></script>
16
	<script type="text/javascript" src="../js/public/openApp.js"></script>
16 17
</head>
17 18

18 19
<body>
19
<div class="bomb-box" style="top: 15%"></div>
20
<div class="contentBody2">
21
	<div class="bannerA">
22
	    <img class="logoA" src="../images/banner/bglogo.png" />
23
	    <img width="100%" src="../images/banner/bg1218.jpg" />
24
	    
25
	    <div class="search-wrap">
26
		    <input type="text" placeholder="搜索专家、服务、资源" class="search-input" />
27
		    <icon type="search" class="search-icon"></icon>
28
		</div>
29
	</div>
30
	<div class="conblock btnLinkBox clearfix">
31
		<ul class="row clearfix">
32
			<li class="col-xs-6" id="improfessor">
33
				<a href="javascript:;">
34
					<div class="btnLinkIcon proBtn"></div>
35
					<div class="media-body btnLink">
36
						<h4 class='h1Font'>找专家</h4>
37
						<p class='h2Font ellipsisSty'>解决企业研发难题</p>
38
					</div>
39
				</a>
40
			</li>
41
			<li class="col-xs-6" id="demandP">
42
				<a href="javascript:;">
43
					<div class="btnLinkIcon fabuBtn"></div>
44
					<div class="media-body btnLink">
45
						<h4 class='h1Font'>发需求</h4>
46
						<p class='h2Font ellipsisSty'>快速获得专家回复</p>
47
					</div>
48
				</a>
49
			</li>
50
		</ul>
51
	</div>
52
	<div class="mainbox">
53
		<div class="maintitbox">
54
			<div class="maintit">热门领域</div>
20
	<div class="bomb-box" style="top: 15%"></div>
21
	<div class="contentBody2">
22
		<div class="bannerA">
23
			<img class="logoA" src="../images/banner/bglogo.png" />
24
			<img width="100%" src="../images/banner/bg1218.jpg" />
25

26
			<div class="search-wrap">
27
				<input type="text" placeholder="搜索专家、服务、资源" class="search-input" />
28
				<icon type="search" class="search-icon"></icon>
29
			</div>
55 30
		</div>
56
		<ul class="row gridbg">
57
			<li class="col-xs-4" data-title="腐蚀与防护">
58
			    <a href="#">
59
			        <span class="fieldicon fieldicon01"></span>
60
			        <div class="media-body">腐蚀与防护</div>
61
			    </a>
62
			</li>
63
			<li class="col-xs-4" data-title="材料失效与保护">
64
			    <a href="#">
65
			        <span class="fieldicon fieldicon02"></span>
66
			        <div class="media-body">材料失效与保护</div>
67
			    </a>
68
			</li>
69
			<li class="col-xs-4" data-title="材料加工">
70
			    <a href="#">
71
			        <span class="fieldicon fieldicon03"></span>
72
			        <div class="media-body">材料加工</div>
73
			    </a>
74
			</li>
75
			<li class="col-xs-4" data-title="复合材料">
76
			    <a href="#">
77
			        <span class="fieldicon fieldicon04"></span>
78
			        <div class="media-body">复合材料</div>
79
			    </a>
80
			</li>
81
			<li class="col-xs-4" data-title="金属材料">
82
			    <a href="#">
83
			        <span class="fieldicon fieldicon05"></span>
84
			        <div class="media-body">金属材料</div>
85
			    </a>
86
			</li>
87
			<li class="col-xs-4" data-title="">
88
			    <a href="#">
89
			        <span class="fieldicon fieldicon-more"></span>
90
			        <div class="media-body">更多领域</div>
91
			    </a>
92
			</li>
93
		</ul>
94
			
95
	</div>
96
	<div class="mainbox">
97
		<div class="maintitbox">
98
			<div class="maintit">推荐专家</div>
31
		<div class="conblock btnLinkBox clearfix">
32
			<ul class="row clearfix">
33
				<li class="col-xs-6" id="improfessor">
34
					<a href="javascript:;">
35
						<div class="btnLinkIcon proBtn"></div>
36
						<div class="media-body btnLink">
37
							<h4 class='h1Font'>找专家</h4>
38
							<p class='h2Font ellipsisSty'>解决企业研发难题</p>
39
						</div>
40
					</a>
41
				</li>
42
				<li class="col-xs-6" id="demandP">
43
					<a href="javascript:;">
44
						<div class="btnLinkIcon fabuBtn"></div>
45
						<div class="media-body btnLink">
46
							<h4 class='h1Font'>发需求</h4>
47
							<p class='h2Font ellipsisSty'>快速获得专家回复</p>
48
						</div>
49
					</a>
50
				</li>
51
			</ul>
99 52
		</div>
100
		<div class="infocon madiaBlock">
101
			<ul class="mui-table-view"  id="hotPro">
102
		        
103
		    </ul>
53
		<div class="mainbox">
54
			<div class="maintitbox">
55
				<div class="maintit">热门领域</div>
56
			</div>
57
			<ul class="row gridbg">
58
				<li class="col-xs-4" data-title="腐蚀与防护">
59
					<a href="#">
60
						<span class="fieldicon fieldicon01"></span>
61
						<div class="media-body">腐蚀与防护</div>
62
					</a>
63
				</li>
64
				<li class="col-xs-4" data-title="材料失效与保护">
65
					<a href="#">
66
						<span class="fieldicon fieldicon02"></span>
67
						<div class="media-body">材料失效与保护</div>
68
					</a>
69
				</li>
70
				<li class="col-xs-4" data-title="材料加工">
71
					<a href="#">
72
						<span class="fieldicon fieldicon03"></span>
73
						<div class="media-body">材料加工</div>
74
					</a>
75
				</li>
76
				<li class="col-xs-4" data-title="复合材料">
77
					<a href="#">
78
						<span class="fieldicon fieldicon04"></span>
79
						<div class="media-body">复合材料</div>
80
					</a>
81
				</li>
82
				<li class="col-xs-4" data-title="金属材料">
83
					<a href="#">
84
						<span class="fieldicon fieldicon05"></span>
85
						<div class="media-body">金属材料</div>
86
					</a>
87
				</li>
88
				<li class="col-xs-4" data-title="">
89
					<a href="#">
90
						<span class="fieldicon fieldicon-more"></span>
91
						<div class="media-body">更多领域</div>
92
					</a>
93
				</li>
94
			</ul>
95

104 96
		</div>
105
		<div class="seeMore" id="moreHotp"><em>查看更多</em></div>
106
	</div>
107
	<div class="mainbox">
108
		<div class="maintitbox">
109
			<div class="maintit">热门资源</div>
97
		<div class="mainbox">
98
			<div class="maintitbox">
99
				<div class="maintit">推荐专家</div>
100
			</div>
101
			<div class="infocon madiaBlock">
102
				<ul class="mui-table-view" id="hotPro">
103

104
				</ul>
105
			</div>
106
			<div class="seeMore" id="moreHotp"><em>查看更多</em></div>
110 107
		</div>
111
		<div class="infocon madiaBlock">
112
			<ul class="mui-table-view" id="resShare">
113
		       
114
		    </ul>
108

109

110
		<div class="mainbox">
111
			<div class="maintitbox">
112
				<div class="maintit">推荐专家团队</div>
113
			</div>
114
			<div class="infocon madiaBlock">
115
				<ul class="mui-table-view" id="hotTeam">
116

117
				</ul>
118
			</div>
119
			<div class="seeMore" id="moreTeam"><em>查看更多</em></div>
115 120
		</div>
116
		<div class="seeMore" id="moreShare"><em>查看更多</em></div>
117
	</div>
118
	<div class="mainbox" style="margin-bottom: 20px;">
119
		<div class="maintitbox">
120
			<div class="maintit">入驻企业</div>
121

122

123

124

125

126
		<div class="mainbox">
127
			<div class="maintitbox">
128
				<div class="maintit">热门资源</div>
129
			</div>
130
			<div class="infocon madiaBlock">
131
				<ul class="mui-table-view" id="resShare">
132

133
				</ul>
134
			</div>
135
			<div class="seeMore" id="moreShare"><em>查看更多</em></div>
121 136
		</div>
122
		<div class="infocon madiaBlock">
123
			<ul class="mui-table-view" id="ruZhuCmp">
124
		        
125
		    </ul>
137
		<div class="mainbox" style="margin-bottom: 20px;">
138
			<div class="maintitbox">
139
				<div class="maintit">入驻企业</div>
140
			</div>
141
			<div class="infocon madiaBlock">
142
				<ul class="mui-table-view" id="ruZhuCmp">
143

144
				</ul>
145
			</div>
146
			<div class="seeMore" id="moreRcmp"><em>查看更多</em></div>
126 147
		</div>
127
		<div class="seeMore" id="moreRcmp"><em>查看更多</em></div>
128 148
	</div>
129
</div>
130

131
<script type="text/javascript">
132
$(document).ready(function() {
133
	proShow()
134
	resShare()
135
	ruZhuCmp()
136

137
	$("#resShare").on("click","li", function() {
138
		var OdataId=this.getAttribute("data-id");
139
		location.href="http://" + window.location.host + "/e/r.html?id=" + OdataId;
140
	})
141
	$("#hotPro").on("click","li", function() {
142
		var OdataId=this.getAttribute("data-id");
143
		location.href="http://" + window.location.host + "/e/p.html?id=" + OdataId;
144
	})
145
	$("#ruZhuCmp").on("click","li", function() {
146
		var OdataId=this.getAttribute("data-id");
147
		location.href="http://" + window.location.host + "/e/c.html?id=" + OdataId;
148
	})
149
	$("#moreRcmp").on("click", function() {//查看更多企业
150
		location.href="http://" + window.location.host + "/e/search.html?flag=6";
151
	})
152
	$("#moreShare").on("click", function() {//查看更多资源
153
		location.href="http://" + window.location.host + "/e/search.html?flag=2";
154
	})
155
	$("#moreHotp").on("click", function() {//查看更多专家
156
		location.href="http://" + window.location.host + "/e/search.html?flag=1";
157
	})
158
	
159
	var this_="../index.html";
160
	wcFresh(this_);
161
	document.getElementById("demandP").addEventListener("click", function() {
162
		isInstalled(this_,true);
163
	})
164
	document.getElementById("improfessor").addEventListener("click", function() {
165
		location.href="http://" + window.location.host + "/e/search.html?flag=1";
166
	})
167
	/*点击热门领域*/
168
	$('.gridbg').on('click', 'li', function() {
169
		var subject = this.getAttribute("data-title");
170
		location.href="http://" + window.location.host + "/e/search.html?flag=1&key=" + subject;
171
	})
172
	
173
	$(".search-input").keydown(function(e) {//search Enter
174
		if(e.which == 13) {
175
			var searchContent = $.trim($(".search-input").val());
176
			if(searchContent){
177
				location.href = "search.html?key=" + encodeURI(searchContent);
178
			}else{
179
				bombox("请输入关键词");
180
				return;
181
			}
182
		}
183
	
184
	})
185
	
186
	function ruZhuCmp(){//入驻企业
187
		$.ajax({
188
			url:"/ajax/org/index/search",
189
			type: "GET",
190
			timeout: 10000,
191
			dataType: "json",
192
			data:{
193
				"rows": 5
194
			},
195
			success: function(data) {
196
				if(data.success) {
197
					var $info = data.data;
198
					for(var i = 0; i < $info.length; i++) {
199
						var liStr=document.createElement("li");
200
						liStr.className="mui-table-view-cell";
201
						liStr.setAttribute("data-id", $info[i].id);
202
						document.getElementById("ruZhuCmp").appendChild(liStr);
203
						var cmpname,imgurl='../images/default-icon.jpg'
204
						if($info[i].hasOrgLogo) {
205
							imgurl='/images/org/' + $info[i].id + '.jpg';
206
						}
207
						if($info[i].forShort){
208
							cmpname = $info[i].forShort;
209
						}else{
210
							cmpname = $info[i].name;
211
						}
212
						var oSty={sty:"",tit:""};
213
						if($info[i].authStatus == 3) {
214
							oSty.sty="authicon-com-ok"
215
							oSty.tit="科袖认证企业"
216
						}
217
						var orgOther = "",orgType="";
218
						if($info[i].industry) {
219
							orgOther = $info[i].industry.replace(/,/gi, " | ");
220
						}
221
						if($info[i].orgType == "2") {
222
							orgType = orgTypeShow[$info[i].orgType] + "<span style='margin-right:16px;'></span>";
223
						}
224
						var strCon='';
225
						strCon += '<div class="flexCenter clearfix">'
226
						strCon += '<div class="madiaHead cmpHead">'
227
						strCon += '<div class="boxBlock"><img class="boxBlockimg" src="'+imgurl+'"></div></div>'
228
						strCon += '<div class="madiaInfo OmadiaInfo">'
229
						strCon += '<div class="h1Font  ellipsisSty">'
230
						strCon += 	'<span class="qiyego">'+cmpname+'</span>'
231
						strCon += 	'<span class="authiconNew '+oSty.sty+'" title="'+oSty.tit+'"></span>'
232
						strCon += '</div>'
233
						strCon += '<div class="h2Font  ellipsisSty">'
234
						strCon += 	'<span>'+orgType+orgOther+'</span>'
235
						strCon += '</div>'
236
						strCon += '</div></div>'
237
						liStr.innerHTML = strCon;
149

150
	<script type="text/javascript">
151
		$(document).ready(function () {
152
			proShow()
153
			resShare()
154
			ruZhuCmp()
155
			teamShow() //团队渲染
156

157
			$("#resShare").on("click", "li", function () {
158
				var OdataId = this.getAttribute("data-id");
159
				location.href = "http://" + window.location.host + "/e/r.html?id=" + OdataId;
160
			})
161
			$("#hotPro").on("click", "li", function () {
162
				var OdataId = this.getAttribute("data-id");
163
				location.href = "http://" + window.location.host + "/e/p.html?id=" + OdataId;
164
			})
165
			$("#ruZhuCmp").on("click", "li", function () {
166
				var OdataId = this.getAttribute("data-id");
167
				location.href = "http://" + window.location.host + "/e/c.html?id=" + OdataId;
168
			})
169
			$("#hotTeam").on("click", "li", function () { //跳转指定团队
170
				var OdataId = this.getAttribute("data-id");
171
				location.href = "http://" + window.location.host + "/e/2.html?id=" + OdataId;
172
			})
173

174

175
			$("#moreRcmp").on("click", function () { //查看更多企业
176
				location.href = "http://" + window.location.host + "/e/search.html?flag=6";
177
			})
178
			$("#moreShare").on("click", function () { //查看更多资源
179
				location.href = "http://" + window.location.host + "/e/search.html?flag=2";
180
			})
181
			$("#moreHotp").on("click", function () { //查看更多专家
182
				location.href = "http://" + window.location.host + "/e/search.html?flag=1";
183
			})
184
			$("#moreTeam").on("click", function () { //查看更多团队
185
				location.href = "http://" + window.location.host + "/e/search.html?flag=8";
186
			})
187

188

189
			var this_ = "../index.html";
190
			wcFresh(this_);
191
			document.getElementById("demandP").addEventListener("click", function () {
192
				isInstalled(this_, true);
193
			})
194
			document.getElementById("improfessor").addEventListener("click", function () {
195
				location.href = "http://" + window.location.host + "/e/search.html?flag=1";
196
			})
197
			/*点击热门领域*/
198
			$('.gridbg').on('click', 'li', function () {
199
				var subject = this.getAttribute("data-title");
200
				location.href = "http://" + window.location.host + "/e/search.html?flag=1&key=" + subject;
201
			})
202

203
			$(".search-input").keydown(function (e) { //search Enter
204
				if (e.which == 13) {
205
					var searchContent = $.trim($(".search-input").val());
206
					if (searchContent) {
207
						location.href = "search.html?key=" + encodeURI(searchContent);
208
					} else {
209
						bombox("请输入关键词");
210
						return;
238 211
					}
239 212
				}
240
			},
241
			error: function() {
242
			}
243
		})
244
	}
245
	function resShare(){//资源共享
246
		$.ajax({
247
			url:"/ajax/resource/index/search",
248
			type: "GET",
249
			timeout: 10000,
250
			dataType: "json",
251
			data:{
252
				"rows":5
253
			},
254
			success: function(data) {
255
				if(data.success) {
256
					var $info = data.data;
257
					for(var i = 0; i < $info.length; i++) {
258
						var liStr = document.createElement("li");
259
						liStr.setAttribute("data-id", $info[i].resourceId);
260
						liStr.className = "mui-table-view-cell";
261
						document.getElementById("resShare").appendChild(liStr);
262
	
263
						var cmpname,imgurl='../images/default-resource.jpg'
264
						var oSty={sty:"",tit:""};
265
						if($info[i].images.length > 0) {
266
							imgurl='/data/resource/' + $info[i].images[0].imageSrc 
267
						}
268
						if($info[i].resourceType == 1) { //个人资源
269
							cmpname = $info[i].editProfessor.name;
270
							oSty = autho($info[i].editProfessor.authType, $info[i].editProfessor.orgAuth, $info[i].editProfessor.authStatus);
271
						} else if($info[i].resourceType == 2) { //企业资源
272
							if($info[i].organization.forShort) {
273
								cmpname = $info[i].organization.forShort;
274
							}else{
275
								cmpname = $info[i].organization.name;
276
							}
277
							if($info[i].organization.authStatus==3){
278
								oSty.sty="authicon-com-ok"
279
								oSty.tit="科袖认证企业"
213

214
			})
215

216
			function ruZhuCmp() { //入驻企业
217
				$.ajax({
218
					url: "/ajax/org/index/search",
219
					type: "GET",
220
					timeout: 10000,
221
					dataType: "json",
222
					data: {
223
						"rows": 5
224
					},
225
					success: function (data) {
226
						if (data.success) {
227
							var $info = data.data;
228
							for (var i = 0; i < $info.length; i++) {
229
								var liStr = document.createElement("li");
230
								liStr.className = "mui-table-view-cell";
231
								liStr.setAttribute("data-id", $info[i].id);
232
								document.getElementById("ruZhuCmp").appendChild(liStr);
233
								var cmpname, imgurl = '../images/default-icon.jpg'
234
								if ($info[i].hasOrgLogo) {
235
									imgurl = '/images/org/' + $info[i].id + '.jpg';
236
								}
237
								if ($info[i].forShort) {
238
									cmpname = $info[i].forShort;
239
								} else {
240
									cmpname = $info[i].name;
241
								}
242
								var oSty = {
243
									sty: "",
244
									tit: ""
245
								};
246
								if ($info[i].authStatus == 3) {
247
									oSty.sty = "authicon-com-ok"
248
									oSty.tit = "科袖认证企业"
249
								}
250
								var orgOther = "",
251
									orgType = "";
252
								if ($info[i].industry) {
253
									orgOther = $info[i].industry.replace(/,/gi, " | ");
254
								}
255
								if ($info[i].orgType == "2") {
256
									orgType = orgTypeShow[$info[i].orgType] +
257
										"<span style='margin-right:16px;'></span>";
258
								}
259
								var strCon = '';
260
								strCon += '<div class="flexCenter clearfix">'
261
								strCon += '<div class="madiaHead cmpHead">'
262
								strCon += '<div class="boxBlock"><img class="boxBlockimg" src="' +
263
									imgurl + '"></div></div>'
264
								strCon += '<div class="madiaInfo OmadiaInfo">'
265
								strCon += '<div class="h1Font  ellipsisSty">'
266
								strCon += '<span class="qiyego">' + cmpname + '</span>'
267
								strCon += '<span class="authiconNew ' + oSty.sty + '" title="' + oSty
268
									.tit + '"></span>'
269
								strCon += '</div>'
270
								strCon += '<div class="h2Font  ellipsisSty">'
271
								strCon += '<span>' + orgType + orgOther + '</span>'
272
								strCon += '</div>'
273
								strCon += '</div></div>'
274
								liStr.innerHTML = strCon;
280 275
							}
281 276
						}
282
						
283
						var strCon='';
284
						strCon += '<div class="flexCenter clearfix">'
285
						strCon += '<div class="madiaHead resouseHead" style="background-image:url('+imgurl+')"></div>'
286
						strCon += '<div class="madiaInfo OmadiaInfo">'
287
						strCon += '<div class="h1Font  ellipsisSty-2">'+$info[i].resourceName+'</div>'
288
						strCon += '<div class="h3Font  ellipsisSty">'
289
						strCon += 	'<span class="qiyego">'+cmpname+'</span>'
290
						strCon += 	'<span class="authiconNew '+oSty.sty+'" title="'+oSty.tit+'"></span>'
291
						strCon += '<div class=" ellipsisSty h2Font">用途:' + $info[i].supportedServices + '</div>'
292
						strCon += '</div></div>'
293
						liStr.innerHTML = strCon;
294
					}
295
				}
296
			},
297
			error: function() {
277
					},
278
					error: function () {}
279
				})
298 280
			}
299
		})
300
	}
301
	function proShow(){//专家
302
		$.ajax({
303
			url:"/ajax/professor/index/search",
304
			type: "GET",
305
			timeout: 10000,
306
			dataType: "json",
307
			data:{
308
				"rows": 5
309
			},
310
			success: function(data) {
311
				if(data.success) {
312
					var $info = data.data;
313
					for(var i = 0; i < $info.length; i++) {
314
						var liStr = document.createElement("li");
315
						liStr.setAttribute("data-id", $info[i].id);
316
						liStr.className = "mui-table-view-cell";
317
						document.getElementById("hotPro").appendChild(liStr);
318
	
319
						var cmpname,imgurl='../images/default-photo.jpg'
320
						var oSty=autho($info[i].authType, $info[i].orgAuth, $info[i].authStatus);
321
						cmpname = $info[i].name;
322
						if($info[i].hasHeadImage) {
323
							imgurl='/images/head/' + $info[i].id + '_l.jpg';
324
						}
325
						var oTitle='';
326
						if($info[i].title) {
327
							oTitle = $info[i].title;
328
							if($info[i].orgName){
329
								oTitle = $info[i].title +','+ $info[i].orgName;
281

282
			function resShare() { //资源共享
283
				$.ajax({
284
					url: "/ajax/resource/index/search",
285
					type: "GET",
286
					timeout: 10000,
287
					dataType: "json",
288
					data: {
289
						"rows": 5
290
					},
291
					success: function (data) {
292
						if (data.success) {
293
							var $info = data.data;
294
							for (var i = 0; i < $info.length; i++) {
295
								var liStr = document.createElement("li");
296
								liStr.setAttribute("data-id", $info[i].resourceId);
297
								liStr.className = "mui-table-view-cell";
298
								document.getElementById("resShare").appendChild(liStr);
299

300
								var cmpname, imgurl = '../images/default-resource.jpg'
301
								var oSty = {
302
									sty: "",
303
									tit: ""
304
								};
305
								if ($info[i].images.length > 0) {
306
									imgurl = '/data/resource/' + $info[i].images[0].imageSrc
307
								}
308
								if ($info[i].resourceType == 1) { //个人资源
309
									cmpname = $info[i].editProfessor.name;
310
									oSty = autho($info[i].editProfessor.authType, $info[i].editProfessor
311
										.orgAuth, $info[i].editProfessor.authStatus);
312
								} else if ($info[i].resourceType == 2) { //企业资源
313
									if ($info[i].organization.forShort) {
314
										cmpname = $info[i].organization.forShort;
315
									} else {
316
										cmpname = $info[i].organization.name;
317
									}
318
									if ($info[i].organization.authStatus == 3) {
319
										oSty.sty = "authicon-com-ok"
320
										oSty.tit = "科袖认证企业"
321
									}
322
								}
323

324
								var strCon = '';
325
								strCon += '<div class="flexCenter clearfix">'
326
								strCon +=
327
									'<div class="madiaHead resouseHead" style="background-image:url(' +
328
									imgurl + ')"></div>'
329
								strCon += '<div class="madiaInfo OmadiaInfo">'
330
								strCon += '<div class="h1Font  ellipsisSty-2">' + $info[i].resourceName +
331
									'</div>'
332
								strCon += '<div class="h3Font  ellipsisSty">'
333
								strCon += '<span class="qiyego">' + cmpname + '</span>'
334
								strCon += '<span class="authiconNew ' + oSty.sty + '" title="' + oSty
335
									.tit + '"></span>'
336
								strCon += '<div class=" ellipsisSty h2Font">用途:' + $info[i]
337
									.supportedServices + '</div>'
338
								strCon += '</div></div>'
339
								liStr.innerHTML = strCon;
330 340
							}
331
						} else {
332
							if($info[i].office) {
333
								oTitle = $info[i].office;
334
								if($info[i].orgName){
335
									oTitle = $info[i].office +','+ $info[i].orgName;
341
						}
342
					},
343
					error: function () {}
344
				})
345
			}
346

347
			function proShow() { //专家
348
				$.ajax({
349
					url: "/ajax/professor/index/search",
350
					type: "GET",
351
					timeout: 10000,
352
					dataType: "json",
353
					data: {
354
						"rows": 5
355
					},
356
					success: function (data) {
357
						if (data.success) {
358
							var $info = data.data;
359
							for (var i = 0; i < $info.length; i++) {
360
								var liStr = document.createElement("li");
361
								liStr.setAttribute("data-id", $info[i].id);
362
								liStr.className = "mui-table-view-cell";
363
								document.getElementById("hotPro").appendChild(liStr);
364

365
								var cmpname, imgurl = '../images/default-photo.jpg'
366
								var oSty = autho($info[i].authType, $info[i].orgAuth, $info[i]
367
									.authStatus);
368
								cmpname = $info[i].name;
369
								if ($info[i].hasHeadImage) {
370
									imgurl = '/images/head/' + $info[i].id + '_l.jpg';
336 371
								}
372
								var oTitle = '';
373
								if ($info[i].title) {
374
									oTitle = $info[i].title;
375
									if ($info[i].orgName) {
376
										oTitle = $info[i].title + ',' + $info[i].orgName;
377
									}
378
								} else {
379
									if ($info[i].office) {
380
										oTitle = $info[i].office;
381
										if ($info[i].orgName) {
382
											oTitle = $info[i].office + ',' + $info[i].orgName;
383
										}
384
									}
385
								}
386
								var oResult = ""
387
								if ($info[i].researchAreas.length > 0) {
388
									oResult = '研究方向:';
389
									for (var n = 0; n < $info[i].researchAreas.length; n++) {
390
										oResult += $info[i].researchAreas[n].caption
391
										if (n < $info[i].researchAreas.length - 1) {
392
											oResult += ";"
393
										}
394
									}
395
								}
396

397
								var strCon = '';
398
								strCon += '<div class="flexCenter clearfix">'
399
								strCon += '<div class="madiaHead useHead" style="background-image:url(' +
400
									imgurl + ')"></div>'
401
								strCon += '<div class="madiaInfo">'
402
								strCon += '<div class="h1Font  ellipsisSty">'
403
								strCon += '<span class="qiyego">' + cmpname + '</span>'
404
								strCon += '<span class="authiconNew ' + oSty.sty + '" title="' + oSty
405
									.tit + '"></span>'
406
								strCon += '</div>'
407
								strCon += '<div class="h3Font  ellipsisSty" style="margin-top:0;">' +
408
									oTitle + '</div>'
409
								strCon += '<div class="h3Font  ellipsisSty">' + oResult + '</div>'
410
								strCon += '</div></div>'
411
								liStr.innerHTML = strCon;
337 412
							}
338 413
						}
339
						var oResult=""
340
						if($info[i].researchAreas.length > 0){
341
							oResult = '研究方向:';
342
							for(var n = 0; n < $info[i].researchAreas.length; n++) {
343
								oResult += $info[i].researchAreas[n].caption
344
								if(n < $info[i].researchAreas.length - 1) {
345
									oResult += ";"
414
					},
415
					error: function () {}
416
				})
417
			}
418

419
			function teamShow() { // 团队专家
420
				$.ajax({
421
					url: "/ajax/team/index/search",
422
					type: "GET",
423
					timeout: 10000,
424
					dataType: "json",
425
					data: {
426
						"rows": 5
427
					},
428
					success: function (data) {    
429
						if (data.success) {
430
							var $info = data.data;
431
							console.log($info)
432
							for (var i = 0; i < $info.length; i++) {
433
								var liItem = document.createElement("li");
434
								liItem.setAttribute("data-id", $info[i].id);
435
								liItem.className = "mui-table-view-cell";
436
								document.getElementById("hotTeam").appendChild(liItem);
437
								var oResult = ""
438
								if ($info[i].industry == undefined || $info[i].industry == null) {
439
									oResult = '无'
440
								}else{
441
									oResult = $info[i].industry
346 442
								}
443
								console.log(i)
444
								var liItem = document.createElement("li");
445
								liItem.setAttribute("data-id", $info[i].id);
446
								liItem.className = "mui-table-view-cell"
447
								var itemlist = '<div class="flexCenter OflexCenter clearfix">';
448
								itemlist += '<div class="madiaInfo OmadiaInfo teamStyle">'; //重置样式
449
								itemlist += '<p class="ellipsisSty-2 h1Font">' + $info[i].name + '</p>';
450
								itemlist += '<div class="h2Font">'
451
								itemlist += '<span class="nameSpan ownerName" ></span>'
452
								
453

454
								itemlist += '<span class="time">' + $info[i].orgName +
455
									"&nbsp;&nbsp;&nbsp;" + '</span><span>' + $info[i].city + '</span>'
456

457
								//研究领域
458
								itemlist += '<p class="time">行业领域:&nbsp;' + oResult  + '</p>'
459
								itemlist += '</div>'
460
								itemlist += '</div>';
461
								liItem.innerHTML = itemlist;
462
								document.getElementById('hotTeam').appendChild(liItem)
463

347 464
							}
348 465
						}
349
						
350
						var strCon='';
351
						strCon += '<div class="flexCenter clearfix">'
352
						strCon += '<div class="madiaHead useHead" style="background-image:url('+imgurl+')"></div>'
353
						strCon += '<div class="madiaInfo">'
354
						strCon += '<div class="h1Font  ellipsisSty">'
355
						strCon += 	'<span class="qiyego">'+cmpname+'</span>'
356
						strCon += 	'<span class="authiconNew '+oSty.sty+'" title="'+oSty.tit+'"></span>'
357
						strCon += '</div>'
358
						strCon += '<div class="h3Font  ellipsisSty" style="margin-top:0;">'+oTitle+'</div>'
359
						strCon += '<div class="h3Font  ellipsisSty">'+oResult+'</div>'
360
						strCon += '</div></div>'
361
						liStr.innerHTML = strCon;
362
					}
363
				}
364
			},
365
			error: function() {
466
					},
467
					error: function () {}
468
				})
366 469
			}
367
		})
368
	}
369 470

370
})
371
</script>
471
		})
472
	</script>
372 473

373 474
</body>
374 475


+ 8 - 8
index.html

@ -161,19 +161,19 @@
161 161
    		</ul>
162 162
		</div>
163 163
	</div>
164
	<div class="container-fulid hot-professor">
164
	<!-- <div class="container-fulid hot-professor">
165 165
    		<div class="con-tit">
166 166
    			<h4 class="hh4"><span class="homeicon-fangtan">科袖访谈</span></h4>
167 167
    		</div>
168 168
			<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
169
			    <!-- Indicators -->
170
			    <!--<ol class="carousel-indicators">
169
			    Indicators
170
			    <ol class="carousel-indicators">
171 171
				    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
172 172
				    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
173 173
				    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
174
			    </ol>-->
174
			    </ol>
175 175
			
176
			    <!-- Wrapper for slides -->
176
			    Wrapper for slides
177 177
			    <div class="carousel-inner" role="listbox" id="carouselThis">
178 178
				    <div class="item active">
179 179
				    	<a class="aitemLink" href="http://www.ekexiu.com/articalShow.html?articleId=F8B2FF4CAA654D7593586E5117C0B1CF" style="background-image: url(images/talks/talk_01.jpg);">
@ -209,14 +209,14 @@
209 209
					      	 	<div class="homebrief">
210 210
						      	 	<p class="h2Font">侯保荣,中国工程院院士,海洋腐蚀与防护专家。1942 年出生于山东省曹县。1967 年毕业于复旦大学化学系,1994 年在日本东京工业大学获博士学位。曾任中国科学院海洋研究所副所长,现任中国科学院海洋研究所研究员、博士生导师,“国家海洋腐蚀防护工程技术研究中心”主任。</p>
211 211
						      	 	<p class="h2Font">主要从事海洋腐蚀与防护技术研究,主持了我国近海腐蚀环境调查与研究,明确提出“海洋腐蚀环境”概念,建立了海洋腐蚀环境的理论体系。致力于海洋浪花飞溅区防腐技术的研究与推广,研发具有自主知识产权的复层矿脂包覆防腐体系。</p>
212
					      	 	</div><!--<p class="h2Font">出版专著 7 本,主编论文集 6 本,发表论文 360 余篇(其中 SCI/EI 收录200 余篇),授权专利 70 余项,其中发明专利 30 余项。</p>-->
212
					      	 	</div>
213 213
					      	 </div>
214 214
					      </div>
215 215
					    </a>
216 216
				    </div>
217 217
			    </div>
218 218
			
219
			    <!-- Controls -->
219
			    Controls
220 220
			    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
221 221
				    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
222 222
				    <span class="sr-only">Previous</span>
@ -226,7 +226,7 @@
226 226
				    <span class="sr-only">Next</span>
227 227
			  	</a>
228 228
			</div>
229
	</div>
229
	</div> -->
230 230
	
231 231
	<div class="container-fulid urlLinkBox">
232 232
	    <div class="containerCon">

+ 1 - 1
js/header.js

@ -10,7 +10,7 @@ var headerHtml = '';
10 10
						'<ul class="headnav floatL">'+
11 11
								'<li><a href="index.html">首页</a></li>'+
12 12
								// '<li><a href="discover.html">发现</a></li>'+
13
								// '<li><a href="recommend.html">成果</a></li>'+
13
								'<li><a href="recommend.html">成果</a></li>'+
14 14
						'</ul>' +
15 15
					'</div>' +
16 16
					'<div class="searchblock">'+

+ 6 - 6
js/index.js

@ -76,11 +76,11 @@ $(function(){
76 76
		$("#hotArea2>li").eq($(this).index()).addClass("liNow").siblings().removeClass("liNow")
77 77
		teamShow(thisTabcon2);
78 78
	})
79
	$(".con-ulList").on("mouseenter","li",function(){
80
		$(this).find(".boxBlockimg").css("transform", "scale(1.1)");
81
	}).on("mouseleave","li",function(){
82
		$(this).find(".boxBlockimg").css("transform", "scale(1)");
83
	})
79
	// $(".con-ulList").on("mouseenter","li",function(){kz
80
	// 	$(this).find(".boxBlockimg").css("transform", "scale(1.1)");
81
	// }).on("mouseleave","li",function(){
82
	// 	$(this).find(".boxBlockimg").css("transform", "scale(1)");
83
	// })
84 84
	function ruZhuCmp(){//入驻企业
85 85
		$.ajax({
86 86
			url: "/ajax/org/index/search",
@ -289,7 +289,7 @@ $(function(){
289 289
						strCon += 	'<span class="qiyego ellipsisSty">'+$info[i].name+'</span>'
290 290
						strCon += '</div>'
291 291
						strCon += '<div class="h3Font ellipsisSty" style="margin-top:0;">'+$info[i].orgName+' '+ $info[i].city +'</div>'
292
						strCon += '<div class="h3Font ellipsisSty-2">行业领域:'+$info[i].industry+'</div>'
292
						strCon += '<div class="h3Font ellipsisSty-2">学术领域:'+$info[i].subject+'</div>'
293 293
						strCon += '</div></a>'
294 294
						liStr.html(strCon);
295 295
					}

+ 3 - 1
js/recommend.js

@ -70,7 +70,6 @@ $(function() {
70 70
				dataO.patSortNum = $info[$info.length - 1].sortNum;
71 71
				dataO.patCreateTime = $info[$info.length - 1].createTime;
72 72
				dataO.patId = $info[$info.length - 1].id;
73
		
74 73
				for(var i = 0; i < $info.length; i++) {
75 74
					var itemlist = '<li class="flexCenter">';
76 75
						itemlist += '<a target="_blank" href="/' + pageUrl("pt",$info[i]) +'" class="linkhref"><div class="lefthead patenthead"></div>';
@ -208,6 +207,8 @@ $(function() {
208 207
			}
209 208
		})
210 209
	},
210
211
211 212
	hotUnpatentList = function() {
212 213
		var aimId="hotNews"
213 214
		oAjax("/ajax/resResult/pq",{
@ -377,6 +378,7 @@ $(function() {
377 378
	patentListVal(true, true)
378 379
	navmenu();
379 380
	hotUnpatentList();
381
380 382
	if(userid && userid != null && userid != "null") {
381 383
		$(".privateInfo .onlogined").removeClass("displayNone")
382 384
		$(".privateInfo .unlogined").addClass("displayNone")

+ 6 - 6
js/searchNew.js

@ -22,9 +22,9 @@ $(function() {
22 22
			orgModifyTime:"",
23 23
			orgId:"",
24 24
			
25
			artSortNum:"",
26
			artPublishTime:"",
27
			artId:"",
25
			// artSortNum:"",
26
			// artPublishTime:"",
27
			// artId:"",
28 28
			
29 29
			resSortNum:"",
30 30
			resPublishTime:"",
@ -1076,9 +1076,9 @@ $(function() {
1076 1076
					orgModifyTime:"",
1077 1077
					orgId:"",
1078 1078
					
1079
					artSortNum:"",
1080
					artPublishTime:"",
1081
					artId:"",
1079
					// artSortNum:"",
1080
					// artPublishTime:"",
1081
					// artId:"",
1082 1082
					
1083 1083
					resSortNum:"",
1084 1084
					resPublishTime:"",

+ 18 - 5
js/teamInforShow.js

@ -1,18 +1,32 @@
1 1
var userid = $.cookie("userid");
2 2
var tId = GetQueryString("id");
3 3
//微信分享
4
// var qrcode = new QRCode(document.getElementById("qrcode"), {
5
// 	width: 100,
6
// 	height: 100
7
// });
8
9
// function makeCode() {
10
// 	var hurl = window.location.href;
11
// 	var elurl = hurl;
12
// 	qrcode.makeCode(elurl);
13
// }
14
// makeCode();
15
4 16
var qrcode = new QRCode(document.getElementById("qrcode"), {
5 17
	width: 100,
6 18
	height: 100
7 19
});
8 20
9 21
function makeCode() {
10
	var hurl = window.location.href;
11
	var elurl = hurl;
22
	var hurl = window.location.host;
23
	var elurl = "http://" + hurl + "/e/2.html?id=" + tId; 
12 24
	qrcode.makeCode(elurl);
13 25
}
14 26
makeCode();
15 27
28
29
16 30
//分享关注按钮
17 31
$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
18 32
@ -447,7 +461,6 @@ $(function() {
447 461
			}
448 462
			for(item in memberArr) {
449 463
				if (item!={}){
450
				
451 464
					var dataStr = memberArr[item]
452 465
					var dImg = "../images/default-photo.jpg"
453 466
					if (dataStr.hasHeadImage){
@ -505,9 +518,9 @@ $(function() {
505 518
			$("#attentBtn").on('click', function() {
506 519
				if(userid && userid != null && userid != "null") {
507 520
					if($(this).is('.attenedSpan')){
508
						cancelCollectionAbout(tId,$(this),13)
521
						cancelCollectionAbout(tId,$(this),6)
509 522
					} else {
510
						collectionAbout(tId,$(this), 13);
523
						collectionAbout(tId,$(this), 6);
511 524
					}
512 525
				}else{
513 526
					quickLog();

+ 567 - 535
js/teamManage.js

@ -14,29 +14,31 @@ function makeCode() {
14 14
makeCode();
15 15
16 16
//分享关注按钮
17
$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
17
$('.shareWeixin').hover(function () {
18
	$('.shareCode').stop(true, false).fadeToggle();
19
});
18 20
19
$(function() {
20
	loginStatus();//判断个人是否登录
21
$(function () {
22
	loginStatus(); //判断个人是否登录
21 23
	// if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
22 24
	//  	location.href="http://" + window.location.host + "/e/p.html?id="+tId;
23 25
	// }
24 26
	function subjectShow(data) {
25
		if(data != undefined && data.length != 0) {
26
			var subs=strToAry(data)
27
			if(subs.length > 0) {
28
				for(var i = 0; i < subs.length; i++) {
27
		if (data != undefined && data.length != 0) {
28
			var subs = strToAry(data)
29
			if (subs.length > 0) {
30
				for (var i = 0; i < subs.length; i++) {
29 31
					$("#subjectShow").append("<li>" + subs[i] + "</li>");
30 32
				};
31 33
			}
32 34
		}
33 35
	}
34
	
36
35 37
	function industryShow(data) {
36
		if(data != undefined && data.length != 0) {
37
			var subs=strToAry(data)
38
			if(subs.length > 0) {
39
				for(var i = 0; i < subs.length; i++) {
38
		if (data != undefined && data.length != 0) {
39
			var subs = strToAry(data)
40
			if (subs.length > 0) {
41
				for (var i = 0; i < subs.length; i++) {
40 42
					$("#industryShow").append("<li><div class='h4tit'>" + subs[i] + "</div></li>");
41 43
				};
42 44
			}
@ -49,113 +51,118 @@ $(function() {
49 51
		rowsTen = 10,
50 52
		secretaryId = '',
51 53
		chiefId = ''
52
	var memberArr = {}, paperArr = [], patentArr = [], unpatentArr=[]
53
	var oAjax = function(url, dataS, otype, oFun,beforeFun,completeFun,async) {
54
	var memberArr = {},
55
		paperArr = [],
56
		patentArr = [],
57
		unpatentArr = []
58
	var oAjax = function (url, dataS, otype, oFun, beforeFun, completeFun, async) {
54 59
			$.ajax({
55
				async:async==null?true:async,
56
				url:url,
60
				async: async ==null ? true : async,
61
				url: url,
57 62
				dataType: 'json',
58 63
				type: otype,
59 64
				data: dataS,
60 65
				traditional: true,
61 66
				beforeSend: beforeFun,
62
				success: function(res) {
63
					if(res.success) {
67
				success: function (res) {
68
					if (res.success) {
64 69
						oFun(res)
65 70
					}
66 71
				},
67
				complete:completeFun
68
	            
72
				complete: completeFun
73
69 74
			});
70
		},	
71
		insertNodata = function (targetE,newStr) {
72
            var parent = document.getElementById(targetE).parentNode;
73
            var kong = document.createElement("div");
74
            kong.className = "con-kong";
75
            kong.innerHTML ='<div class="picbox picNull"></div>'+
76
			            '<div class="txtbox">暂时没有符合该搜索条件的内容</div>'
77
            if(newStr){
78
            	kong.querySelector(".txtbox").innerHTML = newStr;
79
            }
80
            if (parent.firstChild.className == "con-kong") {
81
                return
82
            } else {
83
                parent.insertBefore(kong,parent.firstChild);
84
            }
75
		},
76
		insertNodata = function (targetE, newStr) {
77
			var parent = document.getElementById(targetE).parentNode;
78
			var kong = document.createElement("div");
79
			kong.className = "con-kong";
80
			kong.innerHTML = '<div class="picbox picNull"></div>' +
81
				'<div class="txtbox">暂时没有符合该搜索条件的内容</div>'
82
			if (newStr) {
83
				kong.querySelector(".txtbox").innerHTML = newStr;
84
			}
85
			if (parent.firstChild.className == "con-kong") {
86
				return
87
			} else {
88
				parent.insertBefore(kong, parent.firstChild);
89
			}
85 90
86
        },
87
        removeNodata = function (targetE) {
88
            var parent = document.getElementById(targetE).parentNode;
89
            if (parent.firstChild.className == "con-kong") {
90
                parent.removeChild(parent.firstChild);
91
            } else {
92
                return
93
            }
94
        },
95
       	getUserInfo=function() {
96
       		oAjax("/ajax/team/qo", {
97
				   id: tId
98
			   }, "get", function(data){
91
		},
92
		removeNodata = function (targetE) {
93
			var parent = document.getElementById(targetE).parentNode;
94
			if (parent.firstChild.className == "con-kong") {
95
				parent.removeChild(parent.firstChild);
96
			} else {
97
				return
98
			}
99
		},
100
		getUserInfo = function () {
101
			oAjax("/ajax/team/qo", {
102
				id: tId
103
			}, "get", function (data) {
99 104
				var $info = data.data;
100 105
				$("#proName").text($info.name);
101
				if($info.city){
106
				if ($info.city) {
102 107
					$("#proAddress").html($info.city + "<span style='margin-right:10px;'></span>");
103 108
				}
104 109
				$("#proOther").text($info.orgName);
105 110
				document.title = $info.name + "-科袖网"
106
				
111
107 112
				//简介
108
				if($info.descp) {
113
				if ($info.descp) {
109 114
					$("#descpS").parents(".coninfobox").removeClass("displayNone");
110 115
					$("#item1user>.nodatabox").addClass("displayNone");
111 116
					$("#descpS").text($info.descp);
112 117
				}
113 118
				//学术领域					
114
				if($info.subject) {
119
				if ($info.subject) {
115 120
					$("#subjectShow").parents(".coninfobox").removeClass("displayNone");
116 121
					$("#item1user>.nodatabox").addClass("displayNone");
117 122
					subjectShow($info.subject);
118 123
				}
119 124
				//行业领域	
120
				if($info.industry) {
125
				if ($info.industry) {
121 126
					$("#industryShow").parents(".coninfobox").removeClass("displayNone");
122 127
					$("#item1user>.nodatabox").addClass("displayNone");
123 128
					industryShow($info.industry);
124 129
				}
125
				
130
126 131
				var weibotitle = $info.name;
127 132
				var weibourl = window.location.href;
128
				var weibopic ="";
129
				$("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+weibotitle+"&url="+weibourl+"&pic="+weibopic+"&ralateUid=6242830109&searchPic=false&style=simple");
133
				var weibopic = "";
134
				$("#weibo").attr("href", "http://service.weibo.com/share/share.php?appkey=3677230589&title=" + weibotitle + "&url=" + weibourl + "&pic=" + weibopic + "&ralateUid=6242830109&searchPic=false&style=simple");
130 135
			});
131 136
		},
132
		professorListVal=function(isbind, ff){
133
			var aimId="expertli",aimIdF="teamMembers",newStr=""
134
			oAjax("/ajax/team/pro",{
135
				id:tId,
137
		professorListVal = function (isbind, ff) {
138
			var aimId = "expertli",
139
				aimIdF = "teamMembers",
140
				newStr = ""
141
			oAjax("/ajax/team/pro", {
142
				id: tId,
136 143
				pageSize: rowsTen,
137 144
				pageNo: pageNo,
138
			}, "get", function(res){
145
			}, "get", function (res) {
139 146
				var $info = res.data.data;
140
				if($info.length > 0) {
141
					$("#"+aimId).parent().find(".js-load-more").show();
142
					$("#"+aimIdF).parent().find(".js-load-more").show();
147
				if ($info.length > 0) {
148
					$("#" + aimId).parent().find(".js-load-more").show();
149
					$("#" + aimIdF).parent().find(".js-load-more").show();
143 150
					if (res.data.pageNo !== pageNo) {
144 151
						if (ff) {
145
							$("#"+aimIdF).parent().find(".js-load-more").unbind("click");
146
							$("#"+aimIdF).parent().find(".js-load-more").hide();
152
							$("#" + aimIdF).parent().find(".js-load-more").unbind("click");
153
							$("#" + aimIdF).parent().find(".js-load-more").hide();
147 154
						} else {
148
							$("#"+aimId).parent().find(".js-load-more").unbind("click");
149
							$("#"+aimId).parent().find(".js-load-more").hide();
150
							$("#"+aimIdF).parent().find(".js-load-more").unbind("click");
151
							$("#"+aimIdF).parent().find(".js-load-more").hide();
155
							$("#" + aimId).parent().find(".js-load-more").unbind("click");
156
							$("#" + aimId).parent().find(".js-load-more").hide();
157
							$("#" + aimIdF).parent().find(".js-load-more").unbind("click");
158
							$("#" + aimIdF).parent().find(".js-load-more").hide();
152 159
						}
153 160
						return
154 161
					}
155
					$("#"+aimId).show()
156
					for(var i = 0; i < $info.length; i++) {
162
					$("#" + aimId).show()
163
					for (var i = 0; i < $info.length; i++) {
157 164
						var item = $info[i].professor;
158
						memberArr[item]={};
165
						memberArr[item] = {};
159 166
						if ($info[i].secretary) {
160 167
							secretaryId = $info[i].professor
161 168
						}
@ -165,665 +172,690 @@ $(function() {
165 172
					}
166 173
					console.log($info[i])
167 174
					if (ff) {
168
						detailPro(aimIdF, 1)	
175
						detailPro(aimIdF, 1)
169 176
					} else {
170 177
						detailPro(aimId)
171 178
						detailPro(aimIdF, 1)
172 179
					}
173 180
				}
174
                if(isbind){
181
				if (isbind) {
175 182
					if (ff) {
176
						$("#"+aimIdF).parent().find(".js-load-more").unbind("click").on("click",function(){
183
						$("#" + aimIdF).parent().find(".js-load-more").unbind("click").on("click", function () {
177 184
							pageNo++
178 185
							professorListVal(false)
179 186
						})
180
					} else{
181
						$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
187
					} else {
188
						$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
182 189
							pageNo++
183 190
							professorListVal(false)
184 191
						})
185
						$("#"+aimIdF).parent().find(".js-load-more").unbind("click").on("click",function(){
192
						$("#" + aimIdF).parent().find(".js-load-more").unbind("click").on("click", function () {
186 193
							pageNo++
187 194
							professorListVal(false)
188 195
						})
189 196
					}
190
                }
197
				}
191 198
				if ($info.length < rowsTen) {
192 199
					if (ff) {
193
						$("#"+aimIdF).parent().find(".js-load-more").unbind("click");
194
						$("#"+aimIdF).parent().find(".js-load-more").hide();
200
						$("#" + aimIdF).parent().find(".js-load-more").unbind("click");
201
						$("#" + aimIdF).parent().find(".js-load-more").hide();
195 202
					} else {
196
						$("#"+aimId).parent().find(".js-load-more").unbind("click");
197
						$("#"+aimId).parent().find(".js-load-more").hide();
198
						$("#"+aimIdF).parent().find(".js-load-more").unbind("click");
199
						$("#"+aimIdF).parent().find(".js-load-more").hide();
203
						$("#" + aimId).parent().find(".js-load-more").unbind("click");
204
						$("#" + aimId).parent().find(".js-load-more").hide();
205
						$("#" + aimIdF).parent().find(".js-load-more").unbind("click");
206
						$("#" + aimIdF).parent().find(".js-load-more").hide();
200 207
					}
201
                }
202
			},function(){
208
				}
209
			}, function () {
203 210
				if (ff) {
204
					$("#"+aimIdF).parent().find(".js-load-more").attr("disabled",true);
205
					$("#"+aimIdF).parent().find(".js-load-more").addClass("active");
206
				}else{
207
					$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
208
					$("#"+aimId).parent().find(".js-load-more").addClass("active");
209
					$("#"+aimIdF).parent().find(".js-load-more").attr("disabled",true);
210
					$("#"+aimIdF).parent().find(".js-load-more").addClass("active");
211
					$("#" + aimIdF).parent().find(".js-load-more").attr("disabled", true);
212
					$("#" + aimIdF).parent().find(".js-load-more").addClass("active");
213
				} else {
214
					$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
215
					$("#" + aimId).parent().find(".js-load-more").addClass("active");
216
					$("#" + aimIdF).parent().find(".js-load-more").attr("disabled", true);
217
					$("#" + aimIdF).parent().find(".js-load-more").addClass("active");
211 218
				}
212
			},function(){
219
			}, function () {
213 220
				if (ff) {
214
					$("#"+aimIdF).parent().find(".js-load-more").removeAttr("disabled");
215
					$("#"+aimIdF).parent().find(".js-load-more").removeClass("active");
221
					$("#" + aimIdF).parent().find(".js-load-more").removeAttr("disabled");
222
					$("#" + aimIdF).parent().find(".js-load-more").removeClass("active");
216 223
				} else {
217
					$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
218
					$("#"+aimId).parent().find(".js-load-more").removeClass("active");
219
					$("#"+aimIdF).parent().find(".js-load-more").removeAttr("disabled");
220
					$("#"+aimIdF).parent().find(".js-load-more").removeClass("active");
224
					$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
225
					$("#" + aimId).parent().find(".js-load-more").removeClass("active");
226
					$("#" + aimIdF).parent().find(".js-load-more").removeAttr("disabled");
227
					$("#" + aimIdF).parent().find(".js-load-more").removeClass("active");
221 228
				}
222 229
			})
223 230
		},
224
		searchProfessor=function(){
231
		searchProfessor = function () {
225 232
			var keyt = $('#searchMe').val()
226
			if(keyt===''){
233
			if (keyt === '') {
227 234
				return
228 235
			}
229
			var aimId="searchMembers"
230
			oAjax("/ajax/team/pro/search",{
236
			var aimId = "searchMembers"
237
			oAjax("/ajax/team/pro/search", {
231 238
				"team": tId,
232
				"key":keyt,
233
				"authType":1,
239
				"key": keyt,
240
				"authType": 1,
234 241
				"rows": 10
235
			}, "get", function(res){
242
			}, "get", function (res) {
236 243
				var $info = res.data;
237
				if($info.length > 0) {
244
				if ($info.length > 0) {
238 245
					removeNodata(aimId);
239
					$("#"+aimId).html('')
240
					$("#"+aimId).show()
241
					for(var i = 0; i < $info.length; i++) {
246
					$("#" + aimId).html('')
247
					$("#" + aimId).show()
248
					for (var i = 0; i < $info.length; i++) {
242 249
						var li4 = ''
243 250
						if ($info[i].id in memberArr) {
244 251
							li4 = '<li class="added">已添加</li>'
245
						}else{
246
							li4 = '<li class="addThis" data-id="'+$info[i].id+'" data-flag="1">添加</li>'	
252
						} else {
253
							li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1">添加</li>'
247 254
						}
248
						var ownerSty="",ownerSt="",hasImg="../images/default-photo.jpg"
255
						var ownerSty = "",
256
							ownerSt = "",
257
							hasImg = "../images/default-photo.jpg"
249 258
						var userType = autho($info[i].authType, $info[i].orgAuth, $info[i].authStatus);
250
							ownerSt= userType.title;
251
							ownerSty=userType.sty;
252
						if($info[i].hasHeadImage) {
253
							hasImg="/images/head/" + $info[i].id + "_l.jpg"
259
						ownerSt = userType.title;
260
						ownerSty = userType.sty;
261
						if ($info[i].hasHeadImage) {
262
							hasImg = "/images/head/" + $info[i].id + "_l.jpg"
254 263
						}
255 264
						var title = $info[i].title || "";
256 265
						var orgName = $info[i].orgName || "";
257 266
						var office = $info[i].office || "";
258
						if(title != "") {
267
						if (title != "") {
259 268
							var ttitle = title + ",";
260
						}else{
261
							if(office!=""){
262
								var ttitle = office  + ",";	
263
							}else{
264
								var ttitle = office;	
269
						} else {
270
							if (office != "") {
271
								var ttitle = office + ",";
272
							} else {
273
								var ttitle = office;
265 274
							}
266 275
						}
267
						if(orgName != "") {
276
						if (orgName != "") {
268 277
							orgName = orgName;
269 278
						}
270 279
						var itemlist = '<li class="flexCenter">';
271
							itemlist += '<a target="_blank" href="userInforShow.html?professorId=' + $info[i].id +'">'
272
							itemlist += '<div class="madiaHead userHead" style="border-radius:50%;background-image:url('+hasImg+')"></div>';
273
							itemlist += '<div class="madiaInfo">';
274
							itemlist += '<p class="h1Font ellipsisSty">';
275
							itemlist += '<span class="nameSpan">'+$info[i].name+'</span>';
276
							itemlist += '<em class="authiconNew '+ownerSty+'" title="'+ownerSt+'"></em></p>';
277
							itemlist += '<p class="h2Font ellipsisSty">'+ttitle+orgName+'</p>';
278
							itemlist += '</div></a>';
279
							itemlist += '<ul class="madiaEdit">'
280
							itemlist += li4
281
							itemlist += '</ul>'
282
							itemlist += '</li>';
283
						
284
						$("#"+aimId).append(itemlist)
280
						itemlist += '<a target="_blank" href="userInforShow.html?professorId=' + $info[i].id + '">'
281
						itemlist += '<div class="madiaHead userHead" style="border-radius:50%;background-image:url(' + hasImg + ')"></div>';
282
						itemlist += '<div class="madiaInfo">';
283
						itemlist += '<p class="h1Font ellipsisSty">';
284
						itemlist += '<span class="nameSpan">' + $info[i].name + '</span>';
285
						itemlist += '<em class="authiconNew ' + ownerSty + '" title="' + ownerSt + '"></em></p>';
286
						itemlist += '<p class="h2Font ellipsisSty">' + ttitle + orgName + '</p>';
287
						itemlist += '</div></a>';
288
						itemlist += '<ul class="madiaEdit">'
289
						itemlist += li4
290
						itemlist += '</ul>'
291
						itemlist += '</li>';
292
293
						$("#" + aimId).append(itemlist)
285 294
					}
286 295
				} else {
287
					$("#"+aimId).hide()
288
                    insertNodata(aimId);
296
					$("#" + aimId).hide()
297
					insertNodata(aimId);
289 298
				}
290 299
			})
291 300
		},
292
		unpatentListVal=function(isbind){
293
			var aimId="proUnPatent",newStr="尚未关联任何非专利成果"
294
			oAjax("/ajax/team/resResult",{
295
				id:tId,
296
				pageSize:rows,
301
		unpatentListVal = function (isbind) {
302
			console.log(tId)
303
304
			var aimId = "proUnPatent",
305
				newStr = "尚未关联任何非专利成果"
306
			oAjax("/ajax/team/resResult", {
307
				id: tId,
308
				pageSize: rows,
297 309
				pageNo: pagePerNo,
298
			}, "get", function(res){
310
			}, "get", function (res) {
299 311
				var $info = res.data.data;
300 312
				$("#showUnPatent").html("")
301
				if($info.length > 0) {
302
					if(res.data.total>0 && res.data.total<99){
313
				if ($info.length > 0) {
314
					if (res.data.total > 0 && res.data.total < 99) {
303 315
						$("#unpatCount").text(res.data.total);
304 316
					}
305
					if(res.data.total>99){
317
					if (res.data.total > 99) {
306 318
						$("#unpatCount").text("99+");
307 319
					}
308
					$("#"+aimId).show()
309
					for(var i = 0; i < $info.length; i++) {
320
					$("#" + aimId).show()
321
					for (var i = 0; i < $info.length; i++) {
310 322
						unpatentArr.push($info[i].researchResult)
311 323
					}
312 324
					detailUnPat(aimId)
313
				}else {
325
				} else {
314 326
					$("#showUnPatent").parents('.otherShow').hide()
315 327
				}
316
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
317
                removeNodata(aimId);
318
                if($info.length == 0 && liLen == 0 ){
319
                	$("#"+aimId).hide()
320
                    insertNodata(aimId,newStr);
321
                }
322
                if(isbind){
323
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
328
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
329
				removeNodata(aimId);
330
				if ($info.length == 0 && liLen == 0) {
331
					$("#" + aimId).hide()
332
					insertNodata(aimId, newStr);
333
				}
334
				if (isbind) {
335
					$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
324 336
						pagePerNo++
325 337
						unpatentListVal(false)
326 338
					})
327
                }
339
				}
328 340
				if ($info.length < rows) {
329
                    $("#"+aimId).parent().find(".js-load-more").unbind("click");
330
                    $("#"+aimId).parent().find(".js-load-more").hide();
331
                }
332
			},function(){
333
				$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
334
	       		$("#"+aimId).parent().find(".js-load-more").addClass("active");
335
			},function(){
336
				$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
337
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
341
					$("#" + aimId).parent().find(".js-load-more").unbind("click");
342
					$("#" + aimId).parent().find(".js-load-more").hide();
343
				}
344
			}, function () {
345
				$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
346
				$("#" + aimId).parent().find(".js-load-more").addClass("active");
347
			}, function () {
348
				$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
349
				$("#" + aimId).parent().find(".js-load-more").removeClass("active");
338 350
			})
339 351
		},
340
		searchUnPatent=function(){
352
		searchUnPatent = function () {
341 353
			var keyt = $('#searchUnPatentKey').val()
342
			if(keyt===''){
354
			if (keyt === '') {
343 355
				return
344 356
			}
345
			var aimId="searchUnPatent"
346
			oAjax("/ajax/team/resResult/search",{
357
			var aimId = "searchUnPatent"
358
			oAjax("/ajax/team/resResult/search", {
347 359
				"team": tId,
348 360
				"key": keyt,
349 361
				"status": ['1'],
350 362
				"pageSize": 10,
351 363
				"pageNo": 1
352
			}, "get", function(res){
364
			}, "get", function (res) {
353 365
				var $info = res.data.data;
354
				if($info.length > 0) {
366
				if ($info.length > 0) {
355 367
					removeNodata(aimId);
356
					$("#"+aimId).html('')
357
					$("#"+aimId).show()
358
					for(var i = 0; i < $info.length; i++) {
368
					$("#" + aimId).html('')
369
					$("#" + aimId).show()
370
					for (var i = 0; i < $info.length; i++) {
359 371
						var li4 = ''
360
						if (unpatentArr.indexOf($info[i].id)>-1) {
372
						if (unpatentArr.indexOf($info[i].id) > -1) {
361 373
							li4 = '<li class="added">已添加</li>'
362
						}else{
363
							li4 = '<li class="addThis" data-id="'+$info[i].id+'" data-flag="1" style="cursor:pointer;">添加</li>'	
374
						} else {
375
							li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
364 376
						}
365
						var resIM='<div class="madiaHead patentHead"></div>'
377
						var resIM = '<div class="madiaHead patentHead"></div>'
366 378
						if ($info[i].pic) {
367 379
							var src = '/data/researchResult' + $info[i].pic.split(",")[0]
368
							resIM = '<div class="madiaHead patentHead" style="background-image:url('+ src +')"></div>';
380
							resIM = '<div class="madiaHead patentHead" style="background-image:url(' + src + ')"></div>';
369 381
						}
370 382
						var itemlist = '<li style="position:relative;">';
371
							itemlist += '<a target="_blank" href="unPatentShow.html?id='+$info[i].id+'" class="flexCenter urlgo">';
372
							itemlist += resIM
373
							itemlist += '<div class="madiaInfo">';
374
							itemlist += '<p class="h1Font ellipsisSty">'+ $info[i].name +'</p>';
375
							itemlist += '<p class="h2Font ellipsisSty displayNone">研究者:<span class="researchers"></span></p>';
376
							itemlist += '<p class="h2Font ellipsisSty displayNone">所属机构:<span class="resOrgName"></span></p>';
377
							itemlist += '</div></a>';
378
							itemlist += '<ul class="madiaEdit">'
379
							itemlist += li4
380
							itemlist += '</ul>'
381
							itemlist += '</li>';
382
							var $itemlist = $(itemlist);
383
							$("#"+aimId).append($itemlist)
384
							queryResearcher($info[i].id, $itemlist)
385
							if ($info[i].orgId) {
386
								queryReseOrgName($info[i].orgId, $itemlist)
387
							}
383
						itemlist += '<a target="_blank" href="unPatentShow.html?id=' + $info[i].id + '" class="flexCenter urlgo">';
384
						itemlist += resIM
385
						itemlist += '<div class="madiaInfo">';
386
						itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
387
						itemlist += '<p class="h2Font ellipsisSty displayNone">研究者:<span class="researchers"></span></p>';
388
						itemlist += '<p class="h2Font ellipsisSty displayNone">所属机构:<span class="resOrgName"></span></p>';
389
						itemlist += '</div></a>';
390
						itemlist += '<ul class="madiaEdit">'
391
						itemlist += li4
392
						itemlist += '</ul>'
393
						itemlist += '</li>';
394
						var $itemlist = $(itemlist);
395
						$("#" + aimId).append($itemlist)
396
						queryResearcher($info[i].id, $itemlist)
397
						if ($info[i].orgId) {
398
							queryReseOrgName($info[i].orgId, $itemlist)
399
						}
388 400
					}
389 401
				} else {
390
					$("#"+aimId).hide()
391
                    insertNodata(aimId);
402
					$("#" + aimId).hide()
403
					insertNodata(aimId);
392 404
				}
393 405
			})
394 406
		},
395
		patentListVal=function(isbind){
396
			var aimId="proPatent",newStr="尚未关联任何专利成果"
397
			oAjax("/ajax/team/patent",{
398
				id:tId,
399
				pageSize:rows,
407
		patentListVal = function (isbind) {
408
			var aimId = "proPatent",
409
				newStr = "尚未关联任何专利成果"
410
			oAjax("/ajax/team/patent", {
411
				id: tId,
412
				pageSize: rows,
400 413
				pageNo: pagePerNo,
401
			}, "get", function(res){
414
			}, "get", function (res) {
402 415
				$("#showPatent").html("")
403 416
				var $info = res.data.data;
404
				if($info.length > 0) {
405
					if(res.data.total>0 && res.data.total<99){
417
				if ($info.length > 0) {
418
					if (res.data.total > 0 && res.data.total < 99) {
406 419
						$("#patCount").text(res.data.total);
407 420
					}
408
					if(res.data.total>99){
421
					if (res.data.total > 99) {
409 422
						$("#patCount").text("99+");
410 423
					}
411
					$("#"+aimId).show()
412
					for(var i = 0; i < $info.length; i++) {
424
					$("#" + aimId).show()
425
					for (var i = 0; i < $info.length; i++) {
413 426
						patentArr.push($info[i].patent)
414 427
					}
415 428
					detailPat(aimId)
416 429
				} else {
417 430
					$("#showPatent").parents('.otherShow').hide()
418 431
				}
419
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
420
                removeNodata(aimId);
421
                if($info.length == 0 && liLen == 0 ){
422
                	$("#"+aimId).hide()
423
                    insertNodata(aimId,newStr);
424
                }
425
                if(isbind){
426
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
432
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
433
				removeNodata(aimId);
434
				if ($info.length == 0 && liLen == 0) {
435
					$("#" + aimId).hide()
436
					insertNodata(aimId, newStr);
437
				}
438
				if (isbind) {
439
					$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
427 440
						pagePerNo++
428
					 	patentListVal(false)
441
						patentListVal(false)
429 442
					})
430
                }
443
				}
431 444
				if ($info.length < rows) {
432
                    $("#"+aimId).parent().find(".js-load-more").unbind("click");
433
                    $("#"+aimId).parent().find(".js-load-more").hide();
434
                }
435
			},function(){
436
				$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
437
	       		$("#"+aimId).parent().find(".js-load-more").addClass("active");
438
			},function(){
439
				$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
440
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
445
					$("#" + aimId).parent().find(".js-load-more").unbind("click");
446
					$("#" + aimId).parent().find(".js-load-more").hide();
447
				}
448
			}, function () {
449
				$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
450
				$("#" + aimId).parent().find(".js-load-more").addClass("active");
451
			}, function () {
452
				$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
453
				$("#" + aimId).parent().find(".js-load-more").removeClass("active");
441 454
			})
442 455
		},
443
		searchPatent=function(){
456
		searchPatent = function () {
444 457
			var keyt = $('#searchPatentKey').val()
445
			if(keyt===''){
458
			if (keyt === '') {
446 459
				return
447 460
			}
448
			var aimId="searchPatent"
449
			oAjax("/ajax/team/patent/search",{
461
			var aimId = "searchPatent"
462
			oAjax("/ajax/team/patent/search", {
450 463
				"team": tId,
451
				"key":keyt,
464
				"key": keyt,
452 465
				"rows": 10
453
			}, "get", function(res){
466
			}, "get", function (res) {
454 467
				var $info = res.data;
455
				if($info.length > 0) {
468
				if ($info.length > 0) {
456 469
					removeNodata(aimId);
457
					$("#"+aimId).html('')
458
					$("#"+aimId).show()
459
					for(var i = 0; i < $info.length; i++) {
470
					$("#" + aimId).html('')
471
					$("#" + aimId).show()
472
					for (var i = 0; i < $info.length; i++) {
460 473
						var li4 = ''
461
						if (patentArr.indexOf($info[i].id)>-1) {
474
						if (patentArr.indexOf($info[i].id) > -1) {
462 475
							li4 = '<li class="added">已添加</li>'
463
						}else{
464
							li4 = '<li class="addThis" data-id="'+$info[i].id+'" data-flag="1" style="cursor:pointer;">添加</li>'	
476
						} else {
477
							li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
465 478
						}
466 479
						var itemlist = '<li style="position:relative;">';
467
							itemlist += '<a target="_blank" href="/' + pageUrl("pt",$info[i]) +'" class="flexCenter urlgo"><div class="madiaHead patentHead"></div>';
468
							itemlist += '<div class="madiaInfo">';
469
							itemlist += '<p class="h1Font ellipsisSty">'+ $info[i].name +'</p>';
470
							itemlist += '<p class="h2Font ellipsisSty">发明人:'+ $info[i].authors.substring(0, $info[i].authors.length - 1) +'</p>';
471
							itemlist += '<p class="h2Font ellipsisSty">申请人:'+ $info[i].reqPerson +'</p>';
472
							itemlist += '</div></a>';
473
							itemlist += '<ul class="madiaEdit">'
474
							itemlist += li4
475
							itemlist += '</ul>'
476
							itemlist += '</li>';
477
						$("#"+aimId).append(itemlist)
480
						itemlist += '<a target="_blank" href="/' + pageUrl("pt", $info[i]) + '" class="flexCenter urlgo"><div class="madiaHead patentHead"></div>';
481
						itemlist += '<div class="madiaInfo">';
482
						itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
483
						itemlist += '<p class="h2Font ellipsisSty">发明人:' + $info[i].authors.substring(0, $info[i].authors.length - 1) + '</p>';
484
						itemlist += '<p class="h2Font ellipsisSty">申请人:' + $info[i].reqPerson + '</p>';
485
						itemlist += '</div></a>';
486
						itemlist += '<ul class="madiaEdit">'
487
						itemlist += li4
488
						itemlist += '</ul>'
489
						itemlist += '</li>';
490
						$("#" + aimId).append(itemlist)
478 491
					}
479 492
				} else {
480
					$("#"+aimId).hide()
481
                    insertNodata(aimId);
493
					$("#" + aimId).hide()
494
					insertNodata(aimId);
482 495
				}
483 496
			})
484 497
		},
485
		paperListVal=function(isbind){
486
			var aimId="proPaper",newStr="尚未关联任何论文"
487
			oAjax("/ajax/team/paper",{
488
				id:tId,
498
		paperListVal = function (isbind) {
499
			var aimId = "proPaper",
500
				newStr = "尚未关联任何论文"
501
			oAjax("/ajax/team/paper", {
502
				id: tId,
489 503
				pageSize: rows,
490 504
				pageNo: pagePerNo
491
			}, "get", function(res){
505
			}, "get", function (res) {
492 506
				var $info = res.data.data;
493 507
				$("#showPaper").html("")
494
				if($info.length > 0) {
495
					if(res.data.total>0 && res.data.total<99){
508
				if ($info.length > 0) {
509
					if (res.data.total > 0 && res.data.total < 99) {
496 510
						$("#parCount").text(res.data.total);
497 511
					}
498
					if(res.data.total>99){
512
					if (res.data.total > 99) {
499 513
						$("#parCount").text("99+");
500 514
					}
501 515
					if (res.data.pageNo !== pagePerNo) {
502
						$("#"+aimId).parent().find(".js-load-more").unbind("click");
503
						$("#"+aimId).parent().find(".js-load-more").hide();
516
						$("#" + aimId).parent().find(".js-load-more").unbind("click");
517
						$("#" + aimId).parent().find(".js-load-more").hide();
504 518
						return
505 519
					}
506
					$("#"+aimId).show()
507
					for(var i = 0; i < $info.length; i++) {
520
					$("#" + aimId).show()
521
					for (var i = 0; i < $info.length; i++) {
508 522
						paperArr.push($info[i].paper)
509 523
					}
510 524
					detailPer(aimId)
511 525
				} else {
512 526
					$("#showPaper").parents(".otherShow").hide()
513 527
				}
514
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
515
                removeNodata(aimId);
516
                if($info.length == 0 && liLen == 0 ){
517
                	$("#"+aimId).hide()
518
                    insertNodata(aimId,newStr);
519
                }
520
                if(isbind){
521
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
528
				var liLen = document.getElementById(aimId).querySelectorAll("li").length;
529
				removeNodata(aimId);
530
				if ($info.length == 0 && liLen == 0) {
531
					$("#" + aimId).hide()
532
					insertNodata(aimId, newStr);
533
				}
534
				if (isbind) {
535
					$("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
522 536
						pagePerNo++
523
					 	paperListVal(false)
537
						paperListVal(false)
524 538
					})
525
                }
539
				}
526 540
				if ($info.length < rows) {
527
                    $("#"+aimId).parent().find(".js-load-more").unbind("click");
528
                    $("#"+aimId).parent().find(".js-load-more").hide();
529
                }
530
			},function(){
531
				$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
532
	       		$("#"+aimId).parent().find(".js-load-more").addClass("active");
533
			},function(){
534
				$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
535
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
541
					$("#" + aimId).parent().find(".js-load-more").unbind("click");
542
					$("#" + aimId).parent().find(".js-load-more").hide();
543
				}
544
			}, function () {
545
				$("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
546
				$("#" + aimId).parent().find(".js-load-more").addClass("active");
547
			}, function () {
548
				$("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
549
				$("#" + aimId).parent().find(".js-load-more").removeClass("active");
536 550
			})
537 551
		},
538
		searchPaper=function(){
552
		searchPaper = function () {
539 553
			var keyt = $('#searchPaperKey').val()
540
			if(keyt===''){
554
			if (keyt === '') {
541 555
				return
542 556
			}
543
			var aimId="searchPaper"
544
			oAjax("/ajax/team/paper/search",{
557
			var aimId = "searchPaper"
558
			oAjax("/ajax/team/paper/search", {
545 559
				"team": tId,
546
				"key":keyt,
560
				"key": keyt,
547 561
				"rows": 10
548
			}, "get", function(res){
562
			}, "get", function (res) {
549 563
				var $info = res.data;
550
				if($info.length > 0) {
564
				if ($info.length > 0) {
551 565
					removeNodata(aimId);
552
					$("#"+aimId).html('')
553
					$("#"+aimId).show()
554
					for(var i = 0; i < $info.length; i++) {
566
					$("#" + aimId).html('')
567
					$("#" + aimId).show()
568
					for (var i = 0; i < $info.length; i++) {
555 569
						var li4 = ''
556
						if (paperArr.indexOf($info[i].id)>-1) {
570
						if (paperArr.indexOf($info[i].id) > -1) {
557 571
							li4 = '<li class="added">已添加</li>'
558
						}else{
559
							li4 = '<li class="addThis" data-id="'+$info[i].id+'" data-flag="1" style="cursor:pointer;">添加</li>'	
572
						} else {
573
							li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
560 574
						}
561
						var moreInf=""
562
						if(!$info[i].cn4periodical){
563
							$info[i].cn4periodical="";
575
						var moreInf = ""
576
						if (!$info[i].cn4periodical) {
577
							$info[i].cn4periodical = "";
564 578
						}
565
						if(!$info[i].en4periodical){
566
							$info[i].en4periodical="";
579
						if (!$info[i].en4periodical) {
580
							$info[i].en4periodical = "";
567 581
						}
568
						if(!$info[i].pubDay){
569
							$info[i].pubDay="";
582
						if (!$info[i].pubDay) {
583
							$info[i].pubDay = "";
570 584
						}
571
						moreInf = $info[i].cn4periodical+ " " +$info[i].en4periodical+ " " +$info[i].pubDay;
572
						
585
						moreInf = $info[i].cn4periodical + " " + $info[i].en4periodical + " " + $info[i].pubDay;
586
573 587
						var itemlist = '<li style="position: relative;">';
574
						itemlist += '<a target="_blank" href="/' + pageUrl("pp",$info[i]) +'" class="flexCenter urlgo"><div class="madiaHead paperHead"></div>';
588
						itemlist += '<a target="_blank" href="/' + pageUrl("pp", $info[i]) + '" class="flexCenter urlgo"><div class="madiaHead paperHead"></div>';
575 589
						itemlist += '<div class="madiaInfo">';
576
						itemlist += '<p class="h1Font ellipsisSty">'+ $info[i].name +'</p>';
577
						itemlist += '<p class="h2Font ellipsisSty">作者:'+ $info[i].authors.substring(0, $info[i].authors.length - 1) +'</p>';
578
						itemlist += '<p class="h2Font ellipsisSty">期刊:'+ moreInf +'</p>';
590
						itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
591
						itemlist += '<p class="h2Font ellipsisSty">作者:' + $info[i].authors.substring(0, $info[i].authors.length - 1) + '</p>';
592
						itemlist += '<p class="h2Font ellipsisSty">期刊:' + moreInf + '</p>';
579 593
						itemlist += '</div></a>';
580 594
						itemlist += '<ul class="madiaEdit">'
581 595
						itemlist += li4
582 596
						itemlist += '</ul>'
583 597
						itemlist += '</li>';
584
						$("#"+aimId).append(itemlist)
598
						$("#" + aimId).append(itemlist)
585 599
					}
586 600
				} else {
587
					$("#"+aimId).hide()
588
                    insertNodata(aimId);
601
					$("#" + aimId).hide()
602
					insertNodata(aimId);
589 603
				}
590 604
			})
591 605
		},
592
		detailUnPat=function(obj) {
593
			oAjax("/ajax/resResult/qm",{
594
				id:unpatentArr,
595
			},"get",function(data){
596
				var dataStr=data.data;
597
				for(var i = 0; i < dataStr.length; i++) {
606
		detailUnPat = function (obj) {
598 607
599
					var resIM='<div class="madiaHead patentHead"></div>'
600
					if (dataStr[i].pic) {
601
						var src = '/data/researchResult' + dataStr[i].pic.split(",")[0]
602
						resIM = '<div class="madiaHead patentHead" style="background-image:url('+ src +')"></div>';
603
					}
604
					var strAdd = '';
605
						strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="unPatentShow.html?id='+dataStr[i].id+'" class="flexCenter urlgo">';
608
			oAjax("/ajax/resResult/qm", {
609
				id: unpatentArr,
610
			}, "get", function (data) {
611
				var dataStr = data.data;
612
				for (var i = 0; i < dataStr.length; i++) {
613
					if (dataStr[i].status == 1) {
614
						var resIM = '<div class="madiaHead patentHead"></div>'
615
						if (dataStr[i].pic) {
616
							var src = '/data/researchResult' + dataStr[i].pic.split(",")[0]
617
							resIM = '<div class="madiaHead patentHead" style="background-image:url(' + src + ')"></div>';
618
						}
619
						var strAdd = '';
620
						strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="unPatentShow.html?id=' + dataStr[i].id + '" class="flexCenter urlgo">';
606 621
						strAdd += resIM
607
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
622
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
608 623
						strAdd += '<p class="h2Font ellipsisSty displayNone">研究者:<span class="researchers"></span></p>';
609 624
						strAdd += '<p class="h2Font ellipsisSty displayNone">所属机构:<span class="resOrgName"></span></p>';
610 625
						strAdd += '</div>';
611 626
						strAdd += '</a>'
612 627
						strAdd += '<ul class="madiaEdit">'
613
						strAdd += '<li class="deloutPro" data-id="'+dataStr[i].id+'">取消关联</li>'
628
						strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
614 629
						strAdd += '</ul></li>'
615
				
616
					$("#"+obj).append(strAdd);
617
					if (i < 3) {
618
						$("#showUnPatent").append(strAdd)
619
					}
620
					var $itemlist = $(strAdd);
621
					queryResearcher(dataStr[i].id, $itemlist)
622
					if (dataStr[i].orgId) {
623
						queryReseOrgName(dataStr[i].orgId, $itemlist)
630
631
						$("#" + obj).append(strAdd);
632
						if (i < 3) {
633
							$("#showUnPatent").append(strAdd)
634
						}
635
						var $itemlist = $(strAdd);
636
						queryResearcher(dataStr[i].id, $itemlist)
637
						if (dataStr[i].orgId) {
638
							queryReseOrgName(dataStr[i].orgId, $itemlist)
639
						}
624 640
					}
641
625 642
				}
626
			},function(){},false);
643
			}, function () {}, false);
627 644
		},
628 645
		queryResearcher = function (id, $list) {
629 646
			if (id) {
630
				oAjax("/ajax/resResult/researcher",{
647
				oAjax("/ajax/resResult/researcher", {
631 648
					"id": id
632
				}, 'get', function($data) {
649
				}, 'get', function ($data) {
633 650
					var arr = []
634
					if($data.data.length) {
651
					if ($data.data.length) {
635 652
						$list.find('.researchers').parent().removeClass('displayNone')
636
						for (var i = 0; i < $data.data.length;i++) {
653
						for (var i = 0; i < $data.data.length; i++) {
637 654
							arr.push($data.data[i].name)
638 655
						}
639 656
						$list.find('.researchers').html(arr.join(','))
640 657
					}
641
				}, function(){},false)
658
				}, function () {}, false)
642 659
			}
643 660
		},
644 661
		queryReseOrgName = function (id, $list) {
645 662
			if (id) {
646
				cacheModel.getCompany(id,function(sc,value){
647
					if(sc){
663
				cacheModel.getCompany(id, function (sc, value) {
664
					if (sc) {
648 665
						$list.find(".resOrgName").parent().removeClass('displayNone')
649
						if(value.forShort){
666
						if (value.forShort) {
650 667
							$list.find(".resOrgName").html(value.forShort)
651
						}else{
668
						} else {
652 669
							$list.find(".resOrgName").html(value.name)
653 670
						}
654 671
					}
655 672
				})
656 673
			}
657 674
		},
658
		detailPat=function(obj) {
659
			oAjax("/ajax/ppatent/qm",{
660
				id:patentArr,
661
			},"get",function(data){
662
				var dataStr=data.data;
663
				for(var i = 0; i < dataStr.length; i++) {
675
		detailPat = function (obj) {
676
			oAjax("/ajax/ppatent/qm", {
677
				id: patentArr,
678
			}, "get", function (data) {
679
				var dataStr = data.data;
680
				for (var i = 0; i < dataStr.length; i++) {
664 681
					var strAdd = '';
665
						strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="/'+ pageUrl("pt",dataStr[i]) +'" class="flexCenter urlgo">';
666
						strAdd += '<div class="madiaHead patentHead"></div>';
667
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
668
						strAdd += '<p class="h2Font ellipsisSty">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
669
						strAdd += '<p class="h2Font ellipsisSty">申请人:'+ dataStr[i].reqPerson +'</p>';
670
						strAdd += '</div>';
671
						strAdd += '</a>';
672
						strAdd += '<ul class="madiaEdit">'
673
						strAdd += '<li class="deloutPro" data-id="'+dataStr[i].id+'">取消关联</li>'
674
						strAdd += '</ul></li>'
675
					$("#"+obj).append(strAdd)
682
					strAdd += '<li class="mui-table-view-cell"><a  target="_blank" href="/' + pageUrl("pt", dataStr[i]) + '" class="flexCenter urlgo">';
683
					strAdd += '<div class="madiaHead patentHead"></div>';
684
					strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
685
					strAdd += '<p class="h2Font ellipsisSty">发明人:' + dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) + '</p>';
686
					strAdd += '<p class="h2Font ellipsisSty">申请人:' + dataStr[i].reqPerson + '</p>';
687
					strAdd += '</div>';
688
					strAdd += '</a>';
689
					strAdd += '<ul class="madiaEdit">'
690
					strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
691
					strAdd += '</ul></li>'
692
					$("#" + obj).append(strAdd)
676 693
					if (i < 3) {
677 694
						$("#showPatent").append(strAdd);
678 695
					}
679 696
				}
680 697
			});
681 698
		},
682
		detailPer=function(obj) {
683
			oAjax("/ajax/ppaper/qm",{
684
				id:paperArr,
685
			},"get",function(data){
686
				var dataStr=data.data;
687
				for(var i = 0; i < dataStr.length; i++) {
688
					var moreInf=""
689
					if(!dataStr[i].cn4periodical){
690
						dataStr[i].cn4periodical="";
699
		detailPer = function (obj) {
700
			oAjax("/ajax/ppaper/qm", {
701
				id: paperArr,
702
			}, "get", function (data) {
703
				var dataStr = data.data;
704
				for (var i = 0; i < dataStr.length; i++) {
705
					var moreInf = ""
706
					if (!dataStr[i].cn4periodical) {
707
						dataStr[i].cn4periodical = "";
691 708
					}
692
					if(!dataStr[i].en4periodical){
693
						dataStr[i].en4periodical="";
709
					if (!dataStr[i].en4periodical) {
710
						dataStr[i].en4periodical = "";
694 711
					}
695
					if(!dataStr[i].pubDay){
696
						dataStr[i].pubDay="";
712
					if (!dataStr[i].pubDay) {
713
						dataStr[i].pubDay = "";
697 714
					}
698
					moreInf = dataStr[i].cn4periodical+ " " +dataStr[i].en4periodical+ " " +dataStr[i].pubDay
699
					
715
					moreInf = dataStr[i].cn4periodical + " " + dataStr[i].en4periodical + " " + dataStr[i].pubDay
716
700 717
					var strAdd = '';
701
						strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="/'+ pageUrl("pp",dataStr[i]) +'" class="flexCenter urlgo">';
702
						strAdd += '<div class="madiaHead paperHead"></div>';
703
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
704
						strAdd += '<p class="h2Font ellipsisSty">作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
705
						strAdd += '<p class="h2Font ellipsisSty">期刊:'+ moreInf +'</p>';
706
						strAdd += '</div>';
707
						strAdd += '</a>';
708
						strAdd += '<ul class="madiaEdit">'
709
						strAdd += '<li class="deloutPro" data-id="'+dataStr[i].id+'">取消关联</li>'
710
						strAdd += '</ul></li>'
711
					if(i < 3) {
718
					strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="/' + pageUrl("pp", dataStr[i]) + '" class="flexCenter urlgo">';
719
					strAdd += '<div class="madiaHead paperHead"></div>';
720
					strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
721
					strAdd += '<p class="h2Font ellipsisSty">作者:' + dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) + '</p>';
722
					strAdd += '<p class="h2Font ellipsisSty">期刊:' + moreInf + '</p>';
723
					strAdd += '</div>';
724
					strAdd += '</a>';
725
					strAdd += '<ul class="madiaEdit">'
726
					strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
727
					strAdd += '</ul></li>'
728
					if (i < 3) {
712 729
						$('#showPaper').append(strAdd)
713 730
					}
714
					$('#'+obj).append(strAdd)
731
					$('#' + obj).append(strAdd)
715 732
				}
716 733
			});
717 734
		},
718
		detailPro=function(obj, flag) {
719
			document.getElementById(obj).innerHTML=""
735
		detailPro = function (obj, flag) {
736
			document.getElementById(obj).innerHTML = ""
720 737
			var li;
721
			for(item in memberArr){
722
				oAjax("/ajax/professor/info/"+item, null, "get", function(data){memberArr[item]=data.data},function(){},function(){},false)
738
			for (item in memberArr) {
739
				oAjax("/ajax/professor/info/" + item, null, "get", function (data) {
740
					memberArr[item] = data.data
741
				}, function () {}, function () {}, false)
723 742
			}
724
			for(item in memberArr) {
725
				if (item!={}){
743
			for (item in memberArr) {
744
				if (item != {}) {
726 745
					var dataStr = memberArr[item]
727 746
					var dImg = "../images/default-photo.jpg"
728
					if (dataStr.hasHeadImage){
747
					if (dataStr.hasHeadImage) {
729 748
						dImg = "/images/head/" + dataStr.id + "_l.jpg"
730 749
					}
731
					var li2 = '',li4=""
750
					var li2 = '',
751
						li4 = ""
732 752
					var tatu;
733 753
					if (flag === 1) {
734
						if(chiefId===dataStr.id) {
754
						if (chiefId === dataStr.id) {
735 755
							li4 += '<li class="authTeamSta cancelTeamSta" style="cursor:pointer">首席专家</li>'
736
						}else{
737
							li4 +='<li class="setFirstPro" data-id="'+dataStr.id+'">设为首席专家</li>'
756
						} else {
757
							li4 += '<li class="setFirstPro" data-id="' + dataStr.id + '">设为首席专家</li>'
738 758
						}
739
						if(secretaryId===dataStr.id){
759
						if (secretaryId === dataStr.id) {
740 760
							li4 += '<li class="authTeamSta">团队秘书</li>'
741
						}else{
742
							li4 +='<li class="setAdmin" data-id="'+dataStr.id+'">设为团队秘书</li>'
743
							li4 += '<li class="deloutPro" data-id="'+dataStr.id+'">移出团队</li>'
761
						} else {
762
							li4 += '<li class="setAdmin" data-id="' + dataStr.id + '">设为团队秘书</li>'
763
							li4 += '<li class="deloutPro" data-id="' + dataStr.id + '">移出团队</li>'
744 764
						}
745
					}else{
746
						if(secretaryId===dataStr.id){
765
					} else {
766
						if (secretaryId === dataStr.id) {
747 767
							li2 += '<span>团队秘书</span>'
748 768
						}
749
						if(chiefId===dataStr.id) {
769
						if (chiefId === dataStr.id) {
750 770
							li2 += '<span>首席专家</span>'
751 771
						}
752 772
					}
753 773
					var title = dataStr.title || "";
754 774
					var orgName = dataStr.orgName || "";
755 775
					var office = dataStr.office || "";
756
					if(title != "") {
776
					if (title != "") {
757 777
						var ttitle = title + ",";
758
					}else{
759
						if(office!=""){
760
							var ttitle = office  + ",";	
761
						}else{
762
							var ttitle = office;	
778
					} else {
779
						if (office != "") {
780
							var ttitle = office + ",";
781
						} else {
782
							var ttitle = office;
763 783
						}
764 784
					}
765
					if(orgName != "") {
785
					if (orgName != "") {
766 786
						orgName = orgName;
767 787
					}
768 788
					var strAdd = '';
769
					strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="userInforShow.html?professorId='+ dataStr.id +'" class="flexCenter urlgo" style="min-height: 60px">';
789
					strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="userInforShow.html?professorId=' + dataStr.id + '" class="flexCenter urlgo" style="min-height: 60px">';
770 790
					strAdd += '<div class="madiaHead useHead" style="background-image:url(' + dImg + ')"></div>';
771
					strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr.name +'</p>';
772
					strAdd += '<p class="h2Font ellipsisSty">'+ttitle+orgName +'</p>';
791
					strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr.name + '</p>';
792
					strAdd += '<p class="h2Font ellipsisSty">' + ttitle + orgName + '</p>';
773 793
					strAdd += '</div>';
774
					strAdd += '<div class="tag-show">'+li2+'</div>'
794
					strAdd += '<div class="tag-show">' + li2 + '</div>'
775 795
					strAdd += '</a>';
776 796
					strAdd += '<ul class="madiaEdit">'
777 797
					strAdd += li4
778 798
					strAdd += '</ul></li>'
779
					console.log(chiefId)
780
					if(chiefId===dataStr.id) {
781
					
782
						$("#"+obj).prepend(strAdd)
799
					// console.log(chiefId)
800
					if (chiefId === dataStr.id) {
801
802
						$("#" + obj).prepend(strAdd)
783 803
					} else {
784
						$("#"+obj).append(strAdd)
804
						$("#" + obj).append(strAdd)
785 805
					}
786
					
787
					
806
807
788 808
				}
789 809
			}
790
	    },
791
		bindClickFun=function(){
810
		},
811
		bindClickFun = function () {
792 812
			//==== members model =====//
793
			$("#manageMembers").on("click", function(){
813
			$("#manageMembers").on("click", function () {
794 814
				$(".questionCover").fadeIn();
795 815
				$("body").css("position", "fixed");
816
817
				var btn = document.querySelector('#searchMe')
818
				var st = $('.steptit>a').attr('data-index')
819
				if (btn.value !== '' && st != 1) {
820
					//点击
821
					$('.steptit>a').first().trigger('click') // 自动触发点击事件返回到 tab第一项
822
				}
823
824
796 825
			})
797
			$("#workclose,#btnCancel").on("click",function(){
826
827
			$("#workclose,#btnCancel").on("click", function () {
798 828
				$(".questionCover").fadeOut();
799 829
				$("body").css("position", "");
800 830
				$('#teamMembers').html('')
801 831
				$('#expertli').html('')
802
				memberArr={}
832
				memberArr = {}
803 833
				pageNo = 1
804 834
				professorListVal(true)
805 835
			})
806
			$('.queStep').on('click', '.steptit>a', function(){
836
837
			$('.queStep').on('click', '.steptit>a', function () { // a 表钱tab切换
807 838
				$('.queStep .steptit>a').removeClass('active')
808 839
				$(this).addClass('active')
809 840
				var st = $(this).attr("data-index")
810 841
				$('.queStep .quemain .artAbout').addClass('displayNone')
811 842
				$('.queStep .quemain .artAbout').eq(st).removeClass('displayNone')
812 843
				if (st === '0') {
813
					memberArr={}
844
					memberArr = {}
814 845
					$('#teamMembers').html('')
815 846
					pageNo = 1
816 847
					professorListVal(true, true)
817
				} else if(st === '1'){
848
				} else if (st === '1') {
818 849
					$('#searchMembers').html('')
819 850
					$('#searchMe').val('')
820 851
					searchProfessor()
821 852
				}
822 853
			})
823
			$('.queStep').on('click', '.searchSpan', function(){
854
855
			$('.queStep').on('click', '.searchSpan', function () {
824 856
				searchProfessor()
825 857
			})
826
			$('.queStep').on('click', '.addThis',function(e) {
858
			$('.queStep').on('click', '.addThis', function (e) {
827 859
				var _this = this
828 860
				var fl = $(this).attr("data-flag")
829 861
				if (fl === '1') {
@ -831,81 +863,81 @@ $(function() {
831 863
					oAjax("/ajax/team/insertPro", {
832 864
						id: tId,
833 865
						professor: pid
834
					}, "post", function(data){
866
					}, "post", function (data) {
835 867
						$(_this).addClass("added").text("已添加")
836 868
						$(_this).attr("data-flag", '0')
837 869
					})
838 870
				}
839 871
				e.stopPropagation()
840 872
			})
841
			$('.queStep').on('click', '.setAdmin',function() {
873
			$('.queStep').on('click', '.setAdmin', function () {
842 874
				var pid = $(this).attr("data-id")
843
				$.MsgBox.Confirm("提示", "此操作会退出登录,您将是去对该团队的管理权,确认设置团队秘书?", function(){
875
				$.MsgBox.Confirm("提示", "此操作会退出登录,您将是去对该团队的管理权,确认设置团队秘书?", function () {
844 876
					oAjax("/ajax/team/secretary", {
845 877
						id: tId,
846 878
						professor: pid
847
					}, "post", function(data){
848
						if (data.success){
879
					}, "post", function (data) {
880
						if (data.success) {
849 881
							exit()
850 882
							location.href = "index.html"
851 883
						}
852 884
					})
853 885
				});
854 886
			})
855
			$('.queStep').on('click', '.setFirstPro',function() {
887
			$('.queStep').on('click', '.setFirstPro', function () {
856 888
				var pid = $(this).attr("data-id")
857
				$.MsgBox.Confirm("提示", "此操作会取消原有首席专家,确认设置首席专家?", function(){
889
				$.MsgBox.Confirm("提示", "此操作会取消原有首席专家,确认设置首席专家?", function () {
858 890
					oAjax("/ajax/team/chief", {
859 891
						id: tId,
860 892
						newPro: pid
861
					}, "post", function(data){
893
					}, "post", function (data) {
862 894
						if (data.success) {
863
							memberArr={}
895
							memberArr = {}
864 896
							$('#teamMembers').html('')
865 897
							pageNo = 1
866
							secretaryId=''
867
							chiefId=''
898
							secretaryId = ''
899
							chiefId = ''
868 900
							professorListVal(true, true)
869 901
						}
870 902
					})
871 903
				});
872 904
			})
873
			$('.queStep').on('mouseenter', ".cancelTeamSta", function(e) {
905
			$('.queStep').on('mouseenter', ".cancelTeamSta", function (e) {
874 906
				$(this).removeClass('authTeamSta').text('取消首席身份')
875 907
			})
876
			$('.queStep').on('mouseleave', ".cancelTeamSta", function(e) {
908
			$('.queStep').on('mouseleave', ".cancelTeamSta", function (e) {
877 909
				$(this).addClass('authTeamSta').text('首席专家')
878 910
			})
879
			$('.queStep').on('click', '.cancelTeamSta',function() {
880
				$.MsgBox.Confirm("提示", "确认取消首席专家?", function(){
911
			$('.queStep').on('click', '.cancelTeamSta', function () {
912
				$.MsgBox.Confirm("提示", "确认取消首席专家?", function () {
881 913
					oAjax("/ajax/team/chief", {
882 914
						id: tId,
883 915
						newPro: ''
884
					}, "post", function(data){
916
					}, "post", function (data) {
885 917
						if (data.success) {
886
							memberArr={}
918
							memberArr = {}
887 919
							$('#teamMembers').html('')
888 920
							pageNo = 1
889
							secretaryId=''
890
							chiefId=''
921
							secretaryId = ''
922
							chiefId = ''
891 923
							professorListVal(true, true)
892 924
						}
893 925
					})
894 926
				});
895 927
			})
896
			$('.queStep').on('click', '.deloutPro',function() {
928
			$('.queStep').on('click', '.deloutPro', function () {
897 929
				var pid = $(this).attr("data-id")
898
				$.MsgBox.Confirm("提示", "确定将该成员移出团队?", function(){
930
				$.MsgBox.Confirm("提示", "确定将该成员移出团队?", function () {
899 931
					oAjax("/ajax/team/deletePro", {
900 932
						id: tId,
901 933
						professor: pid
902
					}, "post", function(data){
903
						if(data.success){
904
							memberArr={}
934
					}, "post", function (data) {
935
						if (data.success) {
936
							memberArr = {}
905 937
							$('#teamMembers').html('')
906 938
							pageNo = 1
907
							secretaryId=''
908
							chiefId=''
939
							secretaryId = ''
940
							chiefId = ''
909 941
							professorListVal(true, true)
910 942
						}
911 943
					})
@ -913,23 +945,23 @@ $(function() {
913 945
			})
914 946
			//==== members model =====//
915 947
916
			$("#updateTeam").on('click', function() {
917
				location.href="updateTeam.html?id=" + tId
948
			$("#updateTeam").on('click', function () {
949
				location.href = "updateTeam.html?id=" + tId
918 950
			});
919
			$("#delTeam").on('click', function() {
920
				$.MsgBox.Confirm("提示", "确定删除该团队?", function(){
951
			$("#delTeam").on('click', function () {
952
				$.MsgBox.Confirm("提示", "确定删除该团队?", function () {
921 953
					oAjax("/ajax/team/delete", {
922 954
						id: tId
923
					}, "post", function(data){
924
						if(data.success){
925
							location.href="teamList.html"
955
					}, "post", function (data) {
956
						if (data.success) {
957
							location.href = "teamList.html"
926 958
						}
927 959
					})
928 960
				});
929 961
			});
930 962
931 963
			//==== paper =====//
932
			$('#item5user').on('click', '.steptit>a', function(){
964
			$('#item5user').on('click', '.steptit>a', function () {
933 965
				console.log(124)
934 966
				$('#item5user .steptit>a').removeClass('active')
935 967
				$(this).addClass('active')
@ -937,20 +969,20 @@ $(function() {
937 969
				$('#item5user>.otherShow>.aboutRes').addClass('displayNone')
938 970
				$('#item5user>.otherShow>.aboutRes').eq(st).removeClass('displayNone')
939 971
				if (st === '0') {
940
					paperArr=[]
972
					paperArr = []
941 973
					$('#proPaper').html('')
942 974
					pagePerNo = 1
943 975
					paperListVal(true)
944
				} else if(st === '1'){
976
				} else if (st === '1') {
945 977
					$('#searchPaper').html('')
946 978
					$('#searchPaperKey').val('')
947 979
					searchPaper()
948 980
				}
949 981
			})
950
			$('#item5user').on('click', '.searchSpan', function(){
982
			$('#item5user').on('click', '.searchSpan', function () {
951 983
				searchPaper()
952 984
			})
953
			$('#item5user').on('click', 'li.addThis',function() {
985
			$('#item5user').on('click', 'li.addThis', function () {
954 986
				var _this = this
955 987
				var fl = $(this).attr("data-flag")
956 988
				if (fl === '1') {
@ -958,21 +990,21 @@ $(function() {
958 990
					oAjax("/ajax/team/insertPaper", {
959 991
						id: tId,
960 992
						paper: pid
961
					}, "post", function(data){
993
					}, "post", function (data) {
962 994
						$(_this).addClass("added").text("已添加")
963 995
						$(_this).attr("data-flag", '0')
964 996
					})
965 997
				}
966 998
			})
967
			$('#item5user,#showPaper').on('click', '.deloutPro',function() {
999
			$('#item5user,#showPaper').on('click', '.deloutPro', function () {
968 1000
				var pid = $(this).attr("data-id")
969
				$.MsgBox.Confirm("提示", "确定取消关联该论文?", function(){
1001
				$.MsgBox.Confirm("提示", "确定取消关联该论文?", function () {
970 1002
					oAjax("/ajax/team/deletePaper", {
971 1003
						id: tId,
972 1004
						paper: pid
973
					}, "post", function(data){
974
						if(data.success){
975
							paperArr=[]
1005
					}, "post", function (data) {
1006
						if (data.success) {
1007
							paperArr = []
976 1008
							$('#proPaper').html('')
977 1009
							pagePerNo = 1
978 1010
							paperListVal(true)
@ -983,27 +1015,28 @@ $(function() {
983 1015
			//==== paper =====//
984 1016
985 1017
			//==== patent =====//
986
			$('#item6drop2').on('click', '.steptit>a', function(){
1018
			$('#item6drop2').on('click', '.steptit>a', function () {
987 1019
				$('#item6drop2 .steptit>a').removeClass('active')
988 1020
				$(this).addClass('active')
989 1021
				var st = $(this).attr("data-index")
990 1022
				$('#item6drop2 .aboutRes').addClass('displayNone')
991 1023
				$('#item6drop2 .aboutRes').eq(st).removeClass('displayNone')
992 1024
				if (st === '0') {
993
					patentArr=[]
1025
					patentArr = []
994 1026
					$('#proPatent').html('')
995 1027
					pagePerNo = 1
996 1028
					patentListVal(true)
997
				} else if(st === '1'){
1029
				} else if (st === '1') {
998 1030
					$('#searchPatent').html('')
999 1031
					$('#searchPatentKey').val('')
1032
					$('#searchPatentKey').val(null)
1000 1033
					searchPatent()
1001 1034
				}
1002 1035
			})
1003
			$('#item6drop2').on('click', '.searchSpan', function(){
1036
			$('#item6drop2').on('click', '.searchSpan', function () {
1004 1037
				searchPatent()
1005 1038
			})
1006
			$('#item6drop2').on('click', 'li.addThis',function() {
1039
			$('#item6drop2').on('click', 'li.addThis', function () {
1007 1040
				var _this = this
1008 1041
				var fl = $(this).attr("data-flag")
1009 1042
				if (fl === '1') {
@ -1011,21 +1044,21 @@ $(function() {
1011 1044
					oAjax("/ajax/team/insertPatent", {
1012 1045
						id: tId,
1013 1046
						patent: pid
1014
					}, "post", function(data){
1047
					}, "post", function (data) {
1015 1048
						$(_this).addClass("added").text("已添加")
1016 1049
						$(_this).attr("data-flag", '0')
1017 1050
					})
1018 1051
				}
1019 1052
			})
1020
			$('#item6drop2,#showPatent').on('click', '.deloutPro',function() {
1053
			$('#item6drop2,#showPatent').on('click', '.deloutPro', function () {
1021 1054
				var pid = $(this).attr("data-id")
1022
				$.MsgBox.Confirm("提示", "确定取消关联该专利成果?", function(){
1055
				$.MsgBox.Confirm("提示", "确定取消关联该专利成果?", function () {
1023 1056
					oAjax("/ajax/team/deletePatent", {
1024 1057
						id: tId,
1025 1058
						patent: pid
1026
					}, "post", function(data){
1027
						if(data.success){
1028
							patentArr=[]
1059
					}, "post", function (data) {
1060
						if (data.success) {
1061
							patentArr = []
1029 1062
							$('#proPatent').html('')
1030 1063
							pagePerNo = 1
1031 1064
							patentListVal(true)
@ -1036,27 +1069,27 @@ $(function() {
1036 1069
			//==== patent =====//
1037 1070
1038 1071
			//==== unpatent =====//
1039
			$('#item6drop1').on('click', '.steptit>a', function(){
1072
			$('#item6drop1').on('click', '.steptit>a', function () {
1040 1073
				$('#item6drop1 .steptit>a').removeClass('active')
1041 1074
				$(this).addClass('active')
1042 1075
				var st = $(this).attr("data-index")
1043 1076
				$('#item6drop1 .aboutRes').addClass('displayNone')
1044 1077
				$('#item6drop1 .aboutRes').eq(st).removeClass('displayNone')
1045 1078
				if (st === '0') {
1046
					unpatentArr=[]
1079
					unpatentArr = []
1047 1080
					$('#proUnPatent').html('')
1048 1081
					pagePerNo = 1
1049 1082
					unpatentListVal(true)
1050
				} else if(st === '1'){
1083
				} else if (st === '1') {
1051 1084
					$('#searchUnPatent').html('')
1052 1085
					$('#searchUnPatentKey').val('')
1053 1086
					searchUnPatent()
1054 1087
				}
1055 1088
			})
1056
			$('#item6drop1').on('click', '.searchSpan', function(){
1089
			$('#item6drop1').on('click', '.searchSpan', function () {
1057 1090
				searchUnPatent()
1058 1091
			})
1059
			$('#item6drop1').on('click', 'li.addThis',function() {
1092
			$('#item6drop1').on('click', 'li.addThis', function () {
1060 1093
				var _this = this
1061 1094
				var fl = $(this).attr("data-flag")
1062 1095
				if (fl === '1') {
@ -1064,21 +1097,21 @@ $(function() {
1064 1097
					oAjax("/ajax/team/insertResResult", {
1065 1098
						id: tId,
1066 1099
						researchResult: pid
1067
					}, "post", function(data){
1100
					}, "post", function (data) {
1068 1101
						$(_this).addClass("added").text("已添加")
1069 1102
						$(_this).attr("data-flag", '0')
1070 1103
					})
1071 1104
				}
1072 1105
			})
1073
			$('#item6drop1,#showUnPatent').on('click', '.deloutPro',function() {
1106
			$('#item6drop1,#showUnPatent').on('click', '.deloutPro', function () {
1074 1107
				var pid = $(this).attr("data-id")
1075
				$.MsgBox.Confirm("提示", "确定取消关联该非专利成果?", function(){
1108
				$.MsgBox.Confirm("提示", "确定取消关联该非专利成果?", function () {
1076 1109
					oAjax("/ajax/team/deleteResResult", {
1077 1110
						id: tId,
1078 1111
						researchResult: pid
1079
					}, "post", function(data){
1080
						if(data.success){
1081
							unpatentArr=[]
1112
					}, "post", function (data) {
1113
						if (data.success) {
1114
							unpatentArr = []
1082 1115
							$('#proUnPatent').html('')
1083 1116
							pagePerNo = 1
1084 1117
							unpatentListVal(true)
@ -1087,24 +1120,24 @@ $(function() {
1087 1120
				});
1088 1121
			})
1089 1122
			//==== unpatent =====//
1090
			$('#seeMoreF,#seeMoreZ').unbind("click").on("click",function(){
1123
			$('#seeMoreF,#seeMoreZ').unbind("click").on("click", function () {
1091 1124
				$(".leftconItem").hide();
1092 1125
				var activeTab = $('#item6user').attr("rel");
1093 1126
				$("#item6user").show()
1094 1127
				$("ul.mainNavUl li").removeClass("liNow");
1095 1128
				$('#tab6user').addClass("liNow");
1096 1129
				$(".moreNav").hide();
1097
				
1098
				var pa=$(".moreNavUl.wendaUl>li.liNow").attr("rel")
1099
				$("#"+pa).find("ul").html("")
1100
				$("#"+pa).find(".js-load-more").show();
1101
				
1130
1131
				var pa = $(".moreNavUl.wendaUl>li.liNow").attr("rel")
1132
				$("#" + pa).find("ul").html("")
1133
				$("#" + pa).find(".js-load-more").show();
1134
1102 1135
				$(".wendaNav li").eq(0).addClass("liNow").siblings().removeClass("liNow");
1103 1136
				$("#item6drop1").show()
1104 1137
				$("#item6more").show()
1105 1138
				unpatentListVal(true);
1106 1139
			})
1107
			$('#seeMoreL').unbind("click").on("click",function(){
1140
			$('#seeMoreL').unbind("click").on("click", function () {
1108 1141
				$(".leftconItem").hide();
1109 1142
				var activeTab = $('#item5user').attr("rel");
1110 1143
				$("#item5user").show()
@ -1112,27 +1145,27 @@ $(function() {
1112 1145
				$('#tab5user').addClass("liNow");
1113 1146
				$(".moreNav").hide();
1114 1147
			})
1115
			$("#tab6user").unbind("click").on("click",function(){
1116
				var pa=$(".moreNavUl.wendaUl>li.liNow").attr("rel")
1117
				$("#"+pa).find("ul").html("")
1118
				$("#"+pa).find(".js-load-more").show();
1119
				
1148
			$("#tab6user").unbind("click").on("click", function () {
1149
				var pa = $(".moreNavUl.wendaUl>li.liNow").attr("rel")
1150
				$("#" + pa).find("ul").html("")
1151
				$("#" + pa).find(".js-load-more").show();
1152
1120 1153
				$(".wendaNav li").eq(0).addClass("liNow").siblings().removeClass("liNow");
1121 1154
				$("#item6drop1").show().siblings().hide();
1122 1155
				unpatentListVal(true);
1123 1156
			})
1124
			$(".moreNavUl.wendaUl").on("click","li",function(){
1125
				var pa=$(this).attr("rel")
1126
				$("#"+pa).find("ul").html("")
1127
				$("#"+pa).find(".js-load-more").show();
1128
				var sortN=$(this).attr("data-num");
1129
				if(sortN==1){
1157
			$(".moreNavUl.wendaUl").on("click", "li", function () {
1158
				var pa = $(this).attr("rel")
1159
				$("#" + pa).find("ul").html("")
1160
				$("#" + pa).find(".js-load-more").show();
1161
				var sortN = $(this).attr("data-num");
1162
				if (sortN == 1) {
1130 1163
					unpatentListVal(true);
1131
				}else if(sortN==2){
1164
				} else if (sortN == 2) {
1132 1165
					patentListVal(true);
1133 1166
				}
1134 1167
			})
1135
			
1168
1136 1169
		}
1137 1170
1138 1171
	getUserInfo();
@ -1140,6 +1173,5 @@ $(function() {
1140 1173
	unpatentListVal(true);
1141 1174
	patentListVal(true);
1142 1175
	paperListVal(true);
1143
	bindClickFun();	
1144
})
1145
1176
	bindClickFun();
1177
})

+ 194 - 169
js/tidings.js

@ -1,4 +1,4 @@
1
$(document).ready(function() {
1
$(document).ready(function () {
2 2
	$(".onlogin .headnavbtn li.mymessage").addClass("navcurrent");
3 3

4 4
	loginStatus(); //判断个人是否登录
@ -13,27 +13,28 @@ $(document).ready(function() {
13 13
	});
14 14

15 15
	var userid = $.cookie("userid");
16
	if(userid=='null') {
17
		location.href="login.html";
16
	if (userid == 'null') {
17
		location.href = "login.html";
18 18
	}
19

19 20
	function websocrket() {
20 21
		var ws = new WebSocket("ws://192.168.3.233:8081/portal/websocket/msg?id=" + userid + "&pm=www");
21
		ws.onopen = function() {
22
			console.log(userid);
22
		ws.onopen = function () {
23
			// console.log(userid);
23 24
		};
24
		ws.onmessage = function(a) {
25
		ws.onmessage = function (a) {
25 26
			var fol = true;
26 27
			var $info = JSON.parse(a.data);
27
			for(var i = 0; i < $(".list_body").find('.list_item').length; i++) {
28
				if($(".list_body").find('.list_item').eq(i).attr('data-id') == $info.sender) {
28
			for (var i = 0; i < $(".list_body").find('.list_item').length; i++) {
29
				if ($(".list_body").find('.list_item').eq(i).attr('data-id') == $info.sender) {
29 30
					fol = false;
30
					$(".list_body").find('.list_item .last_news').eq(i).html(($info.cnt).replace(/\n/g,"<br />"));
31
					$(".list_body").find('.list_item .last_news').eq(i).html(($info.cnt).replace(/\n/g, "<br />"));
31 32
					$(".list_body").find('.list_item .time').eq(i).text(commenTime($info.sendTime));
32
					if($('.chat_content_nodata').css('display') == "none") {
33
						if($(".list_body").find('.list_item .user_name').eq(i).text() == $(".usepro .user_name").text()) {
33
					if ($('.chat_content_nodata').css('display') == "none") {
34
						if ($(".list_body").find('.list_item .user_name').eq(i).text() == $(".usepro .user_name").text()) {
34 35
							setRead($info.sender, $info.sendTime);
35 36
							var time1 = $(".chat_body_list").find(".time").last().attr("data-createtime");
36
							if(time1) {
37
							if (time1) {
37 38
								var str1 = '<span class="time" data-createtime="' + $info.sendTime + '">' + compareTime(time1, $info.sendTime) + '</span>'
38 39
							} else {
39 40
								var str1 = '<span class="time" data-createtime="' + $info.sendTime + '">' + anTime($info.sendTime) + '</span>'
@ -46,7 +47,7 @@ $(document).ready(function() {
46 47
								'</div>' +
47 48
								'<div class="item_content fl">' +
48 49
								'<em class="is_readed"></em>' +
49
								'<div class="bubble message C_end">' + ($info.cnt).replace(/\n/g,"<br />") + '</div>' +
50
								'<div class="bubble message C_end">' + ($info.cnt).replace(/\n/g, "<br />") + '</div>' +
50 51
								'</div>' +
51 52
								'</div>' +
52 53
								'</div>'
@ -56,16 +57,16 @@ $(document).ready(function() {
56 57
						} else {
57 58
							var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
58 59
							$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
59
							$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
60
							$('.mymessage .badge').text(Number($('.mymessage .badge').text()) + 1)
60 61
							getTotalMessage()
61 62
						}
62 63
					} else {
63 64
						var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
64 65
						$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
65
						$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
66
						$('.mymessage .badge').text(Number($('.mymessage .badge').text()) + 1)
66 67
						getTotalMessage()
67 68
					}
68
					if(i > 0)
69
					if (i > 0)
69 70
						$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"));
70 71

71 72
				} else {
@ -73,7 +74,7 @@ $(document).ready(function() {
73 74
				}
74 75

75 76
			}
76
			if(fol) {
77
			if (fol) {
77 78
				var ostr = '<div class="list_item clearfix active" data-id="' + $info.sender + '">' +
78 79
					'<i class="close_icon"></i>' +
79 80
					'<div class="avatar fl">' +
@ -84,53 +85,54 @@ $(document).ready(function() {
84 85
					'<div class="user_infos">' +
85 86
					'<span class="user_name"> </span><em class="authiconNew"></em>' +
86 87
					'</div>' +
87
					'<span class="time">' + commenTime($info.sendTime) + '</span><span class="last_news">' + ($info.cnt).replace(/\n/g,"<br />") + '</span>' +
88
					'<span class="time">' + commenTime($info.sendTime) + '</span><span class="last_news">' + ($info.cnt).replace(/\n/g, "<br />") + '</span>' +
88 89
					'</div>' +
89 90
					'</div>'
90 91
				var $str = $(ostr);
91 92
				$(".list_body").prepend($str);
92 93
				personMess($info.sender, $str.find('img'), $str.find(".user_name"), $str.find(".authiconNew"));
93
				
94
						$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
95
						getTotalMessage()
94

95
				$('.mymessage .badge').text(Number($('.mymessage .badge').text()) + 1)
96
				getTotalMessage()
96 97
			}
97 98
		};
98
		ws.onclose = function() {
99
		ws.onclose = function () {
99 100

100 101
		}
101 102
	}
102 103
	getPlatTotal()
104

103 105
	function getPlatTotal() {
104 106
		$.ajax({
105
		  url: "/ajax/platform/msg/unread",
106
		  type: "GET",
107
		  timeout: 10000,
108
		  dataType: "json",
109
		  traditional:true,
110
		  data:{
111
			  provider: userid
112
		  },
113
		  success: function(data) {
114
			  if(data.success) {
115
				if(data.data) {
116
				  $('.mesTotal').text('('+data.data+')');  
117
				}                        
118
			  }
119
		  },
120
		  error: function() {
121
			  $.MsgBox.Alert('提示', '链接服务器超时')
122
		  }
123
	  })
124
	  }
125
	if(professorId) {
107
			url: "/ajax/platform/msg/unread",
108
			type: "GET",
109
			timeout: 10000,
110
			dataType: "json",
111
			traditional: true,
112
			data: {
113
				provider: userid
114
			},
115
			success: function (data) {
116
				if (data.success) {
117
					if (data.data) {
118
						$('.mesTotal').text('(' + data.data + ')');
119
					}
120
				}
121
			},
122
			error: function () {
123
				$.MsgBox.Alert('提示', '链接服务器超时')
124
			}
125
		})
126
	}
127
	if (professorId) {
126 128
		firstFlag = 1;
127 129
		$(".chat_content_nodata").hide();
128 130
		$(".chat_content").show();
129 131
		angleMessageList(professorId);
130 132
		persons(professorId)
131
	}else{
133
	} else {
132 134
		myMessageList()
133
		
135

134 136
	}
135 137

136 138
	/*消息内容*/
@ -144,17 +146,17 @@ $(document).ready(function() {
144 146
				reciver: userid,
145 147
				both: true
146 148
			},
147
			"success": function(data) {
148
				console.log(data)
149
				if(data.success) {
149
			"success": function (data) {
150
				// console.log(data)
151
				if (data.success) {
150 152
					$(".chat_body_list").html("")
151 153
					var $data = data.data;
152
					if($data.length) {
153
						if(arguments[1]) {
154
					if ($data.length) {
155
						if (arguments[1]) {
154 156
							setRead(opId, $data[$data.length - 1].sendTime)
155 157
							getTotalMessage();
156 158
						}
157
						if(firstFlag==1) {
159
						if (firstFlag == 1) {
158 160
							var ostr1 = '<div class="list_item clearfix active" data-id="' + professorId + '">' +
159 161
								'<i class="close_icon"></i>' +
160 162
								'<div class="avatar fl">' +
@ -165,34 +167,34 @@ $(document).ready(function() {
165 167
								'<div class="user_infos">' +
166 168
								'<span class="user_name"> </span><em class="authiconNew"></em>' +
167 169
								'</div>' +
168
								'<span class="time">' + commenTime($data[$data.length-1].sendTime) + '</span><span class="last_news">'+$data[$data.length-1].cnt.replace(/\n/g,"<br />")+'</span>' +
170
								'<span class="time">' + commenTime($data[$data.length - 1].sendTime) + '</span><span class="last_news">' + $data[$data.length - 1].cnt.replace(/\n/g, "<br />") + '</span>' +
169 171
								'</div>' +
170 172
								'</div>'
171 173
							var $str1 = $(ostr1);
172 174
							$(".list_body").prepend($str1);
173 175
							personMess(professorId, $str1.find('img'), $str1.find(".user_name"), $str1.find(".authiconNew"));
174
							var m=0;
175
							for(var j=0;j<$data.length;j++) {
176
								if(professorId==$data[j].sender) {
177
									m=m+1;
176
							var m = 0;
177
							for (var j = 0; j < $data.length; j++) {
178
								if (professorId == $data[j].sender) {
179
									m = m + 1;
178 180
								}
179 181
							}
180
							if(m==0) {
181
								setRead(professorId, $data[$data.length-1].sendTime)
182
							if (m == 0) {
183
								setRead(professorId, $data[$data.length - 1].sendTime)
182 184
							}
183 185
							myMessageList();
184 186
						}
185 187
						firstFlag = 0;
186
						for(var i = 0; i < $data.length; i++) {
188
						for (var i = 0; i < $data.length; i++) {
187 189
							var le = "";
188 190
							var flo = 'fl';
189 191
							var wei = "";
190 192
							var fCo = "C_end";
191 193
							var timeG = '';
192
							if(userid == $data[i].sender) {
194
							if (userid == $data[i].sender) {
193 195
								le = "me";
194 196
								flo = "fr";
195
								if($data[i].readed) {
197
								if ($data[i].readed) {
196 198
									wei = '<em class="is_readed"></em>';
197 199
								} else {
198 200
									wei = '<em class="is_readed"></em>';
@ -200,7 +202,7 @@ $(document).ready(function() {
200 202

201 203
								fCo = "B_end";
202 204
							}
203
							if(i == 0) {
205
							if (i == 0) {
204 206
								timeG = anTime($data[i].sendTime);
205 207
							} else {
206 208
								timeG = compareTime($data[i - 1].sendTime, $data[i].sendTime)
@ -213,7 +215,7 @@ $(document).ready(function() {
213 215
								'</div>' +
214 216
								'<div class="item_content ' + flo + '">' +
215 217
								wei +
216
								'<div class="bubble message ' + fCo + '">' + ($data[i].cnt).replace(/\n/g,"<br />") + '</div>' +
218
								'<div class="bubble message ' + fCo + '">' + ($data[i].cnt).replace(/\n/g, "<br />") + '</div>' +
217 219
								'</div>' +
218 220
								'</div>' +
219 221
								'</div>'
@ -224,7 +226,7 @@ $(document).ready(function() {
224 226
						$(".chat_body.clearfix").getNiceScroll(0).doScrollTop($(".chat_body_list").height(), 100)
225 227

226 228
					} else {
227
						if(firstFlag) {
229
						if (firstFlag) {
228 230
							firstFlag = 0;
229 231
							var ostr = '<div class="list_item clearfix active" data-id="' + professorId + '">' +
230 232
								'<i class="close_icon"></i>' +
@ -246,10 +248,10 @@ $(document).ready(function() {
246 248
							$(".chat_content").show();
247 249
							myMessageList();
248 250
						}
249
					}			
251
					}
250 252
				}
251 253
			},
252
			"error": function() {
254
			"error": function () {
253 255
				$.MsgBox.Alert('提示', '服务器连接超时');
254 256
			}
255 257
		});
@ -265,32 +267,37 @@ $(document).ready(function() {
265 267
				/*pageSize: 1,
266 268
				pageNo: pageNum*/
267 269
			},
268
			"success": function(data) {
269
				if(data.success) {
270
			"success": function (data) {
271
				if (data.success) {
270 272
					var $data = data.data;
271 273
					/*if(pageNum != data.data.pageNo) {
272 274
						pa = false;
273 275
						return;
274 276
					}*/
275
					if($data.length) {
277
					if ($data.length) {
276 278
						fillHtml($data);
277 279
					} else {
278 280
						return;
279 281
					}
280 282
				}
281 283
			},
282
			"error": function() {
284
			"error": function () {
283 285
				$.MsgBox.Alert('提示', '服务器连接超时');
284 286
			}
285 287
		});
286 288
	}
287 289
	/*填充页面*/
290

288 291
	function fillHtml($data) {
289
		for(var i in $data) {
292
		for (var i in $data) {
290 293
			var num = "none"
291
			if($data[i].num) {
294
			var cNumber = $data[i].num;
295
			if ($data[i].num) {
292 296
				num = "block";
293 297
			}
298
			//这里
299
			cNumber = $data[0].num
300

294 301
			var ostr = '<div class="list_item clearfix" data-id="' + $data[i].id + '">' +
295 302
				'<i class="close_icon"></i>' +
296 303
				'<div class="avatar fl">' +
@ -301,13 +308,13 @@ $(document).ready(function() {
301 308
				'<div class="user_infos">' +
302 309
				'<span class="user_name"> </span><em class="authiconNew"></em>' +
303 310
				'</div>' +
304
				'<span class="time">' + commenTime($data[i].timeStr) + '</span><span class="last_news">' + ($data[i].cnt).replace(/\n/g,"<br />") + '</span>' +
311
				'<span class="time">' + commenTime($data[i].timeStr) + '</span><span class="last_news">' + ($data[i].cnt).replace(/\n/g, "<br />") + '</span>' +
305 312
				'</div>' +
306 313
				'</div>'
307 314
			var $str = $(ostr);
308
			if(professorId) {
309
				if(professorId == $data[i].id) {
310
					
315
			if (professorId) {
316
				if (professorId == $data[i].id) {
317

311 318
				} else {
312 319
					$(".list_body").append($str);
313 320
				}
@ -315,12 +322,18 @@ $(document).ready(function() {
315 322
			} else {
316 323
				$(".list_body").append($str);
317 324
			}
318
		
325

319 326
			personMess($data[i].id, $str.find('img'), $str.find(".user_name"), $str.find(".authiconNew"));
320 327
		}
321 328
		$(".list_body").getNiceScroll().hide().show().resize();
322 329
		websocrket();
330
		$('.mymessage .badge').text(cNumber); //渲染header头部 消息数量
331
		if ($('.mymessage .badge').text() == 0) {   //如果0条信息 隐藏
332
			$('.mymessage .badge').css('display', 'none')
333
		}
323 334
	}
335

336

324 337
	//专家信息
325 338
	function personMess(id, pImg, pName, pTitle) {
326 339
		$.ajax({
@ -328,40 +341,40 @@ $(document).ready(function() {
328 341
			"type": "GET",
329 342
			"traditional": true,
330 343
			"dataType": "json",
331
			"success": function(data) {
332
				if(data.success) {
333
					console.log(data);
344
			"success": function (data) {
345
				if (data.success) {
346
					// console.log(data);
334 347
					var $data = data.data;
335 348
					var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
336 349
					pTitle.attr("title", userType.title).addClass(userType.sty);
337 350
					pName.text($data.name);
338
					if($data.hasHeadImage) {
351
					if ($data.hasHeadImage) {
339 352
						pImg.attr("src", "/images/head/" + $data.id + "_l.jpg");
340 353
					}
341 354
					var str = '';
342
					if($data.title) {
343
						if($data.orgName) {
344
							if($data.office) {
355
					if ($data.title) {
356
						if ($data.orgName) {
357
							if ($data.office) {
345 358
								str = $data.title + " " + $data.orgName + "," + $data.office;
346 359
							} else {
347 360
								str = $data.title + " " + $data.orgName;
348 361
							}
349 362
						} else {
350
							if($data.office) {
363
							if ($data.office) {
351 364
								str = $data.title + " " + $data.office;
352 365
							} else {
353 366
								str = $data.title;
354 367
							}
355 368
						}
356 369
					} else {
357
						if($data.orgName) {
358
							if($data.office) {
370
						if ($data.orgName) {
371
							if ($data.office) {
359 372
								str = $data.orgName + "," + $data.office;
360 373
							} else {
361 374
								str = $data.orgName;
362 375
							}
363 376
						} else {
364
							if($data.office) {
377
							if ($data.office) {
365 378
								str = $data.office;
366 379
							}
367 380
						}
@ -375,7 +388,7 @@ $(document).ready(function() {
375 388
					pImg.parents(".list_item").attr("data", JSON.stringify(oMess))
376 389
				}
377 390
			},
378
			"error": function() {
391
			"error": function () {
379 392
				$.MsgBox.Alert('提示', '服务器连接超时');
380 393
			}
381 394
		});
@ -387,8 +400,8 @@ $(document).ready(function() {
387 400
			"type": "GET",
388 401
			"traditional": true,
389 402
			"dataType": "json",
390
			"success": function(data) {
391
				if(data.success) {
403
			"success": function (data) {
404
				if (data.success) {
392 405
					console.log(data);
393 406
					var $data = data.data;
394 407
					var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
@ -396,29 +409,29 @@ $(document).ready(function() {
396 409
					$(".usepro").find('.user_name').text($data.name);
397 410
					$("#cUserPage").attr("href", "userInforShow.html?professorId=" + $data.id)
398 411
					var str = '';
399
					if($data.title) {
400
						if($data.orgName) {
401
							if($data.office) {
412
					if ($data.title) {
413
						if ($data.orgName) {
414
							if ($data.office) {
402 415
								str = $data.title + " " + $data.orgName + "," + $data.office;
403 416
							} else {
404 417
								str = $data.title + " " + $data.orgName;
405 418
							}
406 419
						} else {
407
							if($data.office) {
420
							if ($data.office) {
408 421
								str = $data.title + " " + $data.office;
409 422
							} else {
410 423
								str = $data.title;
411 424
							}
412 425
						}
413 426
					} else {
414
						if($data.orgName) {
415
							if($data.office) {
427
						if ($data.orgName) {
428
							if ($data.office) {
416 429
								str = $data.orgName + "," + $data.office;
417 430
							} else {
418 431
								str = $data.orgName;
419 432
							}
420 433
						} else {
421
							if($data.office) {
434
							if ($data.office) {
422 435
								str = $data.office;
423 436
							}
424 437
						}
@ -427,7 +440,7 @@ $(document).ready(function() {
427 440

428 441
				}
429 442
			},
430
			"error": function() {
443
			"error": function () {
431 444
				$.MsgBox.Alert('提示', '服务器连接超时');
432 445
			}
433 446
		});
@ -444,12 +457,12 @@ $(document).ready(function() {
444 457
				cnt: $(".messContent").val()
445 458
			},
446 459
			"dataType": "json",
447
			"success": function(data) {
448
				if(data.success) {
460
			"success": function (data) {
461
				if (data.success) {
449 462
					console.log(data);
450 463
					$(".btnModel").attr("disabled", "disabled");
451 464
					var time1 = $(".chat_body_list").find(".time").last().attr("data-createtime");
452
					if(time1) {
465
					if (time1) {
453 466
						var str1 = '<span class="time" data-createtime="' + data.data + '" style="">' + compareTime(time1, data.data) + '</span>'
454 467
					} else {
455 468
						var str1 = '<span class="time" data-createtime="' + data.data + '" style="">' + anTime(data.data) + '</span>'
@ -462,7 +475,7 @@ $(document).ready(function() {
462 475
						'</div>' +
463 476
						'<div class="item_content fr">' +
464 477
						'<em class="is_readed"></em>' +
465
						'<div class="bubble message B_end">' + $(".messContent").val().replace(/\n/g,"<br />") + '</div>' +
478
						'<div class="bubble message B_end">' + $(".messContent").val().replace(/\n/g, "<br />") + '</div>' +
466 479
						'</div>' +
467 480
						'</div>' +
468 481
						'</div>'
@ -470,11 +483,11 @@ $(document).ready(function() {
470 483

471 484
					$(".chat_body.clearfix").getNiceScroll().hide().show().resize();
472 485
					$(".chat_body.clearfix").getNiceScroll(0).doScrollTop($(".chat_body_list").height(), 100)
473
					for(var i = 0; i < $(".list_body").find('.list_item').length; i++) {
474
						if($(".list_body").find('.list_item .user_name').eq(i).text() == $(".usepro .user_name").text()) {
486
					for (var i = 0; i < $(".list_body").find('.list_item').length; i++) {
487
						if ($(".list_body").find('.list_item .user_name').eq(i).text() == $(".usepro .user_name").text()) {
475 488
							$(".list_body").find('.list_item .last_news').eq(i).text($(".messContent").val());
476 489
							$(".list_body").find('.list_item .time').eq(i).text(commenTime(data.data));
477
							if(i != 0) {
490
							if (i != 0) {
478 491
								$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"))
479 492
							}
480 493
						}
@ -482,83 +495,95 @@ $(document).ready(function() {
482 495
					$(".messContent").val("");
483 496
				}
484 497
			},
485
			"error": function() {
498
			"error": function () {
486 499
				$.MsgBox.Alert('提示', '服务器连接超时');
487 500
			}
488 501
		});
489 502
	}
490
	$(".btnModel").click(function() {
503
	$(".btnModel").click(function () {
491 504
		sendMessage();
492 505
	})
493
	$(".messContent").on("input", function() {
494
		if($.trim($(this).val()) == "") {
506
	$(".messContent").on("input", function () {
507
		if ($.trim($(this).val()) == "") {
495 508
			$('.btnModel').attr("disabled", "disabled");
496 509
		} else {
497 510
			$('.btnModel').removeAttr("disabled");
498 511
		}
499 512
	})
513

500 514
	function ci(e) {
501
			var elem = e.target;
502
			if(elem.tagName.toLowerCase() === 'img') {
503
				var $this = $(elem);
504
					$this.attr("src", "/images/default-photo.jpg");
505
				
506
			}
515
		var elem = e.target;
516
		if (elem.tagName.toLowerCase() === 'img') {
517
			var $this = $(elem);
518
			$this.attr("src", "/images/default-photo.jpg");
519

507 520
		}
521
	}
508 522
	document.addEventListener("error", ci, true /*指定事件处理函数在捕获阶段执行*/ );
509 523
	getTotalMessage()
524

510 525
	function getTotalMessage() {
511 526
		$.ajax({
512
		  url: "ajax/webMsg/unReadedCount",
513
		  type: "GET",
514
		  timeout: 10000,
515
		  dataType: "json",
516
		  traditional:true,
517
		  data:{
518
			  id: userid
519
		  },
520
		  success: function(data) {
521
			  if(data.success) {
522
				if(data.data) {
523
				  $('.kexiuTotal').text('('+data.data+')');  
524
				} else {
525
					$('.kexiuTotal').text('');  
526
				}                       
527
			  }
528
		  },
529
		  error: function() {
530
			  $.MsgBox.Alert('提示', '链接服务器超时')
531
		  }
532
	  })
533
	  }
527
			url: "ajax/webMsg/unReadedCount",
528
			type: "GET",
529
			timeout: 10000,
530
			dataType: "json",
531
			traditional: true,
532
			data: {
533
				id: userid
534
			},
535
			success: function (data) {
536
				if (data.success) {
537
					if (data.data) {
538
						$('.kexiuTotal').text('(' + data.data + ')');
539
					} else {
540
						$('.kexiuTotal').text('');
541
					}
542
				}
543
			},
544
			error: function () {
545
				$.MsgBox.Alert('提示', '链接服务器超时')
546
			}
547
		})
548
	}
549

550

534 551
	/*切换*/
535
	$(".list_body").on("click", ".list_item", function() {
552
	$(".list_body").on("click", ".list_item", function () {
536 553
		$(this).addClass("active").siblings().removeClass("active");
537
		if($(this).find(".tips_num").css("display")=="block") {
538
			$('.mymessage .badge').text(Number($('.mymessage .badge').text())-Number($(this).find(".tips_num").text()));
539
			if($('.mymessage .badge').text()==0) {
540
				$(".mymessage .badge").text("");
554
		if ($(this).find(".tips_num").css("display") == "block") {
555
			// $('.mymessage .badge').text(Number($('.mymessage .badge').text())-Number($(this).find(".tips_num").text()));
556
			$('.mymessage .badge').text(Number($(this).find(".tips_num").text()));
557
			// if ($(this).find('.tips_num').text() == 0) {
558
			// 	console.log(1)
559
			// 	$(".mymessage .badge").text('');
560
			// }
561

562
			if ($('.mymessage .badge').text() != 0) { // 消息联动
563
				$(".mymessage .badge").text('');
541 564
			}
542 565
		}
543 566
		$(this).find(".tips_num").text(0).hide();
544
		if($(".usepro .user_name").css("display")=="block") {
545
			if($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
567
		if ($(".usepro .user_name").css("display") == "block") {
568
			if ($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
546 569
				return;
547 570
			}
548 571
		}
572

549 573
		$(".chat_content_nodata").hide();
550 574
		$(".chat_content").show();
551 575
		var pro = JSON.parse($(this).attr("data"));
552 576
		$("#cUserPage").attr("href", "userInforShow.html?professorId=" + pro.id)
553 577
		$(".usepro").find(".user_name").text(pro.name).siblings(".authiconNew").addClass(pro.idf.sty).attr("title", pro.idf.title).parent().siblings(".chating_resume_status").text(pro.duties);
554 578
		professorId = pro.id;
555
		if(Number($(this).find(".tips_num").text())) {
579
		if (Number($(this).find(".tips_num").text())) {
556 580
			angleMessageList(pro.id, true);
557 581
		} else {
558 582
			angleMessageList(pro.id);
559 583
		}
560 584
		getTotalMessage()
561 585
	});
586

562 587
	/*让消息置为已读*/
563 588
	function setRead(opid, time) {
564 589
		$.ajax({
@ -571,12 +596,12 @@ $(document).ready(function() {
571 596
				time: time
572 597
			},
573 598
			"dataType": "json",
574
			"success": function(data) {
575
				if(data.success) {
599
			"success": function (data) {
600
				if (data.success) {
576 601

577 602
				}
578 603
			},
579
			"error": function() {
604
			"error": function () {
580 605
				$.MsgBox.Alert('提示', '服务器连接超时');
581 606
			}
582 607
		});
@ -596,8 +621,8 @@ $(document).ready(function() {
596 621

597 622
	function compareTime(startTime, secondTime) {
598 623
		var date3 = timeC(secondTime) - timeC(startTime); //时间差的毫秒数
599
		if(date3 >= 600000) {
600
			if(new Date().getFullYear() == secondTime.substring(0, 4)) {
624
		if (date3 >= 600000) {
625
			if (new Date().getFullYear() == secondTime.substring(0, 4)) {
601 626

602 627
				return secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
603 628
			} else {
@ -610,7 +635,7 @@ $(document).ready(function() {
610 635
	}
611 636

612 637
	function anTime(secondTime) {
613
		if(new Date().getFullYear() == secondTime.substring(0, 4)) {
638
		if (new Date().getFullYear() == secondTime.substring(0, 4)) {
614 639

615 640
			return secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
616 641
		} else {
@ -639,7 +664,7 @@ $(document).ready(function() {
639 664
	});*/
640 665
	/*删除会话*/
641 666
	var $that;
642
	$(".list_body").on("click", ".close_icon", function() {
667
	$(".list_body").on("click", ".close_icon", function () {
643 668
		$that = $(this)
644 669
		$.MsgBox.Confirm("提示", "确定删除?", deleChat);
645 670
		return false;
@ -656,35 +681,35 @@ $(document).ready(function() {
656 681
			},
657 682
			"context": $that.parents(".list_item"),
658 683
			"dataType": "json",
659
			"success": function(data) {
660
				if(data.success) {
684
			"success": function (data) {
685
				if (data.success) {
661 686
					$(this).remove();
662 687
					$(".chat_content_nodata").show();
663 688
					$(".chat_content").hide();
664 689
					unReadedCount(userid);
665 690
				}
666 691
			},
667
			"error": function() {
692
			"error": function () {
668 693
				$.MsgBox.Alert('提示', '服务器连接超时');
669 694
			}
670 695
		});
671 696
	}
672
	$("#repo").click(function() {
697
	$("#repo").click(function () {
673 698
		$("#report").toggle();
674 699
	})
675
	$("#report").on("click",function(){
700
	$("#report").on("click", function () {
676 701
		$(".cBacktit>span").text("举报")
677
		$(".correctCon")[0].placeholder="请具体说明举报对方的原因,以便我们为您快速解决";
702
		$(".correctCon")[0].placeholder = "请具体说明举报对方的原因,以便我们为您快速解决";
678 703
		$("#correctBlock").fadeToggle();
679 704
		$(this).hide();
680 705
	})
681 706
	/*纠错反馈*/
682
	$(".correctSubmit").on("click",function(){
683
		var cntCon=$(this).siblings(".correctCon").val();
684
		if(cntCon.length>500){
707
	$(".correctSubmit").on("click", function () {
708
		var cntCon = $(this).siblings(".correctCon").val();
709
		if (cntCon.length > 500) {
685 710
			$.MsgBox.Alert('提示', '举报内容不得超过500个字');
686 711
			return;
687
		}else{
712
		} else {
688 713
			$.ajax({
689 714
				"url": "/ajax/feedback/error/professor",
690 715
				"type": "POST",
@ -692,19 +717,19 @@ $(document).ready(function() {
692 717
				"async": true,
693 718
				"data": {
694 719
					"id": professorId,
695
					"cnt":cntCon,
696
					"user":userid
720
					"cnt": cntCon,
721
					"user": userid
697 722
				},
698
				"success": function(data) {
699
					if(data.success) {
723
				"success": function (data) {
724
					if (data.success) {
700 725
						backSuccessed();
701 726
						$("#mb_msgcontent").text("很抱歉为您带来不好的体验我们会为您尽快解决");
702 727
					}
703 728
				},
704
				"error": function() {
729
				"error": function () {
705 730
					$.MsgBox.Alert('提示', '链接服务器超时')
706 731
				}
707 732
			});
708 733
		}
709 734
	})
710
})
735
})

+ 180 - 0
js/unPatentImport.js

@ -0,0 +1,180 @@
1
$(document).ready(function () {
2
	$(".onlogin .headnavbtn li.mywork").addClass("navcurrent");
3
	$(".workmenu>ul>li:contains('成果')").addClass("nowLi");
4
	loginStatus(); //判断个人是否登录
5
	valUser();
6
	var userid = $.cookie("userid");
7
	var userName = $.cookie("userName");
8
9
	/*资源列表查询*/
10
	function getRecourceMe(n, isbind, num) {
11
		var resourceNameVa = $("#patentName").val();
12
13
		var $info = {};
14
		$info.pageSize = 10;
15
		if (resourceNameVa != "") {
16
			$info.key = resourceNameVa;
17
		}
18
		$info.pageNo = n;
19
		$info.status = 1;
20
		$info.id = userid
21
22
23
24
		$.ajax({ // 获取所有非专数据
25
			"url": "/ajax/resResult/pq",
26
			"type": "GET",
27
			"success": function (data) {
28
				if (data.success) {
29
					$(".importUl").html("");
30
					if (num == 1) {
31
						if (data.data.data.length == 0) {
32
							$("#noresource").removeClass("displayNone");
33
							$(".noContip").text("没有需要导入的非专");
34
							return;
35
						} else {
36
							$("#noresource").addClass("displayNone");
37
						}
38
					} else {
39
						if (data.data.data.length == 0) {
40
							$("#noresource").removeClass("displayNone");
41
							$(".noContip").text("没有符合该搜索条件的内容");
42
							return;
43
						} else {
44
							$("#noresource").addClass("displayNone");
45
						}
46
					}
47
					resourceHtml(data.data.data);
48
49
					if (isbind == true) {
50
						$(".tcdPageCode").createPage({
51
							pageCount: Math.ceil(data.data.total / data.data.pageSize),
52
							current: data.data.pageNo,
53
							backFn: function (p) {
54
								getRecourceMe(p, false);
55
								document.body.scrollTop = document.documentElement.scrollTop = 0;
56
							}
57
						});
58
					}
59
				}
60
			},
61
			"data": $info,
62
			'type': "get",
63
			'error': function () {
64
				$.MsgBox.Alert('提示', '服务器连接超时!');
65
			}
66
		});
67
	}
68
69
70
	getRecourceMe(1, true, 1);
71
72
73
	function resourceHtml($data) { //导入数据
74
		for (var i = 0; i < $data.length; i++) {
75
			test($data[i])
76
		}
77
78
	}
79
	function test($data) { //获取专家名称
80
		$.ajax({
81
			'url': '/ajax/resResult/researcher',
82
			'type': 'get',
83
			'data': {
84
				id: $data.id
85
			},
86
			success: function (res) {
87
				var arr = [] //研究者名
88
				var dom = [] //判断导入的id
89
				for (var i = 0; i < res.data.length; i++) {
90
					arr.push(res.data[i].name)
91
					dom.push(res.data[i].professorId)
92
				}
93
				$.ajax({ //导入状态数据
94
					'url': '/ajax/resResult/selectbyidandPid',
95
					'data': {
96
						id: $data.id,
97
						pid: userid
98
					},
99
					'type': 'get',
100
					success: function (res) {
101
102
						var cc = res.data //状态值 []
103
						if ($data.name) { //分隔数组[]
104
							oSpec = "研究者:" + arr.join(',');
105
						}
106
						// var cc = dom.join(',')
107
						var oT, oText, cs;
108
						if (cc.length != 0) { //判断状态如果长度不等于0证明已经导入
109
							oT = "importSpan-3";
110
							oText = "已导入";
111
							cs = "auto"
112
						} else {
113
							oT = "importSpan-1";
114
							oText = "导入";
115
							cs = "pointer";
116
						}
117
						var oString = '<li>' +
118
							'<a class="flexCenter">' +
119
							'<div class="madiaHead patentHead"></div>' +
120
							'<div class="madiaInfo">' +
121
							'<p class="h1Font ellipsisSty">' + $data.name + '</p>' +
122
							'<p class="h2Font ellipsisSty">' + oSpec + '</p>' +
123
							'<p class="h2Font ellipsisSty">' + '</p>' +
124
							'</div>' +
125
							'</a>' +
126
							'<div class="importBtn">' +
127
							'<span class="importResource ' + oT + '" data-id="' + $data.id + '" style="cursor:' + cs + '">' + oText + '</span>' +
128
							/*'<span class="importSpan-2">再次导入</span>' +
129
							'<span class="importSpan-3">已导入</span>' +*/
130
							'</div>' +
131
							'</li>'
132
						$(".importUl").append(oString);
133
					}
134
				})
135
			}
136
		})
137
	}
138
	/*输入资源名称限制字数*/
139
	$("#resouceName").bind({
140
		keyup: function () {
141
			if ($(this).val().length > 30) {
142
				$(this).val($(this).val().substr(0, 30));
143
			}
144
		}
145
	});
146
	/*点击搜索*/
147
	$(".searchSpan").click(function () {
148
		$(".tcdPageCode").remove();
149
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
150
		getRecourceMe(1, true);
151
	})
152
153
	/*导入资源*/
154
	$(".importUl").on("click", ".importSpan-1", function () {
155
		var oF = $(this).attr("flag");
156
		var $this = $(this);
157
		$.ajax({
158
			"url": "/ajax/resResult/ass",
159
			"type": "POST",
160
			"success": function (data) {
161
				if (data.success) {
162
					if (data.data > 0) {
163
						$this.text("导入成功").addClass("importSpan-3").removeClass("importSpan-1").removeClass("importSpan-2").css("cursor", "auto");
164
					}
165
				}
166
			},
167
			"data": {
168
				id: $(this).attr("data-id"),
169
				// uid: userid,
170
				// author: userName,
171
				researcher: userid
172
			},
173
			dataType: "json",
174
			'error': function () {
175
				$.MsgBox.Alert('提示', '服务器连接超时!');
176
			}
177
		});
178
	});
179
180
})

+ 326 - 310
js/unPatentIssue.js

@ -1,6 +1,6 @@
1
$(document).ready(function() {
2
	var resourceId=GetQueryString("id");
3
	if(resourceId) {
1
$(document).ready(function () {
2
	var resourceId = GetQueryString("id");
3
	if (resourceId) {
4 4
		$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
5 5
		getRecourceMe();
6 6
	}
@ -8,32 +8,39 @@ $(document).ready(function() {
8 8
	valUser();
9 9
	var userid = $.cookie("userid");
10 10
	var temp = [];
11
	var hbur,hburEnd;
11
	var hbur, hburEnd;
12 12
	ue = UE.getEditor('editor', {});
13
	$('#KeyWord3').focus(function () {
14
		$('#keyPrompt').html('研究者不能为空')
15
	})
16
	$('#KeyWord3').blur(function () {
17
		$('#keyPrompt').html('')
18
	})
13 19
	/*获取资源信息*/
14 20
	function getRecourceMe() {
15
			$.ajax({
16
					"url": "/ajax/resResult/qo",
17
					"type": "GET",
18
					"success": function(data) {
19
						console.log(data);
20
						if(data.success) {
21
							$("#uploadDd").siblings().remove();
22
							$("#fileList").append("<dd></dd><dd></dd>");
23
							temp=[];
24
							resourceHtml(data.data);
25
							proList(resourceId)
26
						}
27
					},
28
					"data": {
29
						"id":resourceId
30
					},
31
					dataType: "json",
32
					'error':function() {
33
						$.MsgBox.Alert('提示', '服务器连接超时!');
34
					}
35
				});
21
		$.ajax({
22
			"url": "/ajax/resResult/qo",
23
			"type": "GET",
24
			"success": function (data) {
25
				console.log(data);
26
				if (data.success) {
27
					$("#uploadDd").siblings().remove();
28
					$("#fileList").append("<dd></dd><dd></dd>");
29
					temp = [];
30
					resourceHtml(data.data);
31
					proList(resourceId)
32
				}
33
			},
34
			"data": {
35
				"id": resourceId
36
			},
37
			dataType: "json",
38
			'error': function () {
39
				$.MsgBox.Alert('提示', '服务器连接超时!');
40
			}
41
		});
36 42
	}
43
37 44
	function proList(par) {
38 45
		$.ajax({
39 46
			"url": "/ajax/resResult/researcher",
@ -41,129 +48,133 @@ $(document).ready(function() {
41 48
			"data": {
42 49
				id: par
43 50
			},
44
			"success": function(data) {
45
				if(data.success) {
51
			"success": function (data) {
52
				if (data.success) {
46 53
					var $da = data.data
47
					if($da) {
54
					if ($da) {
48 55
						var oSt1 = ''
49
						for(var i=0;i<$da.length;i++){
50
							oSt1+='<li data-id="'+$da[i].professorId+'">'+$da[i].name+'<div class="closeThis"></div></li>'
56
						for (var i = 0; i < $da.length; i++) {
57
							oSt1 += '<li data-id="' + $da[i].professorId + '">' + $da[i].name + '<div class="closeThis"></div></li>'
51 58
						}
52 59
						$("#keyWordlist2").html(oSt1);
53
					}else{
60
					} else {
54 61
						$("#keyWordlist2").html("");
55 62
					}
56 63
				}
57 64
			},
58 65
			"data": {
59
				"id":resourceId
66
				"id": resourceId
60 67
			},
61 68
			dataType: "json",
62
			'error':function() {
69
			'error': function () {
63 70
				$.MsgBox.Alert('提示', '服务器连接超时!');
64 71
			}
65 72
		});
66 73
	}
74
75
76
77
67 78
	function orgname(par) {
68 79
		$.ajax({
69
			"url": "ajax/org/"+par,
80
			"url": "ajax/org/" + par,
70 81
			"type": "GET",
71
			"success": function(data) {
72
				if(data.success) {
82
			"success": function (data) {
83
				if (data.success) {
73 84
					$('#organizationName').val(data.data.name)
74 85
					org.id = par
75 86
				}
76 87
			},
77 88
			"data": {
78
				"id":resourceId
89
				"id": resourceId
79 90
			},
80 91
			dataType: "json",
81
			'error':function() {
92
			'error': function () {
82 93
				$.MsgBox.Alert('提示', '服务器连接超时!');
83 94
			}
84 95
		});
85 96
	}
86 97
	/*处理资源html代码*/
87 98
	function resourceHtml($da) {
88
		$("#resourceName").val($da.name);//名字
89
		if($da.orgId) {//所属机构
99
		$("#resourceName").val($da.name); //名字
100
		if ($da.orgId) { //所属机构
90 101
			orgname($da.orgId)
91 102
		}
92
		if($da.descp) {//所属机构
103
		if ($da.descp) { //所属机构
93 104
			$("#descp").val($da.descp);
94 105
		}
95
		if($da.applyDescp) {//厂商型号
106
		if ($da.applyDescp) { //厂商型号
96 107
			$("#applyDescp").val($da.applyDescp);
97 108
		}
98
		if($da.prospect) {//性能参数
109
		if ($da.prospect) { //性能参数
99 110
			$("#prospect").val($da.prospect);
100 111
		}
101
		if($da.indicator) {//合作备注
112
		if ($da.indicator) { //合作备注
102 113
			$("#indicator").val($da.indicator);
103 114
		}
104
		if($da.benefit) {//合作备注
115
		if ($da.benefit) { //合作备注
105 116
			$("#benefit").val($da.benefit);
106 117
		}
107
		if($da.department) {//合作备注
118
		if ($da.department) { //合作备注
108 119
			$("#department").val($da.department);
109 120
		}
110
		if($da.industry) {
111
			var oSub=$da.industry.split(",");
112
			var oSt="";
113
			for(var i=0;i<oSub.length;i++){
114
				oSt+='<li>'+oSub[i]+'<div class="closeThis"></div></li>'
121
		if ($da.industry) {
122
			var oSub = $da.industry.split(",");
123
			var oSt = "";
124
			for (var i = 0; i < oSub.length; i++) {
125
				oSt += '<li>' + oSub[i] + '<div class="closeThis"></div></li>'
115 126
			}
116 127
			$("#keyWordlist").html(oSt);
117
			if(oSub.length>4){
128
			if (oSub.length > 4) {
118 129
				$("#KeyWord").parent().addClass("displayNone");
119 130
			}
120
		}else{
131
		} else {
121 132
			$("#keyWordlist").html("");
122 133
		}
123
		if($da.subject) {
124
			var oSub1=$da.subject.split(",");
125
			var oSt1="";
126
			for(var i=0;i<oSub1.length;i++){
127
				oSt1+='<li>'+oSub1[i]+'<div class="closeThis"></div></li>'
134
		if ($da.subject) {
135
			var oSub1 = $da.subject.split(",");
136
			var oSt1 = "";
137
			for (var i = 0; i < oSub1.length; i++) {
138
				oSt1 += '<li>' + oSub1[i] + '<div class="closeThis"></div></li>'
128 139
			}
129 140
			$("#keyWordlist1").html(oSt1);
130
			if(oSub1.length>4){
141
			if (oSub1.length > 4) {
131 142
				$("#KeyWord1").parent().addClass("displayNone");
132 143
			}
133
		}else{
144
		} else {
134 145
			$("#keyWordlist1").html("");
135 146
		}
136
		if($da.pic.split(',').length) {
147
		if ($da.pic.split(',').length) {
137 148
			console.log($da.pic)
138
			var arr=[];
139
			for(var i=0;i<$da.pic.split(',').length;i++) {
140
				var oString='<dd>' +
141
					'<div class="imgItem">'+
142
						'<img src="'+"/data/researchResult"+$da.pic.split(",")[i]+'"/>' +
143
					'</div>'+
149
			var arr = [];
150
			for (var i = 0; i < $da.pic.split(',').length; i++) {
151
				var oString = '<dd>' +
152
					'<div class="imgItem">' +
153
					'<img src="' + "/data/researchResult" + $da.pic.split(",")[i] + '"/>' +
154
					'</div>' +
144 155
					'<div class="file-panel">' +
145
						'<span class="cancel" flag=1></span>' +
156
					'<span class="cancel" flag=1></span>' +
146 157
					'</div>' +
147
				'</dd>'
148
				arr[i]=oString;
158
					'</dd>'
159
				arr[i] = oString;
149 160
				temp[i] = $da.pic.split(",")[i];
150 161
			}
151
		$("#fileList dd").eq(2).remove();
152
			if($da.pic.split(",").length==1) {
162
			$("#fileList dd").eq(2).remove();
163
			if ($da.pic.split(",").length == 1) {
153 164
				$("#fileList").prepend(arr[0]);
154
			}else if($da.pic.split(",").length==2) {
165
			} else if ($da.pic.split(",").length == 2) {
155 166
				$("#fileList dd").eq(1).remove();
156 167
				$("#fileList").prepend(arr[1]);
157 168
				$("#fileList").prepend(arr[0]);
158
			}else if($da.pic.split(",").length==3) {
169
			} else if ($da.pic.split(",").length == 3) {
159 170
				$("#fileList dd").eq(1).remove();
160 171
				$("#fileList").prepend(arr[2]);
161 172
				$("#fileList").prepend(arr[1]);
162 173
				$("#fileList").prepend(arr[0]);
163 174
			}
164
			
165
				
166
			
175
176
177
167 178
		}
168 179
	}
169 180
	var uploader = WebUploader.create({
@ -185,18 +196,18 @@ $(document).ready(function() {
185 196
	});
186 197
187 198
	// 当有文件添加进来的时候
188
	uploader.on('fileQueued', function(file) {
199
	uploader.on('fileQueued', function (file) {
189 200
		fileId = file.id;
190 201
		var $len = $("#fileList").find("img").length;
191
		if($len == 0 || $len == 1) {
202
		if ($len == 0 || $len == 1) {
192 203
			var oRemove = $("#fileList").find("dd");
193 204
			oRemove.eq(oRemove.length - 1).remove();
194
		} 
205
		}
195 206
		var $li = $(
196 207
				'<dd>' +
197
					'<div class="imgItem" id="' + file.id + '">'+
198
						'<img />' +
199
					'</div>'+
208
				'<div class="imgItem" id="' + file.id + '">' +
209
				'<img />' +
210
				'</div>' +
200 211
				//'<div class="info">' + file.name + '</div>' +
201 212
				'</dd>'
202 213
			),
@ -205,9 +216,9 @@ $(document).ready(function() {
205 216
				'</div>').appendTo($li),
206 217
			$img = $li.find('img');
207 218
		var $list = $("#fileList");
208
		if($len == 1) {
219
		if ($len == 1) {
209 220
			$list.find("dd").eq(0).after($li)
210
		} else if($len == 2) {
221
		} else if ($len == 2) {
211 222
			$list.find("dd").eq(1).after($li)
212 223
		} else {
213 224
			$list.prepend($li);
@ -216,8 +227,8 @@ $(document).ready(function() {
216 227
		// 创建缩略图
217 228
		// 如果为非图片文件,可以不用调用此方法。
218 229
		// thumbnailWidth x thumbnailHeight 为 100 x 100
219
		uploader.makeThumb(file, function(error, src) {
220
			if(error) {
230
		uploader.makeThumb(file, function (error, src) {
231
			if (error) {
221 232
				$img.replaceWith('<span>不能预览</span>');
222 233
				return;
223 234
			}
@ -236,41 +247,41 @@ $(document).ready(function() {
236 247
		});*/
237 248
238 249
	});
239
	uploader.onError = function(code) {
250
	uploader.onError = function (code) {
240 251
		console.log(code)
241 252
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')
242 253
	};
243
	uploader.on('uploadSuccess', function(file, data) {
254
	uploader.on('uploadSuccess', function (file, data) {
244 255
		console.log(data)
245
		if(data.success) {
246
				uploader.removeFile(fileId);
247
				temp.push(data.data[0].uri);
248
		}else{
256
		if (data.success) {
257
			uploader.removeFile(fileId);
258
			temp.push(data.data[0].uri);
259
		} else {
249 260
			$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
250 261
		}
251 262
	});
252 263
	/*删除图片*/
253
	$("#fileList").on("click", ".cancel", function() {
254
		var flag=$(this).attr("flag");
255
		var oNum=$(this).parents("dd").index();
264
	$("#fileList").on("click", ".cancel", function () {
265
		var flag = $(this).attr("flag");
266
		var oNum = $(this).parents("dd").index();
256 267
		temp.splice(oNum, 1);
257 268
		$(this).parent().parent().remove();
258 269
		var $len = $("#fileList").find("img").length;
259
		if($len != 2) {
270
		if ($len != 2) {
260 271
			$("#fileList").append("<dd></dd>")
261 272
		}
262
		
273
263 274
	});
264 275
	/*资源名称*/
265 276
	$("#resourceName").bind({
266
		focus: function() {
277
		focus: function () {
267 278
			$("#resourceNamePrompt").show();
268 279
		},
269
		blur: function() {
280
		blur: function () {
270 281
			$("#resourceNamePrompt").hide();
271 282
		},
272
		keyup: function() {
273
			if($(this).val().length > 50) {
283
		keyup: function () {
284
			if ($(this).val().length > 50) {
274 285
				$(this).val($(this).val().substr(0, 50));
275 286
			}
276 287
		}
@ -278,31 +289,31 @@ $(document).ready(function() {
278 289
	hotKey(".oinput");
279 290
	//校验关键字
280 291
	$("#KeyWord,#KeyWord1").on({
281
		focus: function() {
292
		focus: function () {
282 293
			$(this).parents('.form-item').find('.frmconmsg').text("最多可添加20个关键词,每个关键词15字以内");
283 294
		},
284
		blur: function() {
295
		blur: function () {
285 296
			$(this).parents('.form-item').find('.frmconmsg').text("");
286 297
		}
287 298
	})
288
	$("#keyWordlist,#keyWordlist1").on("click", ".closeThis", function() {
299
	$("#keyWordlist,#keyWordlist1").on("click", ".closeThis", function () {
289 300
		$(this).parent().remove();
290 301
		var liNum = $("#keyWordlist").find("li").length;
291
		if(liNum < 20) {
302
		if (liNum < 20) {
292 303
			$("#keyWordlist").parents(".keyResult").siblings("div.col-w-12").show();
293 304
		}
294 305
	})
295
	
296
	$("#keyWordlist2").on("click", ".closeThis", function() {
306
307
	$("#keyWordlist2").on("click", ".closeThis", function () {
297 308
		$(this).parent().remove();
298 309
	})
299 310
	hotKey1(".oinput1");
300
	$(".keydrop1").on("click", "li", function() {
311
	$(".keydrop1").on("click", "li", function () {
301 312
		var oValue = $(this).text();
302 313
		var oJudge = $(this).parents(".col-w-12").siblings().find("ul.ulspace li");
303 314
		var addNum = $(this).parents(".keydrop1").siblings("input").attr("data-num");
304
		for(var i = 0; i < oJudge.length; i++) {
305
			if(oValue == oJudge[i].innerText) {
315
		for (var i = 0; i < oJudge.length; i++) {
316
			if (oValue == oJudge[i].innerText) {
306 317
				$.MsgBox.Alert('提示', '添加内容不能重复');
307 318
				return;
308 319
			}
@ -310,26 +321,27 @@ $(document).ready(function() {
310 321
		$(this).parents(".col-w-12").siblings().find("ul.ulspace").append('<li data-id="' + $(this).attr('data-id') + '">' + oValue + '<div class="closeThis"></div></li>');
311 322
		$(this).parents(".keydrop1").siblings("input").val("");
312 323
		$(this).parents(".keydrop1").siblings("button").hide();
313
		if(oJudge.length == addNum - 1) {
324
		if (oJudge.length == addNum - 1) {
314 325
			$(this).parents(".keydrop1").siblings("input").val("");
315 326
			$(this).parents(".col-w-12").hide();
316 327
		}
317 328
		$(this).parent("ul").html("")
318 329
	})
330
319 331
	function hotKey1(sel, num) {
320 332
		$(sel).bind({
321
			paste: function(e) {
333
			paste: function (e) {
322 334
				var pastedText;
323
				if (window.clipboardData  &&  window.clipboardData.getData)  {  // IE
324
					pastedText  = $(this).val() +  window.clipboardData.getData('Text');          
325
				}else{            
326
					pastedText  = $(this).val() +  e.originalEvent.clipboardData.getData('Text'); //e.clipboardData.getData('text/plain');
335
				if (window.clipboardData && window.clipboardData.getData) { // IE
336
					pastedText = $(this).val() + window.clipboardData.getData('Text');
337
				} else {
338
					pastedText = $(this).val() + e.originalEvent.clipboardData.getData('Text'); //e.clipboardData.getData('text/plain');
327 339
				}
328 340
				$(this).val(pastedText);
329
	
341
330 342
				var $this = $(this);
331
				setTimeout(function() {
332
					if($this.val().trim()) {
343
				setTimeout(function () {
344
					if ($this.val().trim()) {
333 345
						$this.siblings("button").show();
334 346
					} else {
335 347
						$this.siblings("button").hide();
@ -337,75 +349,75 @@ $(document).ready(function() {
337 349
				}, 1);
338 350
				e.preventDefault();
339 351
			},
340
			cut: function(e) {
352
			cut: function (e) {
341 353
				var $this = $(this);
342
				setTimeout(function() {
343
					if($this.val().trim()) {
354
				setTimeout(function () {
355
					if ($this.val().trim()) {
344 356
						$this.siblings("button").show();
345 357
					} else {
346 358
						$this.siblings("button").hide();
347 359
					}
348 360
				}, 1);
349 361
			},
350
			blur: function() {
362
			blur: function () {
351 363
				var $this = $(this);
352
				setTimeout(function() {
364
				setTimeout(function () {
353 365
					$this.siblings(".keydrop").hide();
354 366
				}, 500)
355 367
			},
356
			focus: function() {
368
			focus: function () {
357 369
				$(this).siblings(".keydrop").show();
358 370
			},
359
			keyup: function(e) {
360
				 var ti=$(this).val();
361
				 var $t=this;
362
				 $t.comr=ti;
363
				 var $this=$(this);
364
				if($(this).val().trim()) {
371
			keyup: function (e) {
372
				var ti = $(this).val();
373
				var $t = this;
374
				$t.comr = ti;
375
				var $this = $(this);
376
				if ($(this).val().trim()) {
365 377
					$(this).siblings("button").show();
366 378
					var lNum = $.trim($(this).val()).length;
367
					if(0 < lNum) {
368
						setTimeout(function(){
369
							if( ti===$t.comr && ti!== $t.comrEnd) {
370
								var tt=ti;
371
								$t.comrEnd=tt;
372
						$("#addKeyword").show();
373
						$.ajax({
374
							"url": "/ajax/professor/qaByName",
375
							"type": "GET",
376
							data: {
377
								name: ti,
378
								total: 3
379
							},
380
							"success": function(data) {
381
								console.log(data);
382
								if(data.success) {
383
									if($t.comrEnd==tt) {
384
										if(data.data.length == 0) {
379
					if (0 < lNum) {
380
						setTimeout(function () {
381
							if (ti === $t.comr && ti !== $t.comrEnd) {
382
								var tt = ti;
383
								$t.comrEnd = tt;
384
								$("#addKeyword").show();
385
								$.ajax({
386
									"url": "/ajax/professor/qaByName",
387
									"type": "GET",
388
									data: {
389
										name: ti,
390
										total: 3
391
									},
392
									"success": function (data) {
393
										console.log(data);
394
										if (data.success) {
395
											if ($t.comrEnd == tt) {
396
												if (data.data.length == 0) {
397
													$this.siblings(".keydrop").addClass("displayNone");
398
													$this.siblings(".keydrop").find("ul").html("");
399
												} else {
400
													$this.siblings(".keydrop").removeClass("displayNone");
401
402
													var oSr = "";
403
													for (var i = 0; i < Math.min(data.data.length, 5); i++) {
404
														oSr += '<li data-id="' + data.data[i].id + '">' + data.data[i].name + '<div class="closeThis"></div></li>';
405
													}
406
													$this.siblings(".keydrop1").find("ul").html(oSr);
407
												}
408
											}
409
										} else {
385 410
											$this.siblings(".keydrop").addClass("displayNone");
386 411
											$this.siblings(".keydrop").find("ul").html("");
387
										} else {
388
											$this.siblings(".keydrop").removeClass("displayNone");
389
											
390
											var oSr = "";
391
											for(var i = 0; i < Math.min(data.data.length,5); i++) {
392
												oSr += '<li data-id="' + data.data[i].id + '">' + data.data[i].name + '<div class="closeThis"></div></li>';
393
											}
394
											$this.siblings(".keydrop1").find("ul").html(oSr);
395 412
										}
396
									}	
397
								} else {
398
									$this.siblings(".keydrop").addClass("displayNone");
399
									$this.siblings(".keydrop").find("ul").html("");
400
								}
401
							},
402
							dataType: "json",
403
							'error': function() {
404
								$.MsgBox.Alert('提示', '服务器连接超时!');
413
									},
414
									dataType: "json",
415
									'error': function () {
416
										$.MsgBox.Alert('提示', '服务器连接超时!');
417
									}
418
								});
405 419
							}
406
						});
407
						}
408
						},500);
420
						}, 500);
409 421
					}
410 422
				} else {
411 423
					$(this).siblings("button").hide();
@ -421,66 +433,66 @@ $(document).ready(function() {
421 433
		name: ''
422 434
	}
423 435
	$("#organizationName").bind({
424
		focus: function() {
436
		focus: function () {
425 437
			$("#organization").show();
426 438
			$("#departmentList").show();
427 439
		},
428
		blur: function() {
440
		blur: function () {
429 441
			$("#organization").hide();
430 442
			if (org.name != $("#organizationName").val()) {
431 443
				$("#organizationName").val('')
432
				org.id =""
444
				org.id = ""
433 445
			}
434
			setTimeout(function(){
446
			setTimeout(function () {
435 447
				$("#departmentList").hide();
436
			},100)
448
			}, 100)
437 449
		},
438
		keyup: function() {
439
			if($(this).val().length > 50) {
450
		keyup: function () {
451
			if ($(this).val().length > 50) {
440 452
				$(this).val($(this).val().substr(0, 50));
441
			} else if(0 < $(this).val().length < 50) {
442
					$.ajax({
453
			} else if (0 < $(this).val().length < 50) {
454
				$.ajax({
443 455
					"url": "/ajax/org/querylimit",
444 456
					"type": "GET",
445
					"success": function(data) {
457
					"success": function (data) {
446 458
						console.log(data);
447
						if(data.success) {
448
							if(data.data==null) {
459
						if (data.success) {
460
							if (data.data == null) {
449 461
								$("#departmentList ul").html("");
450
							}else{
462
							} else {
451 463
								addHtml(data.data);
452 464
							}
453 465
						}
454 466
					},
455 467
					"data": {
456
						name:$(this).val(),
468
						name: $(this).val(),
457 469
						rows: 3
458 470
					},
459 471
					dataType: "json",
460
					'error':function() {
472
					'error': function () {
461 473
						$.MsgBox.Alert('提示', '服务器连接超时!');
462 474
					}
463
			});
475
				});
464 476
			}
465 477
		}
466 478
	})
467
	
479
468 480
	function addHtml($html) {
469
		var i=0;
470
		var oSum="";
471
		for( i in $html) {
472
			var oImg="";
473
			if($html[i].hasOrgLogo) {
474
				oImg="/images/org/" + $html[i].id + ".jpg"
475
			}else{
476
				oImg="../images/default-icon.jpg"
481
		var i = 0;
482
		var oSum = "";
483
		for (i in $html) {
484
			var oImg = "";
485
			if ($html[i].hasOrgLogo) {
486
				oImg = "/images/org/" + $html[i].id + ".jpg"
487
			} else {
488
				oImg = "../images/default-icon.jpg"
477 489
			}
478
			oSum+='<li class="orgList"><img src="'+oImg+'" class="floatL" /><p class="h2Font floatL" data-id="'+$html[i].id+'">'+$html[i].name+'</p></li>'
490
			oSum += '<li class="orgList"><img src="' + oImg + '" class="floatL" /><p class="h2Font floatL" data-id="' + $html[i].id + '">' + $html[i].name + '</p></li>'
479 491
		}
480
		
492
481 493
		$("#departmentList ul").html(oSum);
482 494
	}
483
	$("#departmentList ul").on("click","li",function(){
495
	$("#departmentList ul").on("click", "li", function () {
484 496
		$("#organizationName").val($(this).find("p").text());
485 497
		org = {
486 498
			id: $(this).find("p").attr('data-id'),
@ -490,111 +502,114 @@ $(document).ready(function() {
490 502
	})
491 503
	/*厂商型号*/
492 504
	$("#modelNumber").bind({
493
		focus: function() {
505
		focus: function () {
494 506
			$("#model").show();
495 507
		},
496
		blur: function() {
508
		blur: function () {
497 509
			$("#model").hide();
498 510
		},
499
		keyup: function() {
500
			if($(this).val().length > 50) {
511
		keyup: function () {
512
			if ($(this).val().length > 50) {
501 513
				$(this).val($(this).val().substr(0, 50));
502 514
			}
503 515
		}
504 516
505 517
	});
506 518
	/*应用用途*/
507
	limitObj("#descp",2000)
519
	limitObj("#descp", 2000)
508 520
	/*性能参数*/
509
	limitObj("#applyDescp",2000)
521
	limitObj("#applyDescp", 2000)
510 522
	/*合作备注*/
511
	limitObj("#advantage",2000)
523
	limitObj("#advantage", 2000)
512 524
	/*应用用途*/
513
	limitObj("#indicator",2000)
525
	limitObj("#indicator", 2000)
514 526
	/*性能参数*/
515
	limitObj("#prospect",2000)
527
	limitObj("#prospect", 2000)
516 528
	/*合作备注*/
517
	limitObj("#benefit",2000)
529
	limitObj("#benefit", 2000)
518 530
	/*发布*/
519
	$(".goFabu").click(function(){
520
		if($(this).hasClass("disableLi")){
531
	$(".goFabu").click(function () {
532
		if ($(this).hasClass("disableLi")) {
521 533
			return;
522 534
		}
523
		var  oYes=term();
524
		if(oYes==0) {
535
		var oYes = term();
536
		if (oYes == 0) {
525 537
			return;
526 538
		}
527
		$.MsgBox.Confirm("提示", "确认发布该非专利成果?",ajsPost);
539
		$.MsgBox.Confirm("提示", "确认发布该非专利成果?", ajsPost);
528 540
	})
529 541
	/*预览*/
530
	$("#oPreview").click(function(){
531
		if($(this).hasClass("disableLi")){
542
	$("#oPreview").click(function () {
543
		if ($(this).hasClass("disableLi")) {
532 544
			return;
533 545
		}
534
		var  oYes=term();
535
		if(oYes==0) {
546
		var oYes = term();
547
		if (oYes == 0) {
536 548
			return;
537 549
		}
538
		ajsPost("/ajax/resResult/draft",1);
550
		ajsPost("/ajax/resResult/draft", 1);
539 551
	})
540 552
	/*存草稿*/
541
	$("#oDraft").click(function(){
542
		if($(this).hasClass("disableLi")){
553
	$("#oDraft").click(function () {
554
		if ($(this).hasClass("disableLi")) {
543 555
			return;
544 556
		}
545
		var  oYes=term();
546
		if(oYes==0) {
557
		var oYes = term();
558
		if (oYes == 0) {
547 559
			return;
548 560
		}
549 561
		if (resourceId) {
550
			ajsPost("/ajax/resResult/draft/update",2);
562
			ajsPost("/ajax/resResult/draft/update", 2);
551 563
		} else {
552
			ajsPost("/ajax/resResult/draft",2);
564
			ajsPost("/ajax/resResult/draft", 2);
553 565
		}
554
		
566
555 567
	})
556 568
	/*删除*/
557
	$("#operateBlocko").on("click",".deleteResource",function(){
558
		$.MsgBox.Confirm("提示", "确认删除该非专利成果?",deleResource);
569
	$("#operateBlocko").on("click", ".deleteResource", function () {
570
		$.MsgBox.Confirm("提示", "确认删除该非专利成果?", deleResource);
559 571
	})
560 572
	/*删除函数*/
561 573
	function deleResource() {
562
			$.ajax({
563
					"url": "/ajax/resResult/delete",
564
					"type": "POST",
565
					"success": function(data) {
566
						console.log(data)
567
						if(data.success) {							
568
								location.href="resourceList.html"						
569
						}
570
					},
571
					"data": {"resourceId":resourceId},
572
					"beforeSend": function() { /*console.log(this.data)*/ },
573
					"contentType": "application/x-www-form-urlencoded",
574
					dataType: "json"
575
				});
574
		$.ajax({
575
			"url": "/ajax/resResult/delete",
576
			"type": "POST",
577
			"success": function (data) {
578
				console.log(data)
579
				if (data.success) {
580
					location.href = "resourceList.html"
581
				}
582
			},
583
			"data": {
584
				"resourceId": resourceId
585
			},
586
			"beforeSend": function () {
587
				/*console.log(this.data)*/ },
588
			"contentType": "application/x-www-form-urlencoded",
589
			dataType: "json"
590
		});
576 591
	}
577 592
	/*条件是否匹配*/
578
	function term(){
593
	function term() {
579 594
		var $len = $("#fileList").find("img").length;
580
		var reName=$("#resourceName").val();
581
		var oIndustry=$("#application").val();
582
		if($len==0) {
595
		var reName = $("#resourceName").val();
596
		var oIndustry = $("#application").val();
597
		if ($len == 0) {
583 598
			$.MsgBox.Alert('提示', '请上传非专利成果图片。');
584 599
			return 0;
585 600
		}
586
		if(reName=="") {
601
		if (reName == "") {
587 602
			$.MsgBox.Alert('提示', '请输入非专利成果名称。');
588 603
			return 0;
589 604
		}
590
		
605
591 606
	}
592 607
	/*发布函数*/
593
	function ajsPost(pa1,pa2) {
608
	function ajsPost(pa1, pa2) {
594 609
		var industrys = $("#keyWordlist li");
595 610
		var industryAll = "";
596
		if(industrys.size() > 0) {
597
			for(var i = 0; i < industrys.size(); i++) {
611
		if (industrys.size() > 0) {
612
			for (var i = 0; i < industrys.size(); i++) {
598 613
				industryAll += industrys[i].innerText.trim();
599 614
				industryAll += ',';
600 615
			};
@ -602,8 +617,8 @@ $(document).ready(function() {
602 617
		}
603 618
		var industrys1 = $("#keyWordlist1 li");
604 619
		var industryAll1 = "";
605
		if(industrys1.size() > 0) {
606
			for(var i = 0; i < industrys1.size(); i++) {
620
		if (industrys1.size() > 0) {
621
			for (var i = 0; i < industrys1.size(); i++) {
607 622
				industryAll1 += industrys1[i].innerText.trim();
608 623
				industryAll1 += ',';
609 624
			};
@ -611,26 +626,26 @@ $(document).ready(function() {
611 626
		}
612 627
		var industrys2 = $("#keyWordlist2 li");
613 628
		var researcher = [];
614
		if(industrys2.size() > 0) {
615
			for(var i = 0; i < industrys2.size(); i++) {
629
		if (industrys2.size() > 0) {
630
			for (var i = 0; i < industrys2.size(); i++) {
616 631
				var iD = $("#keyWordlist2 li").eq(i).attr('data-id');
617 632
				if (iD) {
618
					researcher.push(iD+","+industrys2[i].innerText.trim())
633
					researcher.push(iD + "," + industrys2[i].innerText.trim())
619 634
				} else {
620
					researcher.push("################################,"+industrys2[i].innerText.trim())
635
					researcher.push("################################," + industrys2[i].innerText.trim())
621 636
				}
622
				
623
			
637
638
624 639
			};
625 640
		}
626 641
		$(".operateBlock").find("li").addClass("disableLi");
627
		var oUrl="/ajax/resResult/publish";
628
		if(pa1) {
629
				oUrl=pa1
642
		var oUrl = "/ajax/resResult/publish";
643
		if (pa1) {
644
			oUrl = pa1
630 645
		} else {
631 646
			if (resourceId) {
632
				oUrl="/ajax/resResult/publish/update"
633
			} 
647
				oUrl = "/ajax/resResult/publish/update"
648
			}
634 649
		}
635 650
		var $data = {
636 651
			name: $("#resourceName").val(),
@ -649,53 +664,54 @@ $(document).ready(function() {
649 664
			platform: false,
650 665
			console: false,
651 666
			professor: true,
652
			researchers:researcher
667
			researchers: researcher
653 668
		};
654
			if(resourceId) {
655
				$data.id=resourceId;
656
			}
657
			$.ajax({
658
					"url": oUrl,
659
					"type": "POST",
660
					"complete":function(){
661
						$(".operateBlock").find("li").removeClass("disableLi");
662
					},
663
					"success": function(data) {
664
						console.log(data)
665
						if(data.success) {
666
							if(pa2==1) {
667
								if (!resourceId)
668
								resourceId=data.data;
669
								$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
670
								window.open("unPatentpreview.html?id="+data.data);
671
								getRecourceMe();
672
								//弹出预览
673
							}else if(pa2==2) {
674
							$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
675
							if (!resourceId)
676
							resourceId=data.data;
677
							$.MsgBox.Alert('提示', '非专利成果已保存草稿。');
678
							$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
679
							getRecourceMe();
680
							}else{
681
								$.MsgBox.Alert("提示", "非专利成果发布成功!", function articalList() {
682
									location.href = "unPatentList.html";
683
								});
684
								$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
685
								
686
							}
687
							
688
						}else{
689
							if(data.code==90) {
690
								$.MsgBox.Alert('提示', '由于操作时间过久,上传图片已失效,请重新上传。');
691
							}
692
						}
693
					},
694
					"data": $data,
695
					"beforeSend": function() { /*console.log(this.data)*/ },
696
					"contentType": "application/x-www-form-urlencoded",
697
					"traditional":true,
698
					dataType: "json"
699
			});
669
		if (resourceId) {
670
			$data.id = resourceId;
671
		}
672
		$.ajax({
673
			"url": oUrl,
674
			"type": "POST",
675
			"complete": function () {
676
				$(".operateBlock").find("li").removeClass("disableLi");
677
			},
678
			"success": function (data) {
679
				console.log(data)
680
				if (data.success) {
681
					if (pa2 == 1) {
682
						if (!resourceId)
683
							resourceId = data.data;
684
						$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
685
						window.open("unPatentpreview.html?id=" + data.data);
686
						getRecourceMe();
687
						//弹出预览
688
					} else if (pa2 == 2) {
689
						$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
690
						if (!resourceId)
691
							resourceId = data.data;
692
						$.MsgBox.Alert('提示', '非专利成果已保存草稿。');
693
						$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
694
						getRecourceMe();
695
					} else {
696
						$.MsgBox.Alert("提示", "非专利成果发布成功!", function articalList() {
697
							location.href = "unPatentList.html";
698
						});
699
						$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
700
701
					}
702
703
				} else {
704
					if (data.code == 90) {
705
						$.MsgBox.Alert('提示', '由于操作时间过久,上传图片已失效,请重新上传。');
706
					}
707
				}
708
			},
709
			"data": $data,
710
			"beforeSend": function () {
711
				/*console.log(this.data)*/ },
712
			"contentType": "application/x-www-form-urlencoded",
713
			"traditional": true,
714
			dataType: "json"
715
		});
700 716
	}
701 717
})

+ 162 - 103
js/unPatentList.js

@ -1,4 +1,4 @@
1
$(document).ready(function(){
1
$(document).ready(function () {
2 2
	$(".onlogin .headnavbtn li.mywork").addClass("navcurrent");
3 3
	$(".workmenu>ul>li:contains('成果')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
@ -6,45 +6,48 @@ $(document).ready(function(){
6 6
	var userid = $.cookie("userid");
7 7
	var resourceId;
8 8
	/*资源列表查询*/
9
	function getRecourceMe(n,isbind,num) {
10
		var resourceNameVa=$("#patentName").val();
11
		var $info={};
12
		$info.pageSize=10;
13
		if(resourceNameVa !="") {
14
			$info.key=resourceNameVa;
9
10
	function getRecourceMe(n, isbind, num) {
11
		var resourceNameVa = $("#patentName").val();
12
		var $info = {};
13
		$info.pageSize = 10;
14
		if (resourceNameVa != "") {
15
			$info.key = resourceNameVa;
15 16
		}
16
		$info.pageNo=n;
17
		$info.status=[1,2];
18
		$.ajax({
19
			"url": "/ajax/resResult/pq",
17
		$info.pageNo = n;
18
		$info.status = ['1'];
19
		$info.id = userid
20
		$.ajax({ //获取全部非专数据
21
			// /ajax/resResult/pq/creator
22
			"url": "/ajax/resResult/pq/researcher",
20 23
			"type": "GET",
21
			"success": function(data) {
22
				if(data.success) {
24
			"success": function (data) {
25
				if (data.success) {
23 26
					$("#patentList").html("");
24
					if(num==1) {
25
						if(data.data.data.length==0) {
27
					if (num == 1) {
28
						if (data.data.data.length == 0) {
26 29
							$("#noresource").removeClass("displayNone");
27 30
							$(".noContip").text("您还未发布任何非专利成果");
28 31
							return;
29
						}else{
32
						} else {
30 33
							$("#noresource").addClass("displayNone");
31 34
						}
32
					}else{
33
						if(data.data.data.length==0) {
35
					} else {
36
						if (data.data.data.length == 0) {
34 37
							$("#noresource").removeClass("displayNone");
35 38
							$(".noContip").text("没有符合该搜索条件的内容");
36 39
							return;
37
						}else{
40
						} else {
38 41
							$("#noresource").addClass("displayNone");
39 42
						}
40 43
					}
41 44
					resourceHtml(data.data.data);
42
					if(isbind == true) {
45
					if (isbind == true) {
43 46
						$(".tcdPageCode").createPage({
44 47
							pageCount: Math.ceil(data.data.total / data.data.pageSize),
45 48
							current: data.data.pageNo,
46
							backFn: function(p) {
47
								getRecourceMe(p,false);
49
							backFn: function (p) {
50
								getRecourceMe(p, false);
48 51
							}
49 52
						});
50 53
					}
@ -53,137 +56,193 @@ $(document).ready(function(){
53 56
			"data": $info,
54 57
			dataType: "json",
55 58
			traditional: true,
56
			'error': function() {
59
			'error': function () {
57 60
				$.MsgBox.Alert('提示', '服务器连接超时!');
58 61
			}
59 62
		});
60 63
	}
61
	 getRecourceMe(1,true,1);
62
	 function resourceHtml($data) {
63
	 	for(var i=0;i<$data.length;i++) {
64
			 var oTime,pageview="",draftLable="",oHtml,oLi='',mg= '';
65
			 if ($data[i].pic)
66
	 			var imgSrc="/data/researchResult"+$data[i].pic.split(",")[0];
67
	 		if($data[i].status=='2') {
68
	 			oTime="修改于 "+TimeTr($data[i].modifyTime);
69
	 			draftLable='<span class="draftLable" style="margin-left: 20px;">草稿</span>';
70
	 			oHtml="unPatentIssue.html";
71
				 oLi="class='draftList'"
72
				 mg = '<li><span>'+oTime+'</span>'+draftLable+'</li>'
73
	 		}else if($data[i].status=='1'){
74
	 			oHtml="unPatentShow.html"
75
	 		}
76
	 	var oStr='<li '+oLi+'>'+
77
				'<a href="'+oHtml+'?id='+$data[i].id+'&flag='+$data[i].state+'" target="_blank">'+
78
					'<div class="madiaHead resouseHead" style="background-image: url('+imgSrc+');"></div>'	+						
79
						'<div class="madiaInfo">'+					
80
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
81
							'<ul class="showliTop h2Font clearfix hu2">'+
82
								mg +
83
							'</ul>'+
84
							'<ul class="showliTop h2Font clearfix hu1">'+
85
							'</ul>'+
86
						'</div>'+
87
				'</a>'+
88
				'<ul class="madiaEdit">'+
89
					'<li><span class="deteleThis2" data-id="'+$data[i].id+'"></span></li>'+
90
					'<li><span class="editThis" data-id="'+$data[i].id+'"></span></li>'+
91
				'</ul>'+
92
			'</li>'	
93
			var $oStr=$(oStr);
64
	getRecourceMe(1, true, 1);
65
66
67
	function resourceHtml($data) {
68
		for (var i = 0; i < $data.length; i++) {
69
70
			var oTime, pageview = "",
71
				draftLable = "",
72
				oHtml, oLi = '',
73
				mg = '';
74
			if ($data[i].pic)
75
				var imgSrc = "/data/researchResult" + $data[i].pic.split(",")[0];
76
			if ($data[i].status == '2') {
77
				oTime = "修改于 " + TimeTr($data[i].modifyTime);
78
				draftLable = '<span class="draftLable" style="margin-left: 20px;">草稿</span>';
79
				oHtml = "unPatentIssue.html";
80
				oLi = "class='draftList'"
81
				mg = '<li><span>' + oTime + '</span>' + draftLable + '</li>'
82
			} else if ($data[i].status == '1') {
83
				oHtml = "unPatentShow.html"
84
			}
85
			var oStr = '<li ' + oLi + '>' +
86
				'<a href="' + oHtml + '?id=' + $data[i].id + '&flag=' + $data[i].state + '" target="_blank">' +
87
				'<div class="madiaHead resouseHead" style="background-image: url(' + imgSrc + ');"></div>' +
88
				'<div class="madiaInfo">' +
89
				'<p class="h1Font ellipsisSty">' + $data[i].name + '</p>' +
90
				'<ul class="showliTop h2Font clearfix hu2">' +
91
				mg +
92
				'</ul>' +
93
				'<ul class="showliTop h2Font clearfix hu1">' +
94
				'</ul>' +
95
				'</div>' +
96
				'</a>' +
97
				'<ul class="madiaEdit">' +
98
				'<li><span class="deteleThis3" data-id="' + $data[i].id + '">取消关联</span></li>' +
99
				'<li><span class="editThis" data-id="' + $data[i].id + '"></span></li>' +
100
				'<li><span class="deteleThis2" data-id="' + $data[i].id + '"></span></li>' +
101
				'</ul>' +
102
				'</li>'
103
			var $oStr = $(oStr);
94 104
			$("#patentList").append($oStr);
95
			if ($data[i].status=='1') {
96
				proList($data[i].id,$oStr,$data[i].orgId||'')
97
			
105
			if ($data[i].status == '1') {
106
				proList($data[i].id, $oStr, $data[i].orgId || '')
107
98 108
			}
99
			$oStr.find(".editThis").attr("data-state",$data[i].status);
100
	 	}
101
	 }
102
	 function proList(par,$pa,p3) {
109
			$oStr.find(".editThis").attr("data-state", $data[i].status);
110
		}
111
	}
112
113
	function proList(par, $pa, p3) {
103 114
		$.ajax({
104 115
			"url": "/ajax/resResult/researcher",
105 116
			"type": "GET",
106 117
			"data": {
107 118
				id: par
108 119
			},
109
			"success": function(data) {	
110
				if(data.success) {
120
			"success": function (data) {
121
				if (data.success) {
111 122
					var $da = data.data
112
					if($da.length) {
113
						var arr =[];
114
						for(var i=0;i<$da.length;i++){
123
					if ($da.length) {
124
						var arr = [];
125
						var dom = [];
126
						for (var i = 0; i < $da.length; i++) {
115 127
							arr.push($da[i].name)
128
							dom.push($da[i].id)
116 129
						}
117
						$pa.find('.hu2').append('<li>研究者:'+arr.join(',')+'</li>')
118
						if(p3)
119
						orgname(p3,$pa)
130
						$pa.find('.hu2').append('<li>研究者:' + arr.join(',') + '</li>')
131
						if (p3)
132
							orgname(p3, $pa)
133
						$.ajax({
134
							'url': '/ajax/resResult/selectbyidandPid',
135
							'type': 'get',
136
							'data': {
137
								pid: userid,
138
								id: par
139
							},
140
							'success': function (res) {
141
								var $info = res.data
142
								for (var i = 0; i < $info.length; i++) {
143
									console.log($info[i].name)
144
									if ($info[i].name == '######' || $info[i].status == 0) {
145
										$pa.find('.deteleThis3').css('display', 'none')
146
									} else {
147
										$pa.find('.deteleThis2').css('display', 'none')
148
										$pa.find('.editThis').css('display', 'none')
149
									}
150
								}
151
							}
152
						})
120 153
					}
121 154
				}
122 155
			},
123 156
			"data": {
124
				"id":par
157
				"id": par
125 158
			},
126 159
			dataType: "json",
127
			'error':function() {
160
			'error': function () {
128 161
				$.MsgBox.Alert('提示', '服务器连接超时!');
129 162
			}
130 163
		});
131 164
	}
132
	function orgname(par,$pa) {
165
166
	function orgname(par, $pa) {
133 167
		$.ajax({
134
			"url": "ajax/org/"+par,
168
			"url": "ajax/org/" + par,
135 169
			"type": "GET",
136
			"success": function(data) {
137
				if(data.success) {
138
					$pa.find('.hu1').append('<li>所属机构:'+data.data.name+'</li>')
170
			"success": function (data) {
171
				if (data.success) {
172
					$pa.find('.hu1').append('<li>所属机构:' + data.data.name + '</li>')
139 173
				}
140 174
			},
141 175
			"data": {
142
				"id":par
176
				"id": par
143 177
			},
144 178
			dataType: "json",
145
			'error':function() {
179
			'error': function () {
146 180
				$.MsgBox.Alert('提示', '服务器连接超时!');
147 181
			}
148 182
		});
149 183
	}
150 184
	/*点击修改跳转修改页面*/
151
	$("#patentList").on("click",".editThis",function(){
152
		location.href="unPatentIssue.html?id="+$(this).attr("data-id")+"&flag="+$(this).attr("data-state");
185
	$("#patentList").on("click", ".editThis", function () {
186
		location.href = "unPatentIssue.html?id=" + $(this).attr("data-id") + "&flag=" + $(this).attr("data-state");
153 187
	})
154 188
	/*点击删除跳转修改页面*/
155
	$("#patentList").on("click",".deteleThis2",function(){
156
		resourceId=$(this).attr("data-id");
157
		$.MsgBox.Confirm("提示", "确认删除该成果?",deleResource);
189
	$("#patentList").on("click", ".deteleThis2", function () {
190
		resourceId = $(this).attr("data-id");
191
		$.MsgBox.Confirm("提示", "确认删除该成果?", deleResource);
158 192
	})
193
194
	//点击取消关联
195
	$("#patentList").on("click", ".deteleThis3", function () {
196
		resourceId = $(this).attr("data-id");
197
		$.MsgBox.Confirm("提示", "确认取消该成果?", cancel);
198
	})
199
	//取消关联函数
200
	function cancel() {
201
		$.ajax({
202
			'url': '/ajax/resResult/deleteContact',
203
			'type': 'post',
204
			'data': {
205
				id: resourceId,
206
				uid: userid
207
			},
208
			'success': function (res) {
209
				console.log(res)
210
				getRecourceMe(1, true);
211
			}
212
		})
213
	}
214
215
159 216
	/*删除函数*/
160 217
	function deleResource() {
161
			$.ajax({
162
					"url": "/ajax/resResult/delete",
163
					"type": "POST",
164
					"success": function(data) {
165
						if(data.success) {	
166
							getRecourceMe(1,true);
167
						}
168
					},
169
					"data": {"id":resourceId},
170
					"beforeSend": function() {  },
171
					"contentType": "application/x-www-form-urlencoded",
172
					dataType: "json"
173
				});
218
		$.ajax({
219
			"url": "/ajax/resResult/delete",
220
			"type": "POST",
221
			"success": function (data) {
222
				if (data.success) {
223
					getRecourceMe(1, true);
224
				}
225
			},
226
			"data": {
227
				"id": resourceId
228
			},
229
			"beforeSend": function () {},
230
			"contentType": "application/x-www-form-urlencoded",
231
			dataType: "json"
232
		});
174 233
	}
175 234
	/*输入资源名称限制字数*/
176 235
	$("#patentList").bind({
177
		keyup: function() {
178
			if($(this).val().length > 30) {
236
		keyup: function () {
237
			if ($(this).val().length > 30) {
179 238
				$(this).val($(this).val().substr(0, 30));
180 239
			}
181 240
		}
182 241
	});
183 242
	/*点击搜索*/
184
	$(".searchSpan").click(function(){
243
	$(".searchSpan").click(function () {
185 244
		$(".tcdPageCode").remove();
186 245
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
187
		getRecourceMe(1,true);
246
		getRecourceMe(1, true);
188 247
	})
189
})
248
})

+ 1 - 2
js/unPatentShow.js

@ -3,7 +3,7 @@ $(document).ready(function() {
3 3
	var userid = $.cookie("userid");
4 4
	var resourceId = GetQueryString("id");
5 5
	if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {
6
		location.href = "http://" + window.location.host + "/e/pr.html?id=" + resourceId;
6
		location.href = "http://" + window.location.host + "/e/3.html?id=" + resourceId;
7 7
	}
8 8
	$(".jqzoom").imagezoom();
9 9
	$("#thumblist").on("click", "li a", function() {
@ -324,7 +324,6 @@ $(document).ready(function() {
324 324
				if(data.success) {
325 325
					
326 326
					var $da = data.data;
327
					console.log($da)
328 327
					$("#enterprise,#resPerson").show();
329 328
					if($da.hasOrgLogo) {
330 329
						$("#companyImg").attr("src", "/images/org/" + $da.id + ".jpg");

+ 3 - 0
patentList.html

@ -30,6 +30,9 @@
30 30
					<a class="worksamlltit" href="unPatentList.html">非专利成果</a>
31 31
					<a class="worksamlltit worksamlltitnow">专利成果</a>
32 32
				</div>
33

34

35
				
33 36
				<div class="workcontit">
34 37
					<a class="worksamlltit worksamlltitnow">我的专利</a>
35 38
					<a class="worksamlltit" href="patentImport.html">导入专利</a>

+ 3 - 2
recommend.html

@ -143,7 +143,7 @@
143 143
			<div class="rightconBox floatR">
144 144
				<div class="conItem advertBox advertItem advertItem-A"></div>
145 145
				<div class="conItem privateInfo">
146
					<div class="onlogined displayNone">
146
					<!-- <div class="onlogined displayNone">
147 147
						<div class="owener-info"></div>
148 148
						<div class="statisticsBox">
149 149
							<div class="col-w-4">
@ -166,7 +166,8 @@
166 166
						<div class="goSpanLine">
167 167
							<span class="goarrow">我的关注与收藏</span>
168 168
						</div>
169
					</div>	
169
					</div>	 -->
170
170 171
					<div class="unlogined">
171 172
						<div class="madiaHead useHead"></div>
172 173
						<div class="h3Font">Hi,欢迎您<br>登录后可以和大家交流哦~</div>

+ 3 - 0
teamInfoShow.html

@ -204,4 +204,7 @@
204 204
<script type="text/javascript" src="js/quickLogin.js"></script>
205 205
</body>
206 206
207
208
209
207 210
</html>

+ 114 - 0
unPatentImport.html

@ -0,0 +1,114 @@
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 rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12
13
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
14
15
</head>
16
17
<body>
18
<header id="header">
19
	<script src="js/header.js"></script>
20
</header>
21
<!--中间-->
22
<div id="container">
23
	<div class="containerCon">
24
		<div class="contentCon clearfix conBlock">
25
	        <div class="workmenu">
26
	        	<script src="js/workMenu.js"></script>
27
	        </div>
28
	        <div class="workcon workconG">
29
				<div class="workcontit">
30
					<a class="worksamlltit worksamlltitnow" href="unPatentList.html">非专利成果</a>
31
					<a class="worksamlltit " href='patentList.html'>专利成果</a>
32
				</div>
33
				<div class="workcontit">
34
					<a class="worksamlltit" href="unPatentList.html">我的非专</a>
35
					<a class="worksamlltit worksamlltitnow">导入非专</a>
36
				</div>
37
				<div class="tipShow">
38
			    	<span class="floatL">导入与您相关的非专,企业可以通过它们找到您,与您开展合作!</span>
39
			    	<span class="floatR tipClose"></span>
40
			    </div>
41
				<div class="itemListBolck">
42
					<div class="topOperaBlock clearfix">
43
						<div class="searchAbout col-w-8">
44
							<input class="frmcontype" type="search" name="" placeholder="请输入非专利成果名称" id="patentName">
45
							<span class="searchSpan"></span>
46
						</div>
47
					</div>
48
					<div class="form-item itemListCon">
49
						<div class="form-result aboutRes">
50
							<ul class="importUl">
51
								<!--<li>
52
									<a class="flexCenter" href="">
53
										<div class="madiaHead resouseHead"></div>
54
										<div class="madiaInfo">
55
											<p class="h1Font ellipsisSty">材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护材料腐蚀防护</p>
56
											<p class="h2Font ellipsisSty">厂商型号:北京金恒博远JHBY-GX</p>
57
											<p class="h2Font ellipsisSty">所属机构:北京科技大学</p>
58
											<p class="h2Font ellipsisSty">关键词:新材料</p>
59
										</div>
60
									</a>
61
									<div class="importBtn">
62
										<span class="importSpan-1">导入</span>
63
										<span class="importSpan-2">重新导入</span>
64
										<span class="importSpan-3">已导入</span>
65
									</div>
66
								</li>
67
								<li>
68
									<a class="flexCenter" href="">
69
										<div class="madiaHead resouseHead"></div>
70
										<div class="madiaInfo">
71
											<p class="h1Font ellipsisSty">材料腐蚀防护材料腐蚀防护材料腐蚀防护</p>
72
											<p class="h2Font ellipsisSty">厂商型号:北京金恒博远JHBY-GX</p>
73
											
74
										</div>
75
									</a>
76
									<div class="importBtn">
77
										<span class="importSpan-2">重新导入</span>
78
									</div>
79
								</li>-->
80
							</ul>
81
							<!--无搜索结果-->
82
							<div class="nodatabox displayNone" id="noresource">
83
						        <div class="nodata">
84
						            <div class="picbox picNull"></div>
85
						            <div class="txtbox">
86
						            	<p class="noContip"></p>
87
						            </div>
88
						        </div>
89
						    </div>
90
							<div class="tcdPageCode"></div>
91
						</div>
92
					</div>
93
				</div>
94
			</div>
95
	    </div>
96
    </div>
97
</div>
98
<footer>
99
	<script type="text/javascript" src="js/footer.js"></script>
100
</footer>
101
102
<script type="text/javascript" src="js/jquery.cookie.js"></script>
103
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
104
<script type="text/javascript" src="js/jquery.page.js"></script>
105
<script type="text/javascript" src="js/public/baseUtil.js"></script>
106
<script type="text/javascript" src="js/public/genCom.js"></script>
107
<script type="text/javascript">
108
	$(".tipClose").click(function(){
109
		$(this).parents(".tipShow").slideUp();
110
	})
111
</script>
112
<script type="text/javascript" src="js/unPatentImport.js"></script>
113
</body>
114
</html>

+ 241 - 212
unPatentIssue.html

@ -1,217 +1,246 @@
1 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 rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12
<link rel="stylesheet" type="text/css" href="./css/webuploader/webuploader.css">
13
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
14
</head>
2
 <html>
15 3
16
<body>
17
<header id="header">
18
	<script src="js/header.js"></script>
19
</header>
20
<div id="container">
21
	<div class="containerCon">
22
		<div class="contentCon clearfix conBlock">
23
			<div class="leftconBox floatL">
24
				<ul class="artAbout">
25
					<li>
26
						<dl class="clearfix" id="fileList">
27
							<dd class="uploadD" id="uploadDd">
28
								<div class="uploadFile">
29
			        				<div class="uploadblock">
30
			        					<span class="" id="filePicker">上传图片</span>
31
			        					<!--未上传图片时-->
32
			        					<div class="upFront" id="uploader">
33
				        					<p>非专利成果图片<em class="requiredcon">*</em></p>
34
				        					<p class="uploadtip">JPG/JPEG/PNG格式,<br/>2M以内</p>
35
				            				<span class="upbtn" style="margin-top:8px">上传图片</span>
36
			        					</div>
37
				            		</div>
38
			        			</div>
39
							</dd>
40
							<dd></dd>
41
							<dd></dd>
42
						</dl>
43
					</li>
44
					<li>
45
						<div class="aboutTit">非专利成果名称<em class="requiredcon">*</em><span class="frmconmsg" id="resourceNamePrompt" style="display:none;">50字以内</span></div>
46
						<input type="text" class="frmtype frmcontype" id="resourceName" value="" placeholder="请输入非专利成果名称" maxlength="50"/>
47
					</li>
48
					<li class="form-item">
49
						<div class="aboutTit">研究者<span class="frmconmsg" id="keyPrompt"></span></div>
50
						<div class="col-w-12" style="position: relative;">
51
							<input type="text" class="frmcontype oinput1" placeholder="搜索您想添加的人" data-pro="关键词不得超过10个字"  data-num="10000" data-fontSizeN="15" id="KeyWord2" />
52
							<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
53
							<div class="form-drop keydrop1">
54
								<ul>
55
									
56
								</ul>
57
							</div>
58
						</div>
59
						<div class="form-result keyResult" style="margin-top: -10px;">
60
							<ul class="ulspace editUlist clearfix" id="keyWordlist2">
61
								<!--<li>dd<div class="closeThis"></div></li>-->
62
							</ul>
63
						</div>
64
					</li>
65
					<li>
66
						<div class="aboutTit">所属机构<span class="frmconmsg" id="organization" style="display:none">50字以内</span></div>
67
						<input type="text" class="frmtype frmcontype" id="organizationName" value="" placeholder="请输入所属机构" />
68
						<div class="form-drop keydrop displayNone" id="departmentList">
69
							<ul class="clearfix">
70
								<!--<li class="clearfix">
4
 <head>
5
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
 	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7
 	<meta http-equiv="X-UA-Compatible" content="IE=edge">
8
 	<title>非专利成果发布-科袖网</title>
9
 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
10
 	<link href="css/bootstrap.min.css" rel="stylesheet">
11
 	<link type="text/css" href="css/common.css" rel="stylesheet">
12
 	<link type="text/css" href="css/genindex.css" rel="stylesheet">
13
 	<link rel="stylesheet" type="text/css" href="./css/webuploader/webuploader.css">
14
 	<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
15
 </head>
16
17
 <body>
18
 	<header id="header">
19
 		<script src="js/header.js"></script>
20
 	</header>
21
 	<div id="container">
22
 		<div class="containerCon">
23
 			<div class="contentCon clearfix conBlock">
24
 				<div class="leftconBox floatL">
25
 					<ul class="artAbout">
26
 						<li>
27
 							<dl class="clearfix" id="fileList">
28
 								<dd class="uploadD" id="uploadDd">
29
 									<div class="uploadFile">
30
 										<div class="uploadblock">
31
 											<span class="" id="filePicker">上传图片</span>
32
 											<!--未上传图片时-->
33
 											<div class="upFront" id="uploader">
34
 												<p>非专利成果图片<em class="requiredcon">*</em></p>
35
 												<p class="uploadtip">JPG/JPEG/PNG格式,<br />2M以内</p>
36
 												<span class="upbtn" style="margin-top:8px">上传图片</span>
37
 											</div>
38
 										</div>
39
 									</div>
40
 								</dd>
41
 								<dd></dd>
42
 								<dd></dd>
43
 							</dl>
44
 						</li>
45
 						<li>
46
 							<div class="aboutTit">非专利成果名称<em class="requiredcon">*</em><span class="frmconmsg"
47
 									id="resourceNamePrompt" style="display:none;">50字以内</span></div>
48
 							<input type="text" class="frmtype frmcontype" id="resourceName" value=""
49
 								placeholder="请输入非专利成果名称" maxlength="50" />
50
 						</li>
51
 						<li class="form-item">
52
 							<div class="aboutTit">研究者<em class="requiredcon">*</em><span class="frmconmsg"
53
 									id="keyPrompt"></span></div>
54
 							<div class="col-w-12" style="position: relative;">
55
 								<input type="text" class="frmcontype oinput1" placeholder="搜索您想添加的人"
56
 									data-pro="关键词不得超过10个字" data-num="10000" data-fontSizeN="15" id="KeyWord3" />
57
 								<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
58
 								<div class="form-drop keydrop1">
59
 									<ul>
60
61
 									</ul>
62
 								</div>
63
 							</div>
64
 							<div class="form-result keyResult" style="margin-top: -10px;">
65
 								<ul class="ulspace editUlist clearfix" id="keyWordlist2">
66
 									<!--<li>dd<div class="closeThis"></div></li>-->
67
 								</ul>
68
 							</div>
69
 						</li>
70
 						<li>
71
 							<div class="aboutTit">所属机构<span class="frmconmsg" id="organization"
72
 									style="display:none">50字以内</span></div>
73
 							<input type="text" class="frmtype frmcontype" id="organizationName" value=""
74
 								placeholder="请输入所属机构" />
75
 							<div class="form-drop keydrop displayNone" id="departmentList">
76
 								<ul class="clearfix">
77
 									<!--<li class="clearfix">
71 78
									<img src="images/authsort2.png" alt="" class="floatL" style="width:50px;height:50px;"/>
72 79
									<p class="h2Font floatL">金属材料工程与腐蚀</p>
73 80
								</li>-->
74
							</ul>
75
						</div>
76
					</li>
77
					<li>
78
						<div class="aboutTit">所属部门<span class="frmconmsg" id="resourceNamePrompt" style="display:none;">50字以内</span></div>
79
						<input type="text" class="frmtype frmcontype" id="department" value="" placeholder="请输入所属部门" />
80
					</li>
81
					<li class="form-item">
82
						<div class="aboutTit">行业领域<span class="frmconmsg" id="keyPrompt"></span></div>
83
						<div class="col-w-12" style="position: relative;">
84
							<input type="text" class="frmcontype oinput" placeholder="请填写成果相关的行业领域,如:制造业、互联网、新材料" data-pro="关键词不得超过10个字"  data-num="20" data-fontSizeN="15" id="KeyWord" />
85
							<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
86
							<div class="form-drop keydrop">
87
								<ul>
88
									
89
								</ul>
90
							</div>
91
						</div>
92
						<div class="form-result keyResult" style="margin-top: -10px;">
93
							<ul class="ulspace editUlist clearfix" id="keyWordlist">
94
								<!--<li>dd<div class="closeThis"></div></li>-->
95
							</ul>
96
						</div>
97
					</li>
98
					<li class="form-item">
99
						<div class="aboutTit">应用领域<span class="frmconmsg" id="keyPrompt"></span></div>
100
						<div class="col-w-12" style="position: relative;">
101
							<input type="text" class="frmcontype oinput" placeholder="请填写成果相关的应用领域,如:空气净化、致霾气体降解、污水处理、抗菌、自清洁" data-pro="关键词不得超过10个字"  data-num="20" data-fontSizeN="15" id="KeyWord1" />
102
							<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
103
							<div class="form-drop keydrop">
104
								<ul>
105
									
106
								</ul>
107
							</div>
108
						</div>
109
						<div class="form-result keyResult" style="margin-top: -10px;">
110
							<ul class="ulspace editUlist clearfix" id="keyWordlist1">
111
								<!--<li>dd<div class="closeThis"></div></li>-->
112
							</ul>
113
						</div>
114
					</li>
115
					<li>
116
						<div class="aboutTit">非专利成果简介<span class="frmconmsg" id="performance" style="display:none;">2000字以内</span></div>
117
				    	<div class="msgContbox">
118
				    		<textarea class="msgCont" placeholder="请输入非专利成果简介" id="descp" maxlength="2000"></textarea>
119
				    		<span class="msgconNum"><em>0</em>/2000</span>
120
				    	</div>
121
					</li>
122
					<li>
123
						<div class="aboutTit">应用介绍<span class="frmconmsg" id="remark" style="display:none;">2000字以内</span></div>
124
						<div class="msgContbox">
125
				    		<textarea class="msgCont" placeholder="请输入非专利成果的应用介绍" id="applyDescp" maxlength="2000"></textarea>
126
				    		<span class="msgconNum"><em>0</em>/2000</span>
127
				    	</div>
128
					</li>
129
					<li>
130
						<div class="aboutTit">技术优势<span class="frmconmsg" id="remark" style="display:none;">2000字以内</span></div>
131
						<div class="msgContbox">
132
							<textarea class="msgCont" placeholder="请输入非专利成果的技术优势" id="advantage" maxlength="2000"></textarea>
133
							<span class="msgconNum"><em>0</em>/2000</span>
134
						</div>
135
					</li>
136
					<li>
137
						<div class="aboutTit">技术指标<span class="frmconmsg" id="remark" style="display:none;">2000字以内</span></div>
138
						<div class="msgContbox">
139
							<textarea class="msgCont" placeholder="请输入非专利成果的技术指标" id="indicator" maxlength="2000"></textarea>
140
							<span class="msgconNum"><em>0</em>/2000</span>
141
						</div>
142
					</li>
143
					<li>
144
						<div class="aboutTit">产业化前景<span class="frmconmsg" id="remark" style="display:none;">2000字以内</span></div>
145
						<div class="msgContbox">
146
							<textarea class="msgCont" placeholder="请输入非专利成果的产业化前景" id="prospect" maxlength="2000"></textarea>
147
							<span class="msgconNum"><em>0</em>/2000</span>
148
						</div>
149
					</li>
150
					<li>
151
						<div class="aboutTit">经济和社会效益<span class="frmconmsg"  style="display:none;">2000字以内</span></div>
152
						<div class="msgContbox">
153
							<textarea class="msgCont" placeholder="请输入非专利成果的经济和社会效益" id="benefit" maxlength="2000"></textarea>
154
							<span class="msgconNum"><em>0</em>/2000</span>
155
						</div>
156
					</li>
157
				</ul>
158
			</div>
159
			<div class="rightconBox floatR">
160
				<div class="conItem conItemFirst">
161
					<ul class="operateBlock" id="operateBlocko">
162
						<li class="goFabu">
163
							<em class="operateicon icon-issue"></em>
164
							<p>发布</p>
165
						</li>
166
						<li class="articalPreview" id="oPreview">
167
							<em class="operateicon icon-preview"></em>
168
							<p>预览</p>
169
						</li>
170
						<li id="oDraft">
171
							<em class="operateicon icon-draft"></em>
172
							<p>存草稿</p>
173
						</li>
174
						<li class="disableLi" id="deleteResource"><!--只要预览、存草稿、发布之后移除disableLi类-->
175
							<em class="operateicon icon-delete"></em>
176
							<p>删除</p>
177
						</li>
178
					</ul>
179
				</div>
180
				
181
		</div>
182
	</div>
183
</div>
184
<div class="footer_tools">
185
  <a id="scrollUp" href="javascript:;" title="返回顶部"></a>
186
</div>
187
<footer>
188
	<script type="text/javascript" src="js/footer.js"></script>
189
</footer>
190
<script type="text/javascript" src="js/jquery.cookie.js"></script>
191
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
192
<script type="text/javascript" src="js/jquery.page.js"></script>
193
<script type="text/javascript" src="js/ueditor/ueditor.config.js"></script>
194
<script type="text/javascript" src="js/ueditor/ueditor.all.js"></script>
195
<script type="text/javascript" src="./js/webuploader/webuploader.js"></script>
196
<script type="text/javascript" src="js/public/baseUtil.js"></script>
197
<script type="text/javascript" src="js/public/genCom.js"></script>
198
<script type="text/javascript" src="js/unPatentIssue.js"></script>
199
<script type="text/javascript">
200
	//回到顶部
201
	var $body = $(document.body);;
202
	var $bottomTools = $('.footer_tools');
203
	$(window).scroll(function () {
204
		var scrollHeight = $(document).height();
205
		var scrollTop = $(window).scrollTop();
206
		var $footerHeight = $('footer').outerHeight(true);
207
		var $windowHeight = $(window).innerHeight();
208
		scrollTop > 50 ? $("#scrollUp").fadeIn(200).css("display","block") : $("#scrollUp").fadeOut(200);			
209
		$bottomTools.css("bottom", scrollHeight - scrollTop - $footerHeight > $windowHeight ? 20 : $windowHeight + scrollTop + $footerHeight + 20 - scrollHeight);
210
	});
211
	$('#scrollUp').click(function (e) {
212
		e.preventDefault();
213
		$('html,body').animate({ scrollTop:0});
214
	});
215
</script>
216
</body>
217
</html>
81
 								</ul>
82
 							</div>
83
 						</li>
84
 						<li>
85
 							<div class="aboutTit">所属部门<span class="frmconmsg" id="resourceNamePrompt"
86
 									style="display:none;">50字以内</span></div>
87
 							<input type="text" class="frmtype frmcontype" id="department" value=""
88
 								placeholder="请输入所属部门" />
89
 						</li>
90
 						<li class="form-item">
91
 							<div class="aboutTit">行业领域<span class="frmconmsg" id="keyPrompt"></span></div>
92
 							<div class="col-w-12" style="position: relative;">
93
 								<input type="text" class="frmcontype oinput" placeholder="请填写成果相关的行业领域,如:制造业、互联网、新材料"
94
 									data-pro="关键词不得超过10个字" data-num="20" data-fontSizeN="15" id="KeyWord" />
95
 								<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
96
 								<div class="form-drop keydrop">
97
 									<ul>
98
99
 									</ul>
100
 								</div>
101
 							</div>
102
 							<div class="form-result keyResult" style="margin-top: -10px;">
103
 								<ul class="ulspace editUlist clearfix" id="keyWordlist">
104
 									<!--<li>dd<div class="closeThis"></div></li>-->
105
 								</ul>
106
 							</div>
107
 						</li>
108
 						<li class="form-item">
109
 							<div class="aboutTit">应用领域<span class="frmconmsg" id="keyPrompt"></span></div>
110
 							<div class="col-w-12" style="position: relative;">
111
 								<input type="text" class="frmcontype oinput"
112
 									placeholder="请填写成果相关的应用领域,如:空气净化、致霾气体降解、污水处理、抗菌、自清洁" data-pro="关键词不得超过10个字"
113
 									data-num="20" data-fontSizeN="15" id="KeyWord1" />
114
 								<button type="button" class="frmcontype btnModel frmaddG addButton">添加</button>
115
 								<div class="form-drop keydrop">
116
 									<ul>
117
118
 									</ul>
119
 								</div>
120
 							</div>
121
 							<div class="form-result keyResult" style="margin-top: -10px;">
122
 								<ul class="ulspace editUlist clearfix" id="keyWordlist1">
123
 									<!--<li>dd<div class="closeThis"></div></li>-->
124
 								</ul>
125
 							</div>
126
 						</li>
127
 						<li>
128
 							<div class="aboutTit">非专利成果简介<span class="frmconmsg" id="performance"
129
 									style="display:none;">2000字以内</span></div>
130
 							<div class="msgContbox">
131
 								<textarea class="msgCont" placeholder="请输入非专利成果简介" id="descp"
132
 									maxlength="2000"></textarea>
133
 								<span class="msgconNum"><em>0</em>/2000</span>
134
 							</div>
135
 						</li>
136
 						<li>
137
 							<div class="aboutTit">应用介绍<span class="frmconmsg" id="remark"
138
 									style="display:none;">2000字以内</span></div>
139
 							<div class="msgContbox">
140
 								<textarea class="msgCont" placeholder="请输入非专利成果的应用介绍" id="applyDescp"
141
 									maxlength="2000"></textarea>
142
 								<span class="msgconNum"><em>0</em>/2000</span>
143
 							</div>
144
 						</li>
145
 						<li>
146
 							<div class="aboutTit">技术优势<span class="frmconmsg" id="remark"
147
 									style="display:none;">2000字以内</span></div>
148
 							<div class="msgContbox">
149
 								<textarea class="msgCont" placeholder="请输入非专利成果的技术优势" id="advantage"
150
 									maxlength="2000"></textarea>
151
 								<span class="msgconNum"><em>0</em>/2000</span>
152
 							</div>
153
 						</li>
154
 						<li>
155
 							<div class="aboutTit">技术指标<span class="frmconmsg" id="remark"
156
 									style="display:none;">2000字以内</span></div>
157
 							<div class="msgContbox">
158
 								<textarea class="msgCont" placeholder="请输入非专利成果的技术指标" id="indicator"
159
 									maxlength="2000"></textarea>
160
 								<span class="msgconNum"><em>0</em>/2000</span>
161
 							</div>
162
 						</li>
163
 						<li>
164
 							<div class="aboutTit">产业化前景<span class="frmconmsg" id="remark"
165
 									style="display:none;">2000字以内</span></div>
166
 							<div class="msgContbox">
167
 								<textarea class="msgCont" placeholder="请输入非专利成果的产业化前景" id="prospect"
168
 									maxlength="2000"></textarea>
169
 								<span class="msgconNum"><em>0</em>/2000</span>
170
 							</div>
171
 						</li>
172
 						<li>
173
 							<div class="aboutTit">经济和社会效益<span class="frmconmsg" style="display:none;">2000字以内</span>
174
 							</div>
175
 							<div class="msgContbox">
176
 								<textarea class="msgCont" placeholder="请输入非专利成果的经济和社会效益" id="benefit"
177
 									maxlength="2000"></textarea>
178
 								<span class="msgconNum"><em>0</em>/2000</span>
179
 							</div>
180
 						</li>
181
 					</ul>
182
 				</div>
183
 				<div class="rightconBox floatR">
184
 					<div class="conItem conItemFirst">
185
 						<ul class="operateBlock" id="operateBlocko">
186
 							<li class="goFabu">
187
 								<em class="operateicon icon-issue"></em>
188
 								<p>发布</p>
189
 							</li>
190
 							<li class="articalPreview" id="oPreview">
191
 								<em class="operateicon icon-preview"></em>
192
 								<p>预览</p>
193
 							</li>
194
 							<li id="oDraft">
195
 								<em class="operateicon icon-draft"></em>
196
 								<p>存草稿</p>
197
 							</li>
198
 							<li class="disableLi" id="deleteResource">
199
 								<!--只要预览、存草稿、发布之后移除disableLi类-->
200
 								<em class="operateicon icon-delete"></em>
201
 								<p>删除</p>
202
 							</li>
203
 						</ul>
204
 					</div>
205
206
 				</div>
207
 			</div>
208
 		</div>
209
 		<div class="footer_tools">
210
 			<a id="scrollUp" href="javascript:;" title="返回顶部"></a>
211
 		</div>
212
 		<footer>
213
 			<script type="text/javascript" src="js/footer.js"></script>
214
 		</footer>
215
 		<script type="text/javascript" src="js/jquery.cookie.js"></script>
216
 		<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
217
 		<script type="text/javascript" src="js/jquery.page.js"></script>
218
 		<script type="text/javascript" src="js/ueditor/ueditor.config.js"></script>
219
 		<script type="text/javascript" src="js/ueditor/ueditor.all.js"></script>
220
 		<script type="text/javascript" src="./js/webuploader/webuploader.js"></script>
221
 		<script type="text/javascript" src="js/public/baseUtil.js"></script>
222
 		<script type="text/javascript" src="js/public/genCom.js"></script>
223
 		<script type="text/javascript" src="js/unPatentIssue.js"></script>
224
 		<script type="text/javascript">
225
 			//回到顶部
226
 			var $body = $(document.body);;
227
 			var $bottomTools = $('.footer_tools');
228
 			$(window).scroll(function () {
229
 				var scrollHeight = $(document).height();
230
 				var scrollTop = $(window).scrollTop();
231
 				var $footerHeight = $('footer').outerHeight(true);
232
 				var $windowHeight = $(window).innerHeight();
233
 				scrollTop > 50 ? $("#scrollUp").fadeIn(200).css("display", "block") : $("#scrollUp").fadeOut(200);
234
 				$bottomTools.css("bottom", scrollHeight - scrollTop - $footerHeight > $windowHeight ? 20 :
235
 					$windowHeight + scrollTop + $footerHeight + 20 - scrollHeight);
236
 			});
237
 			$('#scrollUp').click(function (e) {
238
 				e.preventDefault();
239
 				$('html,body').animate({
240
 					scrollTop: 0
241
 				});
242
 			});
243
 		</script>
244
 </body>
245
246
 </html>

+ 78 - 71
unPatentList.html

@ -1,76 +1,83 @@
1 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 rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
2
 <html>
12 3
13
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
4
 <head>
5
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
 	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7
 	<meta http-equiv="X-UA-Compatible" content="IE=edge">
8
 	<title>非专利成果-我的工作台-科袖网</title>
9
 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
10
 	<link href="css/bootstrap.min.css" rel="stylesheet">
11
 	<link type="text/css" href="css/common.css" rel="stylesheet">
12
 	<link type="text/css" href="css/genindex.css" rel="stylesheet">
14 13
15
</head>
14
 	<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
16 15
17
<body>
18
<header id="header">
19
	<script src="js/header.js"></script>
20
</header>
21
<!--中间-->
22
<div id="container">
23
	<div class="containerCon">
24
		<div class="contentCon clearfix conBlock">
25
	        <div class="workmenu">
26
	        	<script src="js/workMenu.js"></script>
27
	        </div>
28
	        <div class="workcon workconG">
29
				<div class="workcontit">
30
					<a class="worksamlltit worksamlltitnow">非专利成果</a>
31
					<a class="worksamlltit" href="patentList.html">专利成果</a>
32
				</div>
33
				<div class="itemListBolck">
34
					<div class="topOperaBlock clearfix">
35
						<div class="searchAbout col-w-8">
36
							<input class="frmcontype" type="search" name="" placeholder="请输入非专利成果名称、内容" id="patentName">
37
							<span class="searchSpan"></span>
38
						</div>
39
						<div class="issueSpanBlock col-w-4">
40
							<a href="unPatentIssue.html" class="issueSpan" target="_blank">发布非专利成果</a>
41
						</div>
42
					</div>
43
					<div class="form-item itemListCon">
44
						<div class="form-result aboutRes">
45
							<ul id="patentList">
46
								
47
							</ul>
48
							<!--无搜索结果-->
49
							<div class="nodatabox displayNone" id="noresource">
50
						        <div class="nodata">
51
						            <div class="picbox picNull"></div>
52
						            <div class="txtbox">
53
						            	<p class="noContip"></p>
54
						            </div>
55
						        </div>
56
						    </div>
57
							<div class="tcdPageCode"></div>
58
						</div>
59
					</div>
60
				</div>
61
			</div>
62
	    </div>
63
    </div>
64
</div>
65
<footer>
66
	<script type="text/javascript" src="js/footer.js"></script>
67
</footer>
16
 </head>
68 17
69
<script type="text/javascript" src="js/jquery.cookie.js"></script>
70
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
71
<script type="text/javascript" src="js/jquery.page.js"></script>
72
<script type="text/javascript" src="js/public/baseUtil.js"></script>
73
<script type="text/javascript" src="js/public/genCom.js"></script>
74
<script type="text/javascript" src="js/unPatentList.js"></script>
75
</body>
76
</html>
18
 <body>
19
 	<header id="header">
20
 		<script src="js/header.js"></script>
21
 	</header>
22
 	<!--中间-->
23
 	<div id="container">
24
 		<div class="containerCon">
25
 			<div class="contentCon clearfix conBlock">
26
 				<div class="workmenu">
27
 					<script src="js/workMenu.js"></script>
28
 				</div>
29
 				<div class="workcon workconG">
30
 					<div class="workcontit">
31
 						<a class="worksamlltit worksamlltitnow">非专利成果</a>
32
 						<a class="worksamlltit" href="patentList.html">专利成果</a>
33
 					</div>
34
 					<div class="workcontit">
35
 						<a class="worksamlltit worksamlltitnow">我的非专</a>
36
 						<a class="worksamlltit" href="unPatentImport.html">导入非专</a>
37
 					</div>
38
 					<div class="itemListBolck">
39
 						<div class="topOperaBlock clearfix">
40
 							<div class="searchAbout col-w-8">
41
 								<input class="frmcontype" type="search" name="" placeholder="请输入非专利成果名称、内容"
42
 									id="patentName">
43
 								<span class="searchSpan"></span>
44
 							</div>
45
 							<div class="issueSpanBlock col-w-4">
46
 								<a href="unPatentIssue.html" class="issueSpan" target="_blank">发布非专利成果</a>
47
 							</div>
48
 						</div>
49
 						<div class="form-item itemListCon">
50
 							<div class="form-result aboutRes">
51
 								<ul id="patentList">
52
53
 								</ul>
54
 								<!--无搜索结果-->
55
 								<div class="nodatabox displayNone" id="noresource">
56
 									<div class="nodata">
57
 										<div class="picbox picNull"></div>
58
 										<div class="txtbox">
59
 											<p class="noContip"></p>
60
 										</div>
61
 									</div>
62
 								</div>
63
 								<div class="tcdPageCode"></div>
64
 							</div>
65
 						</div>
66
 					</div>
67
 				</div>
68
 			</div>
69
 		</div>
70
 	</div>
71
 	<footer>
72
 		<script type="text/javascript" src="js/footer.js"></script>
73
 	</footer>
74
75
 	<script type="text/javascript" src="js/jquery.cookie.js"></script>
76
 	<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
77
 	<script type="text/javascript" src="js/jquery.page.js"></script>
78
 	<script type="text/javascript" src="js/public/baseUtil.js"></script>
79
 	<script type="text/javascript" src="js/public/genCom.js"></script>
80
 	<script type="text/javascript" src="js/unPatentList.js"></script>
81
 </body>
82
83
 </html>

+ 1 - 24
unPatentShow.html

@ -1,28 +1,5 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3
4
 <head>
5
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
 	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7
 	<meta http-equiv="X-UA-Compatible" content="IE=edge">
8
 	<title>浏览非专利成果-科袖网</title>
9
 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
10
 	<link href="css/bootstrap.min.css" rel="stylesheet">
11
 	<link type="text/css" href="css/common.css" rel="stylesheet">
12
 	<link type="text/css" href="css/genindex.css" rel="stylesheet">
13
 	<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
14
 	<script type="text/javascript" src="js/jquery.imagezoom.min.js"></script>
15
 	<script>
16
 		var _hmt = _hmt || [];
17
 		(function () {
18
 			var hm = document.createElement("script");
19
 			hm.src = "https://hm.baidu.com/hm.js?d3db502c8cee2d618c01fe7aa6518602";
20
 			var s = document.getElementsByTagName("script")[0];
21
 			s.parentNode.insertBefore(hm, s);
22
 		})();
23
 	</script>
24
 </head>
25
26 3
 <body>
27 4
 	<header id="header">
28 5
 		<script src="js/header.js"></script>
@ -169,7 +146,7 @@
169 146
 		function makeCode() {
170 147
 			var hurl = window.location.host;
171 148
 			var resourceId = GetQueryString("productId");
172
 			var elurl = "http://" + hurl + "/e/pr.html?id=" + resourceId;
149
 			var elurl = "http://" + hurl + "/e/3.html?id=" + resourceId;
173 150
 			qrcode.makeCode(elurl);
174 151
 		}
175 152
 		makeCode();

+ 3 - 3
userInforShow.html

@ -106,9 +106,9 @@
106 106
							<li rel="item8drop2" data-num="6" class="attentType">我关注的企业</li>
107 107
							<li rel="item8drop6" data-num="13" class="attentType">我关注的团队</li>
108 108
							<li rel="item8drop3" data-num="8" class="attentType">我关注的问题</li>
109
							<li rel="item8drop4" id="dropMenu" tmp="drop4list" class="rightbtn attentType"><span tmp="">我收藏的文章</span><em class="foldtr"></em>
109
							<li rel="item8drop4" id="dropMenu" tmp="drop4list" class="rightbtn attentType"><span tmp="">我收藏的服务</span><em class="foldtr"></em>
110 110
								<ul class="table-drop" id="drop4list">
111
									<li rel="item8drop4item1" id="collectArtTab" data-num="3" class="attentType">我收藏的文章</li>
111
									<!-- <li rel="item8drop4item1" id="collectArtTab" data-num="3" class="attentType">我收藏的文章</li> -->
112 112
									<li rel="item8drop4item7" id="collectSerTab" data-num="10" class="attentType">我收藏的服务</li>
113 113
									<li rel="item8drop4item4" id="collectResTab" data-num="2" class="attentType">我收藏的资源</li>
114 114
									<li rel="item8drop4item2" id="collectPatTab" data-num="4" class="attentType">我收藏的专利</li>
@ -479,7 +479,7 @@
479 479
					</div>
480 480
					<div class="conItem statisticsBox alignCenter clearfix" style="padding:30px 10px">
481 481
						<div class="col-w-12">
482
							<p>发布需求、资源、文章、专利、论文 </p>
482
							<p>发布需求、资源、专利、论文 </p>
483 483
							<a class="goarrow" target="_blank" href="myDemand.html">进入我的工作台<em></em></a>
484 484
						</div>
485 485
					</div>