Browse Source

添加激活状态

happy 7 years ago
parent
commit
d52ce3acf8
3 changed files with 50 additions and 7 deletions
  1. 3 1
      css/genindex.css
  2. 43 6
      js/userInforShow.js
  3. 4 0
      userInforShow.html

+ 3 - 1
css/genindex.css

@ -720,10 +720,12 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
720 720
.navconBox .moreNav .table-drop>li.liNow{color: #000;}
721 721
.navconBox .moreNav .moreNavUl .rightbtn .foldtr{right:24px;}
722 722
/*统计数据*/
723
.statisticsBox{}
723
.statisticsBox.last_meg{height:150px;}
724 724
.statisticsBox span{font-size: 20px;color:#333}
725 725
.statisticsBox p{font-size: 14px;color:#999;margin-bottom:10px;}
726 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 729
.goarrow{font-size:16px;display:inline-block;color: #ff9900;padding:0 6px;position: relative;}
728 730
.goarrow em{position:absolute;right:0;top:-15px;}
729 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,6 +20,8 @@ $(function() {
20 20
			relevantExperts();//合作专家
21 21
			relevantarticalList();//相关文章
22 22
			likeExperts();//感兴趣专家
23
			information();
24
			
23 25
			ifcollectionAbout(professorId,$(".goSpan").find(".attenSpan"), 1)
24 26
			$(".goSpan").show();
25 27
			$(".moreNavUl li.attentType").hide();
@ -68,22 +70,19 @@ $(function() {
68 70
		$("#myAttends").on("click",function(){
69 71
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
70 72
			$(".navconBox .moreNav").show();
71
			$("#item1user").hide();
72
			$("#item7user").show();
73
			$("#item7user").show().siblings().hide();
73 74
			$(".moreNavUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
74 75
			$("#item7user>.coninfobox").eq(0).show().siblings().hide();
75 76
		})
76 77
		$("#attendmyGo").on("click",function(){
77 78
			$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
78 79
			$(".navconBox .moreNav").show();
79
			$("#item1user").hide();
80
			$("#item7user").show();
80
			$("#item7user").show().siblings().hide();
81 81
			$(".moreNavUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
82 82
			$("#item7user>.coninfobox").eq(7).show().siblings().hide();
83 83
			watchType=0
84 84
			attentMy();
85 85
		})
86
		
87 86
		//点击联系按钮
88 87
		$("#conbtn").on('click', function(){
89 88
			if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
@ -170,6 +169,44 @@ $(function() {
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 211
		$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
175 212
			var cap = $(this).attr("caption");
@ -301,7 +338,6 @@ $(function() {
301 338
			}
302 339
		});
303 340
	}
304
	
305 341
	//用户详细信息
306 342
	function getUserInfo(professorId){
307 343
		$.ajax({
@ -1685,3 +1721,4 @@ $(function() {
1685 1721
	})
1686 1722
	
1687 1723
})
1724

+ 4 - 0
userInforShow.html

@ -516,6 +516,10 @@
516 516
						</div>
517 517
					</div>
518 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 523
			</div>
520 524
		</div>
521 525
	</div>