浏览代码

专利点赞

luyanan 7 年之前
父节点
当前提交
4613a1610b
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10 7
      app/js/patentShow.js

+ 10 - 7
app/js/patentShow.js

@ -656,7 +656,7 @@ mui.plusReady(function() {
656 656
			}
657 657
		},
658 658
		error: function() {
659
			$.MsgBox.Alert('提示',"服务器链接超时");
659
			//$.MsgBox.Alert('提示',"服务器链接超时");
660 660
		}
661 661
	});
662 662
}
@ -666,8 +666,7 @@ mui.plusReady(function() {
666 666
	/*判断论文是否被赞*/
667 667
function isAgree() {
668 668
	var data = {"id": patentId,"uid":userid }
669
	mui.ajax({		
670
		url:"/ajax/ppatent/agree",
669
	mui.ajax(baseUrl+"/ajax/ppatent/agree",{	
671 670
		data:data,
672 671
		dataType: 'json', //数据格式类型
673 672
		type: 'get', //http请求类型
@ -681,12 +680,16 @@ function isAgree() {
681 680
			}
682 681
		},
683 682
		error: function() {
684
			$.MsgBox.Alert('提示',"服务器链接超时");
683
			//$.MsgBox.Alert('提示',"服务器链接超时");
685 684
		}
686 685
	});
687 686
}
688
$('.thumbBlock').on("click",".thunbgo",function(){
689
	if (!isLogin) {
687
mui('.thumbBlock').on("tap",".thumbBtn",function(){
688
	console.log(this.className);
689
	if (!isLogin()) {
690
		if(this.className=="thumbBtn thumbedBtn"){
691
			return;
692
		}
690 693
		addAgree();
691 694
	}
692 695
})
@ -706,7 +709,7 @@ function addAgree() {
706 709
			}
707 710
		},
708 711
		error: function() {
709
			$.MsgBox.Alert('提示',"服务器链接超时");
712
			//$.MsgBox.Alert('提示',"服务器链接超时");
710 713
		}
711 714
	});
712 715
}