li 7 vuotta sitten
vanhempi
commit
8cb035b1ad

+ 5 - 2
app/js/articleShow.js

@ -540,7 +540,8 @@ mui.plusReady(function() {
540 540
		if(oCurren.userid) {
541 541
			oArticleModule.oAjaxGet(baseUrl + "/ajax/article/agree", {
542 542
				"articleId": oArticleModule.articleId,
543
				'operateId': oCurren.userid
543
				'operateId': oCurren.userid,
544
				"uname":plus.storage.getItem('name')
544 545
			}, "post", oArticleModule.thumbsUp);
545 546
		} else {
546 547
			oCurren.login();
@ -605,6 +606,7 @@ mui.plusReady(function() {
605 606
			if(oClsNm == 'mui-icon attenSpan attenedSpan') {
606 607
				oArticleModule.oAjaxGet(baseUrl + "/ajax/watch/delete",$info , "post", oArticleModule.attentionNoPostExpert);
607 608
			} else {
609
				$info.uname=plus.storage.getItem('name');
608 610
				if(oArticleModule.oFlag == 1) {
609 611
					$info.watchType=6;
610 612
				}else{
@ -631,7 +633,8 @@ mui.plusReady(function() {
631 633
				oArticleModule.oAjaxGet(baseUrl + "/ajax/watch", {
632 634
					"watchObject": oArticleModule.articleId,
633 635
					'professorId': oCurren.userid,
634
					"watchType": 3
636
					"watchType": 3,
637
					"uname": plus.storage.getItem('name')
635 638
				}, "post", oArticleModule.storePostUp);
636 639
			}
637 640
		} else {

+ 1 - 1
app/js/paperShow.js

@ -669,7 +669,7 @@ mui('.thumbBlock').on("tap",".thumbBtn",function(){
669 669
})
670 670
/*点赞*/
671 671
function addAgree() {
672
	var data = {"uid": userid,"id": paperId}
672
	var data = {"uid": userid,"id": paperId,"uname":plus.storage.getItem('name')}
673 673
	mui.ajax(baseUrl+"/ajax/ppaper/agree",{		
674 674
		data:data,
675 675
		dataType: 'json', //数据格式类型

+ 2 - 2
app/js/patentShow.js

@ -614,7 +614,7 @@ mui.plusReady(function() {
614 614
				} 
615 615
	/*判断论文是否被赞*/
616 616
function isAgree() {
617
	var data = {"id": patentId,"uid":userid }
617
	var data = {"id": patentId,"uid":userid}
618 618
	mui.ajax(baseUrl+"/ajax/ppatent/agree",{	
619 619
		data:data,
620 620
		dataType: 'json', //数据格式类型
@ -644,7 +644,7 @@ mui('.thumbBlock').on("tap",".thumbBtn",function(){
644 644
})
645 645
/*点赞*/
646 646
function addAgree() {
647
	var data = {"uid": userid,"id": patentId}
647
	var data = {"uid": userid,"id": patentId,"uname":plus.storage.getItem('name') }
648 648
	mui.ajax(baseUrl+"/ajax/ppatent/agree",{		
649 649
		data:data,
650 650
		dataType: 'json', //数据格式类型

+ 2 - 1
app/js/professorArticle.js

@ -288,7 +288,8 @@ mui.plusReady(function() {
288 288
				data: {
289 289
					"professorId": userid,
290 290
					"watchObject": proId,
291
					"watchType": 3
291
					"watchType": 3,
292
					"uname": plus.storage.getItem('name')
292 293
				},
293 294
				beforeSend: function() {},
294 295
				success: function(data, textState) {

+ 2 - 1
app/js/public/base.js

@ -325,7 +325,8 @@ function collectionAbout(watchObject,sel, num,flag) {
325 325
		data: {
326 326
			"professorId": plus.storage.getItem('userid'),
327 327
			"watchObject": watchObject,
328
			"watchType": num
328
			"watchType": num,
329
			"uname": plus.storage.getItem('name')
329 330
		},
330 331
		dataType: 'json', //数据格式类型
331 332
		type: 'POST', //http请求类型

+ 2 - 1
app/js/researcherProw.js

@ -224,7 +224,8 @@ mui.plusReady(function() {
224 224
			data: {
225 225
				"professorId": userid,
226 226
				"watchObject": proId,
227
				"watchType": 1
227
				"watchType": 1,
228
				"uname": plus.storage.getItem('name')
228 229
			},
229 230
			dataType: 'json', //数据格式类型
230 231
			type: 'POST', //http请求类型

+ 2 - 1
app/js/userInforShow.js

@ -750,7 +750,8 @@ mui.plusReady(function() {
750 750
				"data": {
751 751
					"targetId": this.getAttribute("data-pid"),
752 752
					"targetCaption": this.getAttribute("data-caption"),
753
					"opId": userid
753
					"opId": userid,
754
					"uname":plus.storage.getItem('name')
754 755
				},
755 756
				"contentType": "application/x-www-form-urlencoded",
756 757
				"success": function($data) {