Sfoglia il codice sorgente

添加激活状态

happy 7 anni fa
parent
commit
d52ce3acf8
3 ha cambiato i file con 50 aggiunte e 7 eliminazioni
  1. 3 1
      css/genindex.css
  2. 43 6
      js/userInforShow.js
  3. 4 0
      userInforShow.html

+ 3 - 1
css/genindex.css

720
.navconBox .moreNav .table-drop>li.liNow{color: #000;}
720
.navconBox .moreNav .table-drop>li.liNow{color: #000;}
721
.navconBox .moreNav .moreNavUl .rightbtn .foldtr{right:24px;}
721
.navconBox .moreNav .moreNavUl .rightbtn .foldtr{right:24px;}
722
/*统计数据*/
722
/*统计数据*/
723
.statisticsBox{}
723
.statisticsBox.last_meg{height:150px;}
724
.statisticsBox span{font-size: 20px;color:#333}
724
.statisticsBox span{font-size: 20px;color:#333}
725
.statisticsBox p{font-size: 14px;color:#999;margin-bottom:10px;}
725
.statisticsBox p{font-size: 14px;color:#999;margin-bottom:10px;}
726
.statisticsBox p>em{font-style: normal;}
726
.statisticsBox p>em{font-style: normal;}
727
.statisticsBox p>a{color: #FF9900;cursor: pointer;}
728
.statisticsBox .wayTel{font-size: 13px;font-weight: bold;color: #399A9B}
727
.goarrow{font-size:16px;display:inline-block;color: #ff9900;padding:0 6px;position: relative;}
729
.goarrow{font-size:16px;display:inline-block;color: #ff9900;padding:0 6px;position: relative;}
728
.goarrow em{position:absolute;right:0;top:-15px;}
730
.goarrow em{position:absolute;right:0;top:-15px;}
729
.goarrow em:before{border: solid transparent;border-left-color: #ff9900;border-width:8px;content: " ";position: absolute;left: 100%;top: 18px;}
731
.goarrow em:before{border: solid transparent;border-left-color: #ff9900;border-width:8px;content: " ";position: absolute;left: 100%;top: 18px;}

+ 43 - 6
js/userInforShow.js

20
			relevantExperts();//合作专家
20
			relevantExperts();//合作专家
21
			relevantarticalList();//相关文章
21
			relevantarticalList();//相关文章
22
			likeExperts();//感兴趣专家
22
			likeExperts();//感兴趣专家
23
			information();
24
			
23
			ifcollectionAbout(professorId,$(".goSpan").find(".attenSpan"), 1)
25
			ifcollectionAbout(professorId,$(".goSpan").find(".attenSpan"), 1)
24
			$(".goSpan").show();
26
			$(".goSpan").show();
25
			$(".moreNavUl li.attentType").hide();
27
			$(".moreNavUl li.attentType").hide();
68
		$("#myAttends").on("click",function(){
70
		$("#myAttends").on("click",function(){
69
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
71
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
70
			$(".navconBox .moreNav").show();
72
			$(".navconBox .moreNav").show();
71
			$("#item1user").hide();
72
			$("#item7user").show();
73
			$("#item7user").show().siblings().hide();
73
			$(".moreNavUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
74
			$(".moreNavUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
74
			$("#item7user>.coninfobox").eq(0).show().siblings().hide();
75
			$("#item7user>.coninfobox").eq(0).show().siblings().hide();
75
		})
76
		})
76
		$("#attendmyGo").on("click",function(){
77
		$("#attendmyGo").on("click",function(){
77
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
78
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
78
			$(".navconBox .moreNav").show();
79
			$(".navconBox .moreNav").show();
79
			$("#item1user").hide();
80
			$("#item7user").show();
80
			$("#item7user").show().siblings().hide();
81
			$(".moreNavUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
81
			$(".moreNavUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
82
			$("#item7user>.coninfobox").eq(7).show().siblings().hide();
82
			$("#item7user>.coninfobox").eq(7).show().siblings().hide();
83
			watchType=0
83
			watchType=0
84
			attentMy();
84
			attentMy();
85
		})
85
		})
86
		
87
		//点击联系按钮
86
		//点击联系按钮
88
		$("#conbtn").on('click', function(){
87
		$("#conbtn").on('click', function(){
89
			if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
88
			if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
170
			}
169
			}
171
170
172
		})
171
		})
172
		function information(){
173
			$.ajax({
174
				url: "/ajax/baseUserInfo",
175
				dataType: 'json', //数据格式类型
176
				type: 'GET', //http请求类型
177
				timeout: 10000, //超时设置
178
				data: {
179
					"id": professorId
180
				},
181
				"success": function(data) {
182
					if(data.success){
183
						console.log(data);
184
						if(data.data.activeTime==null){
185
							$(".last_meg").removeClass("displayNone");
186
							$(".message_b").on("click",function(){
187
								$(".meg_md5").toggle();
188
								if(data.data.email && data.data.obilePhone){
189
								 	$("#wayTel").text('通过尾号为 '+data.data.obilePhone+' 的手机号或邮箱 '+data.data.email+'');
190
								}
191
								if(data.data.obilePhone){
192
									$("#wayTel").text('通过尾号为'+data.data.obilePhone+' ');
193
								}
194
								if(data.data.email){
195
									$("#wayTel").text('邮箱 '+data.data.email+' ');
196
									
197
								}
198
							})
199
						}else{
200
							$(".last_meg").addClass("displayNone");
201
						}
202
					}
203
204
				},
205
				"error": function() {
206
					$.MsgBox.Alert('提示', '链接服务器超时')
207
				}
208
			});
209
		}
173
		//点击每个研究方向弹出研究方向详情窗口
210
		//点击每个研究方向弹出研究方向详情窗口
174
		$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
211
		$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
175
			var cap = $(this).attr("caption");
212
			var cap = $(this).attr("caption");
301
			}
338
			}
302
		});
339
		});
303
	}
340
	}
304
	
305
	//用户详细信息
341
	//用户详细信息
306
	function getUserInfo(professorId){
342
	function getUserInfo(professorId){
307
		$.ajax({
343
		$.ajax({
1685
	})
1721
	})
1686
	
1722
	
1687
})
1723
})
1724

+ 4 - 0
userInforShow.html

516
						</div>
516
						</div>
517
					</div>
517
					</div>
518
				</div>
518
				</div>
519
				<div class="statisticsBox last_meg displayNone">
520
					<p> 如果此主页展示的是您的信息,请<a class="message_b"> 点击这里</a></p>
521
					<p class="meg_md5 displayNone">您可以通过<span class="wayTel" id="wayTel"></span><a href="pwdFindNew.html"> 找回密码</a>,获取您的账户。</p>
522
				</div>
519
			</div>
523
			</div>
520
		</div>
524
		</div>
521
	</div>
525
	</div>