更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent bbee98d2c2
commit f19a81398d
  1. 40
      SrcJu.js

@ -67,16 +67,18 @@ function yiji() {
d.push({ d.push({
title: Juconfig["btnmenu5"] || "书架", title: Juconfig["btnmenu5"] || "书架",
url: Juconfig["btnmenu5"] == "历史" ? "hiker://history" : Juconfig["btnmenu5"] == "收藏" ? "hiker://collection" : $("hiker://empty#noRecordHistory##noHistory#").rule(() => { url: Juconfig["btnmenu5"] == "历史" ? "hiker://history" : Juconfig["btnmenu5"] == "收藏" ? "hiker://collection" : $("hiker://empty#noRecordHistory##noHistory#").rule(() => {
let collection = JSON.parse(fetch("hiker://collection"));
collection.forEach(it=>{
log(JSON.parse(JSON.parse(it.params).params).stype);
})
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
let d = []; let d = [];
let type = []; let type = [];
booklist.forEach(it => { let Julist = [];
if(type.indexOf(it.stype)==-1){ let collection = JSON.parse(fetch("hiker://collection"));
type.push(it.stype) collection.forEach(it => {
if(JSON.parse(it.params).title==MY_RULE.title){
Julist.push(it);
let t = JSON.parse(JSON.parse(it.params).params).stype;
if(type.indexOf(t)==-1){
type.push(t)
}
} }
}) })
for (let i = 0; i < 9; i++) { for (let i = 0; i < 9; i++) {
@ -136,23 +138,27 @@ function yiji() {
}) })
setResult(d); setResult(d);
let list = []; let list = [];
booklist.forEach(it => { Julist.forEach(it => {
if(getMyVar("SrcJuBookType")==it.stype || !getMyVar("SrcJuBookType")){ let stype = JSON.parse(JSON.parse(it.params).params).stype;
if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){
let name = JSON.parse(JSON.parse(it.params).params).name;
let sname = JSON.parse(JSON.parse(it.params).params).sname;
let surl = JSON.parse(JSON.parse(it.params).params).surl;
list.push({ list.push({
title: it.name, title: name,
pic_url: it.img, pic_url: it.picUrl,
desc: "源:"+it.sname+"\n", desc: "源:"+sname+"\n",
url: $('hiker://empty#immersiveTheme##autoCache#').rule(() => { url: $('hiker://empty#immersiveTheme##autoCache#').rule(() => {
require(config.依赖); require(config.依赖);
erji(); erji();
}), }),
col_type: Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic', col_type: Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic',
extra: { extra: {
name: it.name, name: name,
img: it.img, img: it.picUrl,
sname: it.sname, sname: sname,
stype: it.stype, stype: stype,
surl: it.surl, surl: surl,
lineVisible: false, lineVisible: false,
cls: "caselist" cls: "caselist"
} }

Loading…
Cancel
Save