Browse Source

消息列表

jack 7 years ago
parent
commit
0f2ce45292
4 changed files with 44 additions and 8 deletions
  1. 1 1
      css/main.html_aio_eb0d518.css
  2. 11 0
      css/parent.base_765a49a.css
  3. 28 4
      js/tidings.js
  4. 4 3
      tidings.html

+ 1 - 1
css/main.html_aio_eb0d518.css

5646
}
5646
}
5647
#global-searchbox-tail .LG-chat-remain-times.center {
5647
#global-searchbox-tail .LG-chat-remain-times.center {
5648
  line-height: 45px;
5648
  line-height: 45px;
5649
}
5649
}

+ 11 - 0
css/parent.base_765a49a.css

3756
    margin-right: -661px;
3756
    margin-right: -661px;
3757
  }
3757
  }
3758
}
3758
}
3759
#report {
3760
	   position: absolute;
3761
    top: 36px;
3762
    left: 15px;
3763
    width: 100px;
3764
    height: 35px;
3765
    border: 1px solid #d5dadf;
3766
    text-align: center;
3767
    cursor: pointer;
3768
    display:none;
3769
}

+ 28 - 4
js/tidings.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	loginStatus(); //判断个人是否登录
2
	loginStatus(); //判断个人是否登录
3
	$("#feedback").hide();
3
	var professorId = GetQueryString("id");
4
	var professorId = GetQueryString("id");
4
	var firstFlag;
5
	var firstFlag;
5
	$(".list_body").niceScroll({
6
	$(".list_body").niceScroll({
51
						} else {
52
						} else {
52
							var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
53
							var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
53
							$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
54
							$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
55
							if($(".badge").css("display")=="none") {
56
								$(".badge").show();
57
							}
58
							$('.badge').text(Number($('.badge').text())+1)
54
						}
59
						}
55
					} else {
60
					} else {
56
						var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
61
						var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
57
						$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
62
						$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
63
						if($(".badge").css("display")=="none") {
64
							$(".badge").show();
65
						}
66
						$('.badge').text(Number($('.badge').text())+1)
58
					}
67
					}
59
					if(i > 0)
68
					if(i > 0)
60
						$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"));
69
						$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"));
433
	/*切换*/
442
	/*切换*/
434
	$(".list_body").on("click", ".list_item", function() {
443
	$(".list_body").on("click", ".list_item", function() {
435
		$(this).addClass("active").siblings().removeClass("active");
444
		$(this).addClass("active").siblings().removeClass("active");
445
		if($(this).find(".tips_num").css("display")=="block") {
446
			$('.badge').text(Number($('.badge').text())-Number($(this).find(".tips_num").text()));
447
			if($('.badge').text()==0) {
448
				$(".badge").hide();
449
			}
450
		}
436
		$(this).find(".tips_num").text(0).hide();
451
		$(this).find(".tips_num").text(0).hide();
437
		if($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
452
		if($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
438
			return;
453
			return;
556
			}
571
			}
557
		});
572
		});
558
	}
573
	}
574
	$("#repo").click(function() {
575
		$("#report").toggle();
576
	})
577
	$("#report").on("click",function(){
578
		$(".correctCon")[0].placeholder="请具体说明举报对方的原因,以便我们为您快速解决";
579
		$("#correctBlock").fadeToggle();
580
		$(this).hide();
581
	})
559
	/*纠错反馈*/
582
	/*纠错反馈*/
560
	/*$(".correctSubmit").on("click",function(){
583
	$(".correctSubmit").on("click",function(){
561
		var cntCon=$(this).siblings(".correctCon").val();
584
		var cntCon=$(this).siblings(".correctCon").val();
562
		if(cntCon.length>500){
585
		if(cntCon.length>500){
563
			$.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
586
			$.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
564
			return;
587
			return;
565
		}else{
588
		}else{
566
			$.ajax({
589
			$.ajax({
567
				"url": "/ajax/feedback/error/demand",
590
				"url": "/ajax/feedback/error/professor",
568
				"type": "POST",
591
				"type": "POST",
569
				"dataType": "json",
592
				"dataType": "json",
570
				"async": true,
593
				"async": true,
571
				"data": {
594
				"data": {
572
					"id": demandId,
595
					"id": professorId,
573
					"cnt":cntCon,
596
					"cnt":cntCon,
574
					"user":userid
597
					"user":userid
575
				},
598
				},
576
				"success": function(data) {
599
				"success": function(data) {
577
					if(data.success) {
600
					if(data.success) {
578
						backSuccessed();
601
						backSuccessed();
602
						$("#mb_msgcontent").text("很抱歉为您带来不好的体验我们会为您尽快解决");
579
					}
603
					}
580
				},
604
				},
581
				"error": function() {
605
				"error": function() {
583
				}
607
				}
584
			});
608
			});
585
		}
609
		}
586
	})*/
610
	})
587
})
611
})

+ 4 - 3
tidings.html

36
							</span>
36
							</span>
37
							<span class="center">
37
							<span class="center">
38
								<span class="usepro">
38
								<span class="usepro">
39
									<span class="user_name">李朋涛</span>
39
									<span class="user_name"></span>
40
									<em class="authiconNew " ></em>
40
									<em class="authiconNew " ></em>
41
								</span>
41
								</span>
42
								<span class="chating_resume_status ellipsisSty" style="display:block;margin-top:5px;">
42
								<span class="chating_resume_status ellipsisSty" style="display:block;margin-top:5px;">
43
									职称  所在机构,职位
43
									
44
								</span>
44
								</span>
45
							</span>
45
							</span>
46
							<span class="right">
46
							<span class="right">
47
								<a id="cUserPage" target="_blank" title="查看对方资料">查看对方资料...</a>
47
								<a id="cUserPage" target="_blank" title="查看对方资料">查看对方资料</a><a href="javascript:void(0)" id="repo">...</a>
48
								<span id="report" style=" line-height: 35px;">举报</span>
48
							</span>
49
							</span>
49
					</div>
50
					</div>
50
				</div>
51
				</div>