Browse Source

专利及论文

jack 7 years ago
parent
commit
c6266af66e
4 changed files with 60 additions and 10 deletions
  1. 27 2
      js/paperShow.js
  2. 30 1
      js/patentShow.js
  3. 1 3
      paperShow.html
  4. 2 4
      patentShow.html

+ 27 - 2
js/paperShow.js

314
				subs[0] = $da.keywords;
314
				subs[0] = $da.keywords;
315
			}
315
			}
316
			if(subs.length>0){
316
			if(subs.length>0){
317
				patentRelatedList(subs)
317
				for (var i = 0; i < subs.length; i++) 
318
				for (var i = 0; i < subs.length; i++) 
318
				{
319
				{
319
					$(".tagList").append('<li><p class="h2Font">'+ subs[i] +'</p></li>');
320
					$(".tagList").append('<li><p class="h2Font">'+ subs[i] +'</p></li>');
703
			});
704
			});
704
		}
705
		}
705
	})
706
	})
706

707
	
707
	function patentRelatedList(array){
708
		$.ajax({
709
			"url":"/ajax/ppatent/assPatents",
710
			"type" :  "GET" ,
711
			"dataType" : "json",
712
			"data" :{
713
				"kws":array
714
			},
715
			"traditional": true, //传数组必须加这个
716
			"success" : function(data) {
717
				if(data.success) {
718
					var dataStr=data.data
719
					if(dataStr.length > 0){
720
						$("#paperList").show();
721
						for(var i = 0; i < dataStr.length; i++) {
722
							var itemlist ='<li style="min-height:56px;"><a href="patentShow.html?patentId='+dataStr[i].id+'"><p class="h2Font ellipsisSty-2" style="line-height:20px;">'+ dataStr[i].name +'</p></a></li>'
723
							$(".recentlyList").append(itemlist);
724
						}
725
					}
726
				}
727
			},
728
			"error":function(){
729
				plus.nativeUI.toast("服务器链接超时", toastStyle);
730
			}
731
		});
732
	}
708
})
733
})

+ 30 - 1
js/patentShow.js

62
				}
62
				}
63
				$("#paperSList").append("<li><p class='h2Font'>" + $key.split(",")[i] + "</p><div class='closeThis'></div></li>");
63
				$("#paperSList").append("<li><p class='h2Font'>" + $key.split(",")[i] + "</p><div class='closeThis'></div></li>");
64
			} else {
64
			} else {
65
				paperRelatedList($key.split(","));
65
				$(".tagList").append("<li><p class='h2Font'>" + $key.split(",")[i] + "</p></li>");
66
				$(".tagList").append("<li><p class='h2Font'>" + $key.split(",")[i] + "</p></li>");
66
			}
67
			}
67

68

712
		});
713
		});
713
	}
714
	}
714
	}
715
	}
715
	
716
	//根据关键词查询查找相关论文
717
	function paperRelatedList(array){
718
		$.ajax({
719
			"url"  :  "/ajax/ppaper/assPapers",
720
			"type" :  "GET" ,
721
			"dataType" : "json",
722
			"data" :{
723
				"kws":array
724
			},
725
			//"async":false,
726
			"traditional": true, //传数组必须加这个
727
			"success" : function(data) {
728
				if(data.success) {
729
					console.log(data);
730
					var dataStr=data.data
731
					if(dataStr.length > 0){
732
						$("#paperList").show();
733
						for(var i = 0; i < dataStr.length; i++) {
734
							var itemlist ='<li style="min-height:56px;"><a href="paperShow.html?paperId='+dataStr[i].id+'"><p class="h2Font ellipsisSty-2" style="line-height:20px;">'+ dataStr[i].name +'</p></a></li>'
735
							$(".recentlyList").append(itemlist);
736
						}
737
					}
738
				}
739
			},
740
			"error":function(){
741
				plus.nativeUI.toast("服务器链接超时", toastStyle);
742
			}
743
		});
744
	}
716
})
745
})

+ 1 - 3
paperShow.html

137
						<div class="aboutTit">相关专利</div>
137
						<div class="aboutTit">相关专利</div>
138
						<div class="form-result currentArt" style="margin-top:0px;margin-bottom:0px;">
138
						<div class="form-result currentArt" style="margin-top:0px;margin-bottom:0px;">
139
							<ul class="recentlyList">
139
							<ul class="recentlyList">
140
								<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>
141
								<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>
142
								<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>								
140
								
143
							</ul>
141
							</ul>
144
						</div>
142
						</div>
145
					</div>
143
					</div>

+ 2 - 4
patentShow.html

170
				<ul class="advertItem">
170
				<ul class="advertItem">
171
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
171
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
172
				</ul>
172
				</ul>
173
				<div class="conItem displayNone">
173
				<div class="conItem displayNone" id="paperList">
174
					<div class="form-item otherBlock currentBlock">
174
					<div class="form-item otherBlock currentBlock">
175
							<div class="aboutTit">相关论文</div>
175
							<div class="aboutTit">相关论文</div>
176
							<div class="form-result currentArt" style="margin-top:0px;margin-bottom:0px;">
176
							<div class="form-result currentArt" style="margin-top:0px;margin-bottom:0px;">
177
								<ul class="recentlyList">
177
								<ul class="recentlyList">
178
									<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>
179
									<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>
180
									<li style="min-height:56px;"><a href="articalShow.html?articleId=" 892f36231b864d61b54124b30afb5cb3=""><p class="h2Font ellipsisSty-2" style="line-height:20px;">我国新航母开始发动机点火试车我国新航母开始发动机点火试车我国新航母开始发动机点火试车,各位真的不必为那缕黑烟担心航母动力</p></a></li>								
178
																	
181
								</ul>
179
								</ul>
182
							</div>
180
							</div>
183
					</div>
181
					</div>