更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent 06a6501104
commit a83e604207
  1. 218
      SrcJu.js

@ -39,144 +39,136 @@ function yiji() {
}) })
d.push({ d.push({
title: "排行", title: "排行",
url: $('#noLoading#').lazyRule((page) => { url: $("hiker://empty#noRecordHistory##noHistory#" + (page["排行"] ? "?page=fypage" : "")).rule(() => {
return $("hiker://empty#noRecordHistory##noHistory#" + (page["排行"] ? "?page=fypage" : "")).rule(() => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); getYiData('排行');
getYiData('排行'); }),
})
},page),
pic_url: "https://lanmeiguojiang.com/tubiao/more/229.png", pic_url: "https://lanmeiguojiang.com/tubiao/more/229.png",
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
title: "分类", title: "分类",
url: $('#noLoading#').lazyRule((page) => { url: $("hiker://empty#noRecordHistory##noHistory#" + (page["分类"] != 0 ? "?page=fypage" : "")).rule(() => {
return $("hiker://empty#noRecordHistory##noHistory#" + (page["分类"] != 0 ? "?page=fypage" : "")).rule(() => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); getYiData('分类');
getYiData('分类'); }),
})
},page),
pic_url: "https://lanmeiguojiang.com/tubiao/more/287.png", pic_url: "https://lanmeiguojiang.com/tubiao/more/287.png",
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
title: "更新", title: "更新",
url: $('#noLoading#').lazyRule((page) => { url: $("hiker://empty#noRecordHistory##noHistory#" + (page["更新"] ? "?page=fypage" : "")).rule(() => {
return $("hiker://empty#noRecordHistory##noHistory#" + (page["更新"] ? "?page=fypage" : "")).rule(() => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); getYiData('更新');
getYiData('更新'); }),
})
},page),
pic_url: "https://lanmeiguojiang.com/tubiao/more/288.png", pic_url: "https://lanmeiguojiang.com/tubiao/more/288.png",
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
title: Juconfig["btnmenu5"] || "书架", title: Juconfig["btnmenu5"] || "书架",
url: Juconfig["btnmenu5"] == "历史" ? "hiker://history?rule="+MY_RULE.title : Juconfig["btnmenu5"] == "收藏" ? "hiker://collection?rule="+MY_RULE.title : $('#noLoading#').lazyRule(() => { url: Juconfig["btnmenu5"] == "历史" ? "hiker://history?rule="+MY_RULE.title : Juconfig["btnmenu5"] == "收藏" ? "hiker://collection?rule="+MY_RULE.title : $("hiker://empty###noRecordHistory##noHistory#").rule(() => {
return $("hiker://empty#noRecordHistory##noHistory#").rule(() => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); let type = [];
let type = []; let Julist = [];
let Julist = []; let collection = JSON.parse(fetch("hiker://collection?rule="+MY_RULE.title));
let collection = JSON.parse(fetch("hiker://collection?rule="+MY_RULE.title)); collection.forEach(it => {
collection.forEach(it => { try{
try{ if(it.params&& (JSON.parse(it.params).title==MY_RULE.title)){
if(it.params&& (JSON.parse(it.params).title==MY_RULE.title)){ Julist.push(it);
Julist.push(it); let params = JSON.parse(it.params);
let params = JSON.parse(it.params); if(params.params){
if(params.params){ let t = JSON.parse(params.params).stype;
let t = JSON.parse(params.params).stype; if(type.indexOf(t)==-1){
if(type.indexOf(t)==-1){ type.push(t)
type.push(t)
}
} }
} }
}catch(e){
log("书架加载异常>"+e.message);
} }
}) }catch(e){
log("书架加载异常>"+e.message);
}
})
let d = []; let d = [];
d.push({
title: ' 本地书架',
url: "hiker://page/Main.view?rule=本地资源管理",
img: "https://lanmeiguojiang.com/tubiao/messy/70.svg",
col_type: "icon_2"
});
d.push({
title: ' 切换样式',
url: $('#noLoading#').lazyRule((cfgfile, Juconfig) => {
if(Juconfig["bookCase_col_type"]=="movie_1_vertical_pic"){
Juconfig["bookCase_col_type"] = "movie_3_marquee";
}else{
Juconfig["bookCase_col_type"] = "movie_1_vertical_pic";
}
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false);
return 'hiker://empty';
}, cfgfile, Juconfig),
img: "https://lanmeiguojiang.com/tubiao/messy/85.svg",
col_type: "icon_2"
});
for (let i = 0; i < 8; i++) {
d.push({ d.push({
title: ' 本地书架', col_type: "blank_block"
url: "hiker://page/Main.view?rule=本地资源管理", })
img: "https://lanmeiguojiang.com/tubiao/messy/70.svg", }
col_type: "icon_2" type.forEach(it=>{
});
d.push({ d.push({
title: ' 切换样式', title: getMyVar("SrcJuBookType","")==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it,
url: $('#noLoading#').lazyRule((cfgfile, Juconfig) => { url: $('#noLoading#').lazyRule((it) => {
if(Juconfig["bookCase_col_type"]=="movie_1_vertical_pic"){ putMyVar("SrcJuBookType",it);
Juconfig["bookCase_col_type"] = "movie_3_marquee";
}else{
Juconfig["bookCase_col_type"] = "movie_1_vertical_pic";
}
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false); refreshPage(false);
return 'hiker://empty'; return "hiker://empty";
}, cfgfile, Juconfig), },it),
img: "https://lanmeiguojiang.com/tubiao/messy/85.svg", col_type: 'scroll_button'
col_type: "icon_2"
});
for (let i = 0; i < 8; i++) {
d.push({
col_type: "blank_block"
})
}
type.forEach(it=>{
d.push({
title: getMyVar("SrcJuBookType","")==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it,
url: $('#noLoading#').lazyRule((it) => {
putMyVar("SrcJuBookType",it);
refreshPage(false);
return "hiker://empty";
},it),
col_type: 'scroll_button'
})
})
Julist.forEach(it => {
try{
let params = JSON.parse(it.params);
let stype = JSON.parse(params.params).stype;
if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){
let name = JSON.parse(params.params).name;
let sname = JSON.parse(params.params).sname;
let extraData = it.extraData?JSON.parse(it.extraData):{};
let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic';
d.push({
title: name,
pic_url: it.picUrl,
desc: col=='movie_1_vertical_pic'?"‘‘’’<small>💠 "+stype+" | "+sname+"\n🔘 "+last+"\n🕓 "+mask+"</small>":last,
url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => {
require(config.依赖);
erji();
}),
col_type: col,
extra: {
name: name,
img: it.picUrl,
stype: stype,
lineVisible: false,
cls: "caselist"
}
})
}
}catch(e){
log("书架加载异常>"+e.message);
}
}) })
d.push({ })
title: "", Julist.forEach(it => {
url: "hiker://empty", try{
col_type: "text_center_1", let params = JSON.parse(it.params);
extra: { let stype = JSON.parse(params.params).stype;
lineVisible: false, if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){
id: "caseloading" let name = JSON.parse(params.params).name;
let sname = JSON.parse(params.params).sname;
let extraData = it.extraData?JSON.parse(it.extraData):{};
let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic';
d.push({
title: name,
pic_url: it.picUrl,
desc: col=='movie_1_vertical_pic'?"‘‘’’<small>💠 "+stype+" | "+sname+"\n🔘 "+last+"\n🕓 "+mask+"</small>":last,
url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => {
require(config.依赖);
erji();
}),
col_type: col,
extra: {
name: name,
img: it.picUrl,
stype: stype,
lineVisible: false,
cls: "caselist"
}
})
} }
}) }catch(e){
setResult(d); log("书架加载异常>"+e.message);
}
})
d.push({
title: "",
url: "hiker://empty",
col_type: "text_center_1",
extra: {
lineVisible: false,
id: "caseloading"
}
}) })
setResult(d);
}), }),
pic_url: "https://lanmeiguojiang.com/tubiao/more/286.png", pic_url: "https://lanmeiguojiang.com/tubiao/more/286.png",
col_type: 'icon_5', col_type: 'icon_5',

Loading…
Cancel
Save