更新 'SrcJu.js'

Ju
src48597962 1 year ago
parent 122565e02d
commit 8f30cfbaf3
  1. 27
      SrcJu.js

@ -15,7 +15,7 @@ require(publicfile);
//一级 //一级
function yiji() { function yiji() {
let sourcedata = yidatalist.filter(it => { let sourcedata = yidatalist.filter(it => {
return it.name == sourcename && it.type==runMode; return it.name == sourcename && (jkGroupType=="2"?it.group||it.type:it.type) == runMode;
}); });
let parse = {}; let parse = {};
let 页码 = {}; let 页码 = {};
@ -29,7 +29,8 @@ function yiji() {
} else { } else {
parse = source; parse = source;
} }
storage0.putMyVar('一级源接口信息',{name: sourcename, type: runMode, group: sourcedata[0].group, img: sourcedata[0].img});//传导给方法文件 runType = sourcedata[0].type;
storage0.putMyVar('一级源接口信息',{name: sourcename, type: runType, group: sourcedata[0].group, img: sourcedata[0].img});//传导给方法文件
try{ try{
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js');
cacheData(sourcedata[0]); cacheData(sourcedata[0]);
@ -96,17 +97,7 @@ function yiji() {
extra: { extra: {
newWindow: true, newWindow: true,
windowId: MY_RULE.title + "管理", windowId: MY_RULE.title + "管理",
longClick: runModes.map((it)=>{ longClick: [{
return {
title: it,
js: $.toString((cfgfile,Juconfig,input)=>{
Juconfig["runMode"] = input;
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false);
return 'toast://主页源分类分组已切换为:' + input;
}, cfgfile, Juconfig,it)
}
}).concat([{
title:getItem('runtypebtn')=="1"?"关界面按钮":"开界面按钮", title:getItem('runtypebtn')=="1"?"关界面按钮":"开界面按钮",
js: $.toString(()=>{ js: $.toString(()=>{
if(getItem('runtypebtn')=="1"){ if(getItem('runtypebtn')=="1"){
@ -122,7 +113,7 @@ function yiji() {
refreshPage(false); refreshPage(false);
return "hiker://empty"; return "hiker://empty";
}) })
}]) }]
} }
}) })
let zz = 转换["排行"] || "排行"; let zz = 转换["排行"] || "排行";
@ -232,8 +223,8 @@ function yiji() {
let typemenubtn = Object.assign([],runModes); let typemenubtn = Object.assign([],runModes);
typemenubtn.forEach((it) =>{ typemenubtn.forEach((it) =>{
let item = { let item = {
title: Juconfig["runMode"]==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it, title: runMode==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it,
url: Juconfig["runMode"]==it?$('#noLoading#').lazyRule((input) => { url: runMode==it?$('#noLoading#').lazyRule((input) => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
return selectsource(input); return selectsource(input);
}, it):$('#noLoading#').lazyRule((cfgfile,Juconfig,input) => { }, it):$('#noLoading#').lazyRule((cfgfile,Juconfig,input) => {
@ -244,7 +235,7 @@ function yiji() {
}, cfgfile, Juconfig ,it), }, cfgfile, Juconfig ,it),
col_type: runModes_btntype col_type: runModes_btntype
} }
if(Juconfig["runMode"]==it){ if(runMode==it){
item.extra = { item.extra = {
longClick: [{ longClick: [{
title: "删除当前", title: "删除当前",
@ -258,7 +249,7 @@ function yiji() {
clearMyVar('SrcJu_searchMark'); clearMyVar('SrcJu_searchMark');
return 'toast://已删除'; return 'toast://已删除';
},sourcefile,id) },sourcefile,id)
},sourcefile,Juconfig["runMode"]+"_"+sourcename) }, sourcefile, runType+"_"+sourcename)
}] }]
} }
} }

Loading…
Cancel
Save