li 7 年之前
父节点
当前提交
8cb035b1ad
共有 7 个文件被更改,包括 16 次插入9 次删除
  1. 5 2
      app/js/articleShow.js
  2. 1 1
      app/js/paperShow.js
  3. 2 2
      app/js/patentShow.js
  4. 2 1
      app/js/professorArticle.js
  5. 2 1
      app/js/public/base.js
  6. 2 1
      app/js/researcherProw.js
  7. 2 1
      app/js/userInforShow.js

+ 5 - 2
app/js/articleShow.js

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

+ 1 - 1
app/js/paperShow.js

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

+ 2 - 2
app/js/patentShow.js

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

+ 2 - 1
app/js/professorArticle.js

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

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

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

+ 2 - 1
app/js/researcherProw.js

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

+ 2 - 1
app/js/userInforShow.js

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