浏览代码

专利点赞

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

+ 10 - 7
app/js/patentShow.js

656
			}
656
			}
657
		},
657
		},
658
		error: function() {
658
		error: function() {
659
			$.MsgBox.Alert('提示',"服务器链接超时");
659
			//$.MsgBox.Alert('提示',"服务器链接超时");
660
		}
660
		}
661
	});
661
	});
662
}
662
}
666
	/*判断论文是否被赞*/
666
	/*判断论文是否被赞*/
667
function isAgree() {
667
function isAgree() {
668
	var data = {"id": patentId,"uid":userid }
668
	var data = {"id": patentId,"uid":userid }
669
	mui.ajax({		
670
		url:"/ajax/ppatent/agree",
669
	mui.ajax(baseUrl+"/ajax/ppatent/agree",{	
671
		data:data,
670
		data:data,
672
		dataType: 'json', //数据格式类型
671
		dataType: 'json', //数据格式类型
673
		type: 'get', //http请求类型
672
		type: 'get', //http请求类型
681
			}
680
			}
682
		},
681
		},
683
		error: function() {
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
		addAgree();
693
		addAgree();
691
	}
694
	}
692
})
695
})
706
			}
709
			}
707
		},
710
		},
708
		error: function() {
711
		error: function() {
709
			$.MsgBox.Alert('提示',"服务器链接超时");
712
			//$.MsgBox.Alert('提示',"服务器链接超时");
710
		}
713
		}
711
	});
714
	});
712
}
715
}