From 06dd080552db85efd563a96faf10d456cf6684f9 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 7 Apr 2023 20:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 65 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index 0154815e..9b3971c4 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -87,6 +87,38 @@ function yiji() { log("书架加载异常>"+e.message); } }) + let list = []; + 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 extraData = it.extraData?JSON.parse(it.extraData):{}; + let last = extraData.lastChapterStatus?extraData.lastChapterStatus:""; + let mask = it.lastClick?it.lastClick.split('@@')[0]:""; + list.push({ + title: name + "\n\n‘‘’’💠 "+stype+"", + pic_url: it.picUrl, + desc: "🕓 "+mask+"\n\n🔘 "+last, + url: $('hiker://empty#immersiveTheme##autoCache#').rule(() => { + require(config.依赖); + erji(); + }), + col_type: Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic', + extra: { + name: name, + img: it.picUrl, + stype: stype, + lineVisible: false, + cls: "caselist" + } + }) + } + }catch(e){ + log("书架加载异常>"+e.message); + } + }) let d = []; d.push({ title: '书架搜索', @@ -126,38 +158,7 @@ function yiji() { col_type: 'scroll_button' }) }) - let list = []; - 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 extraData = it.extraData?JSON.parse(it.extraData):{}; - let last = extraData.lastChapterStatus?extraData.lastChapterStatus:""; - let mask = it.lastClick?it.lastClick.split('@@')[0]:""; - list.push({ - title: name + "\n‘‘’’💠 "+stype+"", - pic_url: it.picUrl, - desc: "🕓 "+mask+"\n\n🔘 "+last, - url: $('hiker://empty#immersiveTheme##autoCache#').rule(() => { - require(config.依赖); - erji(); - }), - col_type: Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic', - extra: { - name: name, - img: it.picUrl, - stype: stype, - lineVisible: false, - cls: "caselist" - } - }) - } - }catch(e){ - log("书架加载异常>"+e.message); - } - }) + d = d.concat(list); d.push({ title: "",