Browse Source

Merge branch 'dev' of http://121.42.53.174:3000/jiapeng/portal-front.git into dev

luyanan 7 years ago
parent
commit
6b9737abe5
7 changed files with 39 additions and 19 deletions
  1. 3 4
      css/index.css
  2. 2 2
      e/a.html
  3. 26 3
      e/p.html
  4. 1 1
      e/r.html
  5. 1 1
      index.html
  6. 1 1
      js/header.js
  7. 5 7
      js/information.brow.js

+ 3 - 4
css/index.css

245
.coulstblock .coulstbox .coulstbtn{padding:24px 10px; margin-right: 20px;}
245
.coulstblock .coulstbox .coulstbtn{padding:24px 10px; margin-right: 20px;}
246
.coulstbtn span,#conbtn span{display:inline-block;width:120px;text-align:center;padding:8px;margin-right:6px; border-radius:4px; text-align:center; color:#fff; background:#ff9900;cursor:pointer}
246
.coulstbtn span,#conbtn span{display:inline-block;width:120px;text-align:center;padding:8px;margin-right:6px; border-radius:4px; text-align:center; color:#fff; background:#ff9900;cursor:pointer}
247
.coulstbtn .shareWeixin{background: #52DA4D;}
247
.coulstbtn .shareWeixin{background: #52DA4D;}
248
.shareCode{background:#FFFFFF;border:6px solid rgba(0,0,0,.2);padding:8px;position: absolute;bottom:40px;left:0;display: none;width: 260px;}
249
.shareCode img{width:80px;height:80px;}
250
.shareCode .shareWord{width: 126px;margin:10px;color:#666666;text-align: left;font-size: 14px; line-height: 20px;}
251
.coulstbtn .attentBtn{position:relative;padding-left:20px;border:1px solid #ff9900;color:#ff9900;background: transparent;}
248
.shareCode{background:#FFFFFF;border:6px solid rgba(0,0,0,.2);padding:8px;position: absolute;bottom:40px;left:0;display: none;width:340px;}
249
.shareCode img{width:120px;height:120px;}
250
.shareCode .shareWord{width: 160px;margin:16px 10px;color:#666666;text-align: left;font-size: 16px; line-height: 28px;}.coulstbtn .attentBtn{position:relative;padding-left:20px;border:1px solid #ff9900;color:#ff9900;background: transparent;}
252
.coulstbtn .attentBtn em{position:absolute;top:50%;margin-top:-8px;left:34px;display:inline-block; width:16px;height:18px;background:url(../images/favoricon.png) 0 -32px no-repeat;background-size:100% auto;}
251
.coulstbtn .attentBtn em{position:absolute;top:50%;margin-top:-8px;left:34px;display:inline-block; width:16px;height:18px;background:url(../images/favoricon.png) 0 -32px no-repeat;background-size:100% auto;}
253
.coulstbtn .attentBtn i{font-style: normal;}
252
.coulstbtn .attentBtn i{font-style: normal;}
254
.coulstbtn .attentBtn.attented{color:#ffffff;padding-left:24px;background: #f4c600;border:1px solid #f4c600;}
253
.coulstbtn .attentBtn.attented{color:#ffffff;padding-left:24px;background: #f4c600;border:1px solid #f4c600;}

+ 2 - 2
e/a.html

83
							}
83
							}
84
						},
84
						},
85
						"error":function(){
85
						"error":function(){
86
							$.MsgBox.Alert('提示','链接服务器超时')
86
							//$.MsgBox.Alert('提示','链接服务器超时')
87
						}
87
						}
88
					});
88
					});
89
				var oArticleModule = {
89
				var oArticleModule = {
90
					articleId: GetQueryString("articleId"),
90
					articleId: GetQueryString("id"),
91
					oAjaxGet: function(url, obj, oType, oFun) {
91
					oAjaxGet: function(url, obj, oType, oFun) {
92
						$.ajax({
92
						$.ajax({
93
							url: url,
93
							url: url,

+ 26 - 3
e/p.html

118
				var nameli = document.getElementById("nameli");
118
				var nameli = document.getElementById("nameli");
119
				var personSummary = document.getElementsByClassName("breifinfo")[0];
119
				var personSummary = document.getElementsByClassName("breifinfo")[0];
120
				var professorId = GetQueryString("id");
120
				var professorId = GetQueryString("id");
121
			$.ajax({
122
			"url": "/ajax/resource/qaProPublish",
123
			"type": "get",
124
			"data": {
125
				"professorId": professorId,
126
			},
127
			"success": function(data) {
128
				if(data.success) {
129
					console.log(data)
130
					var $data=data.data
131
					if($data.length) {
132
								professorResource($data);
133
							} else {
134
								document.getElementById("professorresourceList").style.display = "none";
135
							}
136
						}
137
			},
138
			"error": function() {
139
				$.MsgBox.Alert('提示', '链接服务器超时')
140
			}
141
		});
142
				
143
							
121
				function GetQueryString(name) {
144
				function GetQueryString(name) {
122
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
145
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
123
					var r = window.location.search.substr(1).match(reg);
146
					var r = window.location.search.substr(1).match(reg);
225
							string += '<div class="proinfor clearfix">'
248
							string += '<div class="proinfor clearfix">'
226
							string += '<div class="media-object pull-left ResImgBox">'
249
							string += '<div class="media-object pull-left ResImgBox">'
227
							if($data[i].images.length) {
250
							if($data[i].images.length) {
228
								string += '<img class="resImg headRadius" src="../images/resource/' + $data[i].resourceId + '.jpg">'
251
								string += '<img class="resImg headRadius" src="../data/resource/' + $data[i].images[0].imageSrc+ '">'
229
252
230
							} else {
253
							} else {
231
254
351
								document.getElementById("professorinfoapply").style.display = "none";
374
								document.getElementById("professorinfoapply").style.display = "none";
352
							}
375
							}
353
							//专家资源
376
							//专家资源
354
							if($data.resources.length) {
377
							/*if($data.resources.length) {
355
								professorResource($data.resources);
378
								professorResource($data.resources);
356
							} else {
379
							} else {
357
								document.getElementById("professorresourceList").style.display = "none";
380
								document.getElementById("professorresourceList").style.display = "none";
358
							}
381
							}*/
359
							/*//如无详细内容数据,隐藏详细点击的按钮
382
							/*//如无详细内容数据,隐藏详细点击的按钮
360
							if(!$data.edus.length && !$data.jobs.length && !$data.projects.length && !$data.papers.length && !$data.patents.length && !$data.honors.length) {
383
							if(!$data.edus.length && !$data.jobs.length && !$data.projects.length && !$data.papers.length && !$data.patents.length && !$data.honors.length) {
361
								document.getElementById("detailProfessor").style.display = "none";
384
								document.getElementById("detailProfessor").style.display = "none";

+ 1 - 1
e/r.html

127
				if(data.success) {}
127
				if(data.success) {}
128
			},
128
			},
129
			"error": function() {
129
			"error": function() {
130
				$.MsgBox.Alert('提示', '链接服务器超时')
130
				//$.MsgBox.Alert('提示', '链接服务器超时')
131
			}
131
			}
132
		});
132
		});
133
	function getRecourceMe() {
133
	function getRecourceMe() {

+ 1 - 1
index.html

49
					</ul>
49
					</ul>
50
				</div>-->
50
				</div>-->
51
			    <!-- <select class="lookwho floatL" id="lookFor"><option value="0">找专家</option><option value="1">找资源</option></select>  -->
51
			    <!-- <select class="lookwho floatL" id="lookFor"><option value="0">找专家</option><option value="1">找资源</option></select>  -->
52
				<input type="text" placeholder="搜索专家、机构、研究方向" class="sear-txt" id="searchContent" >
52
				<input type="text" placeholder="搜索专家、资源、文章" class="sear-txt" id="searchContent" >
53
				<div class="sear-btn" id="search" >搜索</div>
53
				<div class="sear-btn" id="search" >搜索</div>
54
			</div>
54
			</div>
55
		</div>
55
		</div>

+ 1 - 1
js/header.js

40
						'</ul>' +
40
						'</ul>' +
41
					'</div>' +
41
					'</div>' +
42
					'<div class="searchblock">'+
42
					'<div class="searchblock">'+
43
				    '<input type="text" placeholder="搜索专家、研发资源" class="search-txt" id="hsearchContent">'+
43
				    '<input type="text" placeholder="搜索专家、资源、文章" class="search-txt" id="hsearchContent">'+
44
						'<div class="search-btn" id="hsearch"><span class="search-icon"></span></div>'+
44
						'<div class="search-btn" id="hsearch"><span class="search-icon"></span></div>'+
45
					'</div>'+
45
					'</div>'+
46
					//未登录状态
46
					//未登录状态

+ 5 - 7
js/information.brow.js

810
						add += '</div>'
810
						add += '</div>'
811
						$("#sharescrollbox").append(add);
811
						$("#sharescrollbox").append(add);
812
						$('.applicant').eq(i).attr("resourceId", data.data[i].resourceId);
812
						$('.applicant').eq(i).attr("resourceId", data.data[i].resourceId);
813
814
						$(".resourceImg").eq(i).attr("src","/data/resource/" + data.data[i].images[0].imageSrc);
815
						$(".resourceImg").load(function() {})
816
							.error(function() {
817
								$(this).attr("src", "/images/default-resource.jpg");
818
							});
819
813
						if(data.data[i].images.length) {
814
							$(".resourceImg").eq(i).attr("src","/data/resource/" + data.data[i].images[0].imageSrc);
815
						}else{
816
							$(".resourceImg").eq(i).attr("src","/images/default-resource.jpg");
817
						}
820
						add = "";
818
						add = "";
821
					}
819
					}
822
					//资源轮播
820
					//资源轮播