From 9b5d499535d5a78bb4d6c9654cab36c1a5f308a6 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 13 Apr 2023 14:24:30 +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 | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index a62b91f3..c7f10a96 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -425,25 +425,16 @@ function erji() { }) d.push({ title: `““””样式🎨`, - url: $(["text_1","text_2","text_3","flex_button"],1,"选集列表样式").select((列表, name,lazy) => { + url: $(["text_1","text_2","text_3","flex_button"],1,"选集列表样式").select(() => { + let 列表 = findItemsByCls('playlist'); + 列表.forEach(item => { + item.col_type = input; + }) deleteItemByCls('playlist'); - let d = []; - for(let i=0; i<列表.length; i++) { - d.push({ - title: 列表[i].title, - url: "hiker://empty##" + 列表[i].url + lazy, - col_type: input, - extra: { - id: name + "_选集_" + i, - url: 列表[i].url, - cls: "loadlist playlist" - } - }); - } - addItemBefore('listloading', d); + addItemBefore('listloading', 列表); setItem('SrcJuList_col_type', input); return 'hiker://empty' - }, 列表,name,lazy), + }), col_type: 'scroll_button', extra: { cls: "loadlist"