更新 'SrcBookCase.js'

Ju
src48597962 2 years ago
parent 791ed091c8
commit c2625f33a4
  1. 64
      SrcBookCase.js

@ -54,40 +54,38 @@ function bookCase() {
}) })
Julist.forEach(it => { Julist.forEach(it => {
if(getMyVar("SrcJuBookType","全部")=="全部" || getMyVar("SrcJuBookType","全部")==item.type){ try{
try{ let params = JSON.parse(it.params);
let params = JSON.parse(it.params); let stype = JSON.parse(params.params).stype;
let stype = JSON.parse(params.params).stype; if(getMyVar("SrcJuBookType")==stype || getMyVar("SrcJuBookType","全部")=="全部"){
if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){ let name = JSON.parse(params.params).name;
let name = JSON.parse(params.params).name; let sname = JSON.parse(params.params).sname;
let sname = JSON.parse(params.params).sname; let extraData = it.extraData?JSON.parse(it.extraData):{};
let extraData = it.extraData?JSON.parse(it.extraData):{}; let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
let last = extraData.lastChapterStatus?extraData.lastChapterStatus:""; let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
let mask = it.lastClick?it.lastClick.split('@@')[0]:""; let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic';
let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic'; d.push({
d.push({ title: col=='movie_1_vertical_pic'?name + "\n\n‘‘’’<small>💠 "+stype+" | "+(sname||"")+"</small>":name,
title: col=='movie_1_vertical_pic'?name + "\n\n‘‘’’<small>💠 "+stype+" | "+(sname||"")+"</small>":name, pic_url: it.picUrl,
pic_url: it.picUrl, desc: col=='movie_1_vertical_pic'?"🕓 "+mask+"\n\n🔘 "+last:last,
desc: col=='movie_1_vertical_pic'?"🕓 "+mask+"\n\n🔘 "+last:last, url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => {
url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => { require(config.依赖);
require(config.依赖); erji();
erji(); putMyVar('SrcBookCase','1');
putMyVar('SrcBookCase','1'); }),
}), col_type: col,
col_type: col, extra: {
extra: { pageTitle: name,
pageTitle: name, name: name,
name: name, img: it.picUrl,
img: it.picUrl, stype: stype,
stype: stype, lineVisible: false,
lineVisible: false, cls: "caselist"
cls: "caselist" }
} })
})
}
}catch(e){
log("书架加载异常>"+e.message);
} }
}catch(e){
log("书架加载异常>"+e.message);
} }
}) })
d.push({ d.push({

Loading…
Cancel
Save