Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mip-change #1175

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
wjb
jsonWangjinbao committed Jun 5, 2018
commit 8b20fc2a8562b27f458be87ac91591d3b340bd7a
155 changes: 141 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/mip-searchAssociation/mip-searchAssociation.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,10 @@ define(function(require) {
var resultList = element.querySelectorAll('.result-list')[0];
var src = element.getAttribute('data-src');
var inputVal = input.value;
input.onkeyup=function(){
input.onkeyup=function(e){
if(e.keyCode == 13){
window.location.href='/search-kecheng?kw='+inputVal
}
fetchJsonp(src, {
jsonpCallback: inputVal
}).then(function (res) {
@@ -19,7 +22,7 @@ define(function(require) {
for(var value of searchData){
html+=`
<li>
<a href="${value.url}">${value.name}</a>
<a href="${value.url}">${value.kwd}</a>
</li>
`
}