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,4 +5646,4 @@ body {
5646 5646
}
5647 5647
#global-searchbox-tail .LG-chat-remain-times.center {
5648 5648
  line-height: 45px;
5649
}
5649
}

+ 11 - 0
css/parent.base_765a49a.css

@ -3756,3 +3756,14 @@ body {
3756 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,5 +1,6 @@
1 1
$(document).ready(function() {
2 2
	loginStatus(); //判断个人是否登录
3
	$("#feedback").hide();
3 4
	var professorId = GetQueryString("id");
4 5
	var firstFlag;
5 6
	$(".list_body").niceScroll({
@ -51,10 +52,18 @@ $(document).ready(function() {
51 52
						} else {
52 53
							var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
53 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 60
					} else {
56 61
						var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
57 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 68
					if(i > 0)
60 69
						$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"));
@ -433,6 +442,12 @@ $(document).ready(function() {
433 442
	/*切换*/
434 443
	$(".list_body").on("click", ".list_item", function() {
435 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 451
		$(this).find(".tips_num").text(0).hide();
437 452
		if($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
438 453
			return;
@ -556,26 +571,35 @@ $(document).ready(function() {
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 584
		var cntCon=$(this).siblings(".correctCon").val();
562 585
		if(cntCon.length>500){
563 586
			$.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
564 587
			return;
565 588
		}else{
566 589
			$.ajax({
567
				"url": "/ajax/feedback/error/demand",
590
				"url": "/ajax/feedback/error/professor",
568 591
				"type": "POST",
569 592
				"dataType": "json",
570 593
				"async": true,
571 594
				"data": {
572
					"id": demandId,
595
					"id": professorId,
573 596
					"cnt":cntCon,
574 597
					"user":userid
575 598
				},
576 599
				"success": function(data) {
577 600
					if(data.success) {
578 601
						backSuccessed();
602
						$("#mb_msgcontent").text("很抱歉为您带来不好的体验我们会为您尽快解决");
579 603
					}
580 604
				},
581 605
				"error": function() {
@ -583,5 +607,5 @@ $(document).ready(function() {
583 607
				}
584 608
			});
585 609
		}
586
	})*/
610
	})
587 611
})

+ 4 - 3
tidings.html

@ -36,15 +36,16 @@
36 36
							</span>
37 37
							<span class="center">
38 38
								<span class="usepro">
39
									<span class="user_name">李朋涛</span>
39
									<span class="user_name"></span>
40 40
									<em class="authiconNew " ></em>
41 41
								</span>
42 42
								<span class="chating_resume_status ellipsisSty" style="display:block;margin-top:5px;">
43
									职称  所在机构,职位
43
									
44 44
								</span>
45 45
							</span>
46 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 49
							</span>
49 50
					</div>
50 51
				</div>