|
|
@ -96,7 +96,7 @@ function selectSource(selectType) { |
|
|
|
getListData("yi",selectType).forEach(it=>{ |
|
|
|
getListData("yi",selectType).forEach(it=>{ |
|
|
|
if(sourcenames.indexOf(it.name)==-1){ |
|
|
|
if(sourcenames.indexOf(it.name)==-1){ |
|
|
|
if(Juconfig[runMode+'sourcename'] == it.name){ |
|
|
|
if(Juconfig[runMode+'sourcename'] == it.name){ |
|
|
|
it.name = '‘‘’’<span style="color:red" title="'+it.name+'">'+it.name+'</span>'; |
|
|
|
it.name = '<span style="color:red" title="'+it.name+'">'+it.name+'</span>'; |
|
|
|
} |
|
|
|
} |
|
|
|
sourcenames.push({title: it.name, icon: it.img, url: it.name}); |
|
|
|
sourcenames.push({title: it.name, icon: it.img, url: it.name}); |
|
|
|
} |
|
|
|
} |
|
|
@ -105,7 +105,7 @@ function selectSource(selectType) { |
|
|
|
return "toast://当前分类无接口" |
|
|
|
return "toast://当前分类无接口" |
|
|
|
} |
|
|
|
} |
|
|
|
//return $(sourcenames,3,"选择 "+selectType+" 主页源").select((runMode,sourcename,cfgfile,Juconfig) => {
|
|
|
|
//return $(sourcenames,3,"选择 "+selectType+" 主页源").select((runMode,sourcename,cfgfile,Juconfig) => {
|
|
|
|
hikerPop.selectCenterIcon({iconList: sourcenames, title: "选择 "+selectType+" 主页源", columns: 3, click(input) { |
|
|
|
hikerPop.selectCenterIcon({iconList: sourcenames, title: "选择 "+selectType+" 主页源", columns: 2, click(input) { |
|
|
|
input = input.replace(/‘|’|“|”|<[^>]+>/g,""); |
|
|
|
input = input.replace(/‘|’|“|”|<[^>]+>/g,""); |
|
|
|
if(Juconfig["runMode"] == runMode && input==Juconfig[runMode+'sourcename']){ |
|
|
|
if(Juconfig["runMode"] == runMode && input==Juconfig[runMode+'sourcename']){ |
|
|
|
return 'toast://'+runMode+' 主页源:' + input; |
|
|
|
return 'toast://'+runMode+' 主页源:' + input; |
|
|
|