|
@ -866,4 +866,43 @@ mui('.commentBlock').on('tap', '.useHead,.h1Font', function() {
|
866
|
866
|
proid: id
|
867
|
867
|
});
|
868
|
868
|
})
|
|
869
|
//您可能感兴趣的专利
|
|
870
|
paperInterestingList()
|
|
871
|
function paperInterestingList(){
|
|
872
|
mui.ajax(baseUrl+"/ajax/ppatent/ralatePatents",{
|
|
873
|
"type" : "GET" ,
|
|
874
|
"dataType" : "json",
|
|
875
|
"data" :{
|
|
876
|
"patentId":patentId
|
|
877
|
},
|
|
878
|
//"async":false,
|
|
879
|
"traditional": true, //传数组必须加这个
|
|
880
|
"success" : function(data) {
|
|
881
|
if(data.success) {
|
|
882
|
console.log(data);
|
|
883
|
var $data = data.data;
|
|
884
|
if($data.length > 0){
|
|
885
|
document.getElementById("patentModule").style.display="block";
|
|
886
|
for(var i = 0; i < $data.length; i++) {
|
|
887
|
var li = document.createElement("li");
|
|
888
|
li.setAttribute("data-id", $data[i].id);
|
|
889
|
li.className = "mui-table-view-cell";
|
|
890
|
li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
|
|
891
|
'<div class="madiaHead patentHead"></div>' +
|
|
892
|
'<div class="madiaInfo OmadiaInfo">' +
|
|
893
|
'<p class="mui-ellipsis h1Font">' + $data[i].name + '</p>' +
|
|
894
|
'<p class="mui-ellipsis h2Font">' + $data[i].authors.substring(0, $data[i].authors.length - 1) + '</p>' +
|
|
895
|
'</div>' +
|
|
896
|
'</div>'
|
|
897
|
document.getElementById("patentList").appendChild(li);
|
|
898
|
}
|
|
899
|
}
|
|
900
|
}
|
|
901
|
},
|
|
902
|
"error":function(){
|
|
903
|
plus.nativeUI.toast("服务器链接超时", toastStyle);
|
|
904
|
}
|
|
905
|
});
|
|
906
|
}
|
|
907
|
|
869
|
908
|
});
|