LIPENGTAO1313 6 years ago
parent
commit
cac28c3192
4 changed files with 16 additions and 15 deletions
  1. 1 4
      cmp-portal/js/cmp-articalList.js
  2. 1 6
      js/productShow.js
  3. 7 3
      js/resourceShow.js
  4. 7 2
      js/sevriceShow.js

+ 1 - 4
cmp-portal/js/cmp-articalList.js

@ -125,10 +125,7 @@ function articalList(pageSize, pageNo, isbind, num) {
125 125
					if(datalist.status == 2){//定时发布
126 126
						$itemlist.find(".time").text("修改于 "+ TimeTr(datalist.modifyTime));
127 127
						var thisColum=""
128
						if(datalist.colNum>2){
129
							thisColum=columnType[datalist.colNum].fullName;
130
						}
131
						$itemlist.find("#dsfbtime").text("草稿 | 将在 " +TimeTr(datalist.publishTime)+ " 定时发布于 " +thisColum+ " 栏目上");
128
						$itemlist.find("#dsfbtime").text("草稿 | 将在 " +TimeTr(datalist.publishTime)+ " 定时发布 ");
132 129
						$itemlist.find(".editThis,.newurl").on("click",function(){
133 130
							var newarticleId = $(this).parents(".newbox").attr("data-id");
134 131
							$.ajax({

+ 1 - 6
js/productShow.js

@ -171,11 +171,6 @@ $(document).ready(function() {
171 171
	$("#nameS,#headImg").click(function() {
172 172
		location.href = "userInforShow.html?professorId=" + professorId;
173 173
	})
174
	//关键词标签点击进去搜索
175
	$(".tagList").on("click", "li", function() {
176
		var tagText = $(this).find("p").text();
177
		location.href = "searchNew.html?searchContent=" + tagText + "&tagflag=2";
178
	})
179 174
	/*点击咨询*/
180 175
	$("#consultin").on('click', function() {
181 176
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
@ -376,7 +371,7 @@ $(document).ready(function() {
376 371
			}
377 372
		})
378 373
	}
379
	$("#expertli").on("click", function() {
374
	$("#expertli").on("click",'li', function() {
380 375
		location.href = "userInforShow.html?professorId=" + $(this).attr("data-id");
381 376
	})
382 377
	//纠错反馈

+ 7 - 3
js/resourceShow.js

@ -532,7 +532,7 @@ $(document).ready(function() {
532 532
			closeLog();
533 533
		}
534 534
	});
535
	$("#expertli").on("click",".addbtn",function() {
535
	$("#expertli").on("click",".addbtn",function(event) {
536 536
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
537 537
			var id=$(this).attr("data-id");
538 538
			location.href="tidings.html?id="+id;
@ -541,8 +541,12 @@ $(document).ready(function() {
541 541
			operatTab();
542 542
			closeLog();
543 543
		}
544
		event.stopPropagation()
545
	});
546
	$("#expertli").on("click",'li',".addbtn",function() {
547
			var id=$(this).attr("data-id");
548
			location.href="userInforShow.html?professorId="+id;
544 549
	});
545

546 550
	//点击专家关注
547 551
	$("#person").on("click",'.attenSpan',function() {
548 552
		if(userid && userid != "null" && userid != null) {
@ -635,7 +639,7 @@ $(document).ready(function() {
635 639
			} else {
636 640
				img = "../images/default-photo.jpg"
637 641
			}
638
			var oSt = '<li class="flexCenter">'
642
			var oSt = '<li class="flexCenter" data-id="' + $res[i].professor.id + '">'
639 643
			oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
640 644
			oSt += '<div class = "madiaInfo">'
641 645
			oSt += '<p class = "ellipsisSty">'

+ 7 - 2
js/sevriceShow.js

@ -509,7 +509,7 @@ $(document).ready(function() {
509 509
			closeLog();
510 510
		}
511 511
	});
512
	$("#expertli").on("click", ".addbtn", function() {
512
	$("#expertli").on("click", ".addbtn", function(event) {
513 513
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
514 514
			var id = $(this).attr("data-id");
515 515
			location.href = "tidings.html?id=" + id;
@ -518,6 +518,11 @@ $(document).ready(function() {
518 518
			operatTab();
519 519
			closeLog();
520 520
		}
521
		event.stopPropagation()
522
	});
523
	$("#expertli").on("click", ".addbtn", function() {
524
			var id = $(this).attr("data-id");
525
			location.href = "userInforShow.html?professorId=" + id;
521 526
	});
522 527
	//点击专家关注
523 528
	$("#person").on("click", '.attenSpan', function() {
@ -614,7 +619,7 @@ $(document).ready(function() {
614 619
					} else {
615 620
						img = "../images/default-photo.jpg"
616 621
					}
617
					var oSt = '<li class="flexCenter">'
622
					var oSt = '<li class="flexCenter" data-id="' + $res.id + '">'
618 623
					oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
619 624
					oSt += '<div class = "madiaInfo">'
620 625
					oSt += '<p class = "ellipsisSty">'