|
|
@ -409,6 +409,7 @@ function duoselect(datas){ |
|
|
|
function selectSource() { |
|
|
|
function selectSource() { |
|
|
|
const hikerPop = $.require("http://hiker.nokia.press/hikerule/rulelist.json?id=6966"); |
|
|
|
const hikerPop = $.require("http://hiker.nokia.press/hikerule/rulelist.json?id=6966"); |
|
|
|
let sourceAllList = getDatas("jk", 1).filter(x=> !x.onlysearch); |
|
|
|
let sourceAllList = getDatas("jk", 1).filter(x=> !x.onlysearch); |
|
|
|
|
|
|
|
|
|
|
|
let sourceList = getGroupLists(sourceAllList, sourceGroup); |
|
|
|
let sourceList = getGroupLists(sourceAllList, sourceGroup); |
|
|
|
let tmpList = sourceList; |
|
|
|
let tmpList = sourceList; |
|
|
|
|
|
|
|
|
|
|
@ -462,7 +463,7 @@ function selectSource() { |
|
|
|
//position: groupnames.indexOf(sourceName),
|
|
|
|
//position: groupnames.indexOf(sourceName),
|
|
|
|
click(s) { |
|
|
|
click(s) { |
|
|
|
if(s.startsWith('[')){ |
|
|
|
if(s.startsWith('[')){ |
|
|
|
inputBox.setTitle('全部'); |
|
|
|
//inputBox.setTitle('全部');
|
|
|
|
inputBox.setDefaultValue(s); |
|
|
|
inputBox.setDefaultValue(s); |
|
|
|
/* |
|
|
|
/* |
|
|
|
sourceList = getGroupLists(sourceAllList, '全部'); |
|
|
|
sourceList = getGroupLists(sourceAllList, '全部'); |
|
|
@ -474,12 +475,19 @@ function selectSource() { |
|
|
|
manage.list.push(x); |
|
|
|
manage.list.push(x); |
|
|
|
}); |
|
|
|
}); |
|
|
|
manage.change(); |
|
|
|
manage.change(); |
|
|
|
*/ |
|
|
|
|
|
|
|
tmpList = sourceList.filter(x => x.name.includes(s)); |
|
|
|
tmpList = sourceList.filter(x => x.name.includes(s)); |
|
|
|
|
|
|
|
let flist = getnames(tmpList).names; |
|
|
|
|
|
|
|
manage.list.length = 0; |
|
|
|
|
|
|
|
flist.forEach(x => { |
|
|
|
|
|
|
|
manage.list.push(x); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
manage.change(); |
|
|
|
|
|
|
|
*/ |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
inputBox.setTitle(s); |
|
|
|
inputBox.setTitle(s); |
|
|
|
inputBox.setDefaultValue(""); |
|
|
|
inputBox.setDefaultValue(""); |
|
|
|
/* |
|
|
|
|
|
|
|
sourceList = getGroupLists(sourceAllList, s); |
|
|
|
sourceList = getGroupLists(sourceAllList, s); |
|
|
|
tmpList = sourceList; |
|
|
|
tmpList = sourceList; |
|
|
|
names = getnames(tmpList).names; |
|
|
|
names = getnames(tmpList).names; |
|
|
@ -488,18 +496,7 @@ function selectSource() { |
|
|
|
manage.list.push(x); |
|
|
|
manage.list.push(x); |
|
|
|
}); |
|
|
|
}); |
|
|
|
manage.change(); |
|
|
|
manage.change(); |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tmpList = getGroupLists(sourceAllList, s); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let flist = getnames(tmpList).names; |
|
|
|
|
|
|
|
manage.list.length = 0; |
|
|
|
|
|
|
|
flist.forEach(x => { |
|
|
|
|
|
|
|
manage.list.push(x); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
manage.change(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|