Browse Source

接口参数更改

li 7 years ago
parent
commit
b6d1335b3b
11 changed files with 17 additions and 13 deletions
  1. 1 1
      js/articalShow.js
  2. 1 1
      js/articalShow2.js
  3. 2 1
      js/common.js
  4. 1 0
      js/my-attention.js
  5. 1 0
      js/my-attention2.js
  6. 2 2
      js/paperShow.js
  7. 2 2
      js/paperShow1.js
  8. 2 2
      js/patentShow.js
  9. 2 2
      js/patentShow1.js
  10. 1 1
      js/tidings.js
  11. 2 1
      js/userInforShow.js

+ 1 - 1
js/articalShow.js

633

633

634
/*点赞*/
634
/*点赞*/
635
function addAgree() {
635
function addAgree() {
636
	var data = {"operateId": userid,"articleId": articleId}
636
	var data = {"operateId": userid,"articleId": articleId,"uname":$.cookie("userName")}
637
	$.ajax({		
637
	$.ajax({		
638
		url:"/ajax/article/agree",
638
		url:"/ajax/article/agree",
639
		data:data,
639
		data:data,

+ 1 - 1
js/articalShow2.js

630

630

631
/*点赞*/
631
/*点赞*/
632
function addAgree() {
632
function addAgree() {
633
	var data = {"operateId": userid,"articleId": articleId}
633
	var data = {"operateId": userid,"articleId": articleId,"uname":$.cookie("userName")}
634
	$.ajax({		
634
	$.ajax({		
635
		url:"/ajax/article/agree",
635
		url:"/ajax/article/agree",
636
		data:data,
636
		data:data,

+ 2 - 1
js/common.js

655
		data: {
655
		data: {
656
			"professorId": userid,
656
			"professorId": userid,
657
			"watchObject": watchObject,
657
			"watchObject": watchObject,
658
			"watchType": num
658
			"watchType": num,
659
			"uname":$.cookie("userName")
659
		},
660
		},
660
		dataType: 'json', //数据格式类型
661
		dataType: 'json', //数据格式类型
661
		type: 'POST', //http请求类型
662
		type: 'POST', //http请求类型

+ 1 - 0
js/my-attention.js

71
		}else{
71
		}else{
72
			var data = {"professorId": userid,"watchObject": resourceId,"watchType": 2}
72
			var data = {"professorId": userid,"watchObject": resourceId,"watchType": 2}
73
		}
73
		}
74
		data.uname=$.cookie("userName");
74
		$.ajax({		
75
		$.ajax({		
75
			url:"/ajax/watch",
76
			url:"/ajax/watch",
76
			data:data,
77
			data:data,

+ 1 - 0
js/my-attention2.js

71
		}else{
71
		}else{
72
			var data = {"professorId": userid,"watchObject": resourceId,"watchType": 2}
72
			var data = {"professorId": userid,"watchObject": resourceId,"watchType": 2}
73
		}
73
		}
74
		data.uname=$.cookie("userName");
74
		$.ajax({		
75
		$.ajax({		
75
			url:"/ajax/watch",
76
			url:"/ajax/watch",
76
			data:data,
77
			data:data,

+ 2 - 2
js/paperShow.js

340
	}
340
	}
341
	/*判断论文是否被赞*/
341
	/*判断论文是否被赞*/
342
function isAgree(articleAgree) {
342
function isAgree(articleAgree) {
343
	var data = {"id": paperId,"uid":userid }
343
	var data = {"id": paperId,"uid":userid,"uname":$.cookie("userName") }
344
	$.ajax({		
344
	$.ajax({		
345
		url:"/ajax/ppaper/agree",
345
		url:"/ajax/ppaper/agree",
346
		data:data,
346
		data:data,
378
/*点赞*/
378
/*点赞*/
379
function addAgree() {
379
function addAgree() {
380
	console.log(paperId)
380
	console.log(paperId)
381
	var data = {"uid": userid,"id": paperId}
381
	var data = {"uid": userid,"id": paperId,"uname":$.cookie("userName")}
382
	$.ajax({		
382
	$.ajax({		
383
		url:"/ajax/ppaper/agree",
383
		url:"/ajax/ppaper/agree",
384
		data:data,
384
		data:data,

+ 2 - 2
js/paperShow1.js

343
	}
343
	}
344
	/*判断论文是否被赞*/
344
	/*判断论文是否被赞*/
345
function isAgree(articleAgree) {
345
function isAgree(articleAgree) {
346
	var data = {"id": paperId,"uid":userid }
346
	var data = {"id": paperId,"uid":userid ,"uname":$.cookie("userName")}
347
	$.ajax({		
347
	$.ajax({		
348
		url:"/ajax/ppaper/agree",
348
		url:"/ajax/ppaper/agree",
349
		data:data,
349
		data:data,
381
/*点赞*/
381
/*点赞*/
382
function addAgree() {
382
function addAgree() {
383
	console.log(paperId)
383
	console.log(paperId)
384
	var data = {"uid": userid,"id": paperId}
384
	var data = {"uid": userid,"id": paperId,"uname":$.cookie("userName")}
385
	$.ajax({		
385
	$.ajax({		
386
		url:"/ajax/ppaper/agree",
386
		url:"/ajax/ppaper/agree",
387
		data:data,
387
		data:data,

+ 2 - 2
js/patentShow.js

442
}
442
}
443
	/*判断论文是否被赞*/
443
	/*判断论文是否被赞*/
444
function isAgree(articleAgree) {
444
function isAgree(articleAgree) {
445
	var data = {"id": patentId,"uid":userid }
445
	var data = {"id": patentId,"uid":userid,"uname":$.cookie("userName") }
446
	$.ajax({		
446
	$.ajax({		
447
		url:"/ajax/ppatent/agree",
447
		url:"/ajax/ppatent/agree",
448
		data:data,
448
		data:data,
480
/*点赞*/
480
/*点赞*/
481
function addAgree() {
481
function addAgree() {
482
	
482
	
483
	var data = {"uid": userid,"id": patentId}
483
	var data = {"uid": userid,"id": patentId,"uname":$.cookie("userName")}
484
	$.ajax({		
484
	$.ajax({		
485
		url:"/ajax/ppatent/agree",
485
		url:"/ajax/ppatent/agree",
486
		data:data,
486
		data:data,

+ 2 - 2
js/patentShow1.js

449
}
449
}
450
	/*判断论文是否被赞*/
450
	/*判断论文是否被赞*/
451
function isAgree(articleAgree) {
451
function isAgree(articleAgree) {
452
	var data = {"id": patentId,"uid":userid }
452
	var data = {"id": patentId,"uid":userid ,"uname":$.cookie("userName")}
453
	$.ajax({		
453
	$.ajax({		
454
		url:"/ajax/ppatent/agree",
454
		url:"/ajax/ppatent/agree",
455
		data:data,
455
		data:data,
487
/*点赞*/
487
/*点赞*/
488
function addAgree() {
488
function addAgree() {
489
	
489
	
490
	var data = {"uid": userid,"id": patentId}
490
	var data = {"uid": userid,"id": patentId,"uname":$.cookie("userName")}
491
	$.ajax({		
491
	$.ajax({		
492
		url:"/ajax/ppatent/agree",
492
		url:"/ajax/ppatent/agree",
493
		data:data,
493
		data:data,

+ 1 - 1
js/tidings.js

19
	console.log(professorId)
19
	console.log(professorId)
20
	console.log(userid)
20
	console.log(userid)
21
	function websocrket() {
21
	function websocrket() {
22
		var ws = new WebSocket("ws://www.ekexiu.com:8080/portal/websocket/msg?id=" + userid + "&pm=www");
22
		var ws = new WebSocket("ws://192.168.3.233:8081/portal/websocket/msg?id=" + userid + "&pm=www");
23
		ws.onopen = function() {
23
		ws.onopen = function() {
24
			console.log(userid);
24
			console.log(userid);
25
		};
25
		};

+ 2 - 1
js/userInforShow.js

138
					"data": {
138
					"data": {
139
						"targetId": $(this).data("pid"),
139
						"targetId": $(this).data("pid"),
140
						"targetCaption": oArray[$(this).data("caption")],
140
						"targetCaption": oArray[$(this).data("caption")],
141
						"opId": userid
141
						"opId": userid,
142
						"uname":$.cookie("userName")
142
					},
143
					},
143
					"contentType": "application/x-www-form-urlencoded",
144
					"contentType": "application/x-www-form-urlencoded",
144
					"success": function(dataStr) {
145
					"success": function(dataStr) {