From 2f2b1fad813a6ff607d564fd1e68a97296e1c1f1 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 13 Apr 2023 14:22:40 +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 | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index f437937e..a62b91f3 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -395,9 +395,8 @@ function erji() { } d.push({ title: getMyVar(sname + 'sort') == '1' ? `““””排序⇅` : `““””排序⇅`, - url: $("#noLoading#").lazyRule((列表,name,sname,lazy) => { - let arr = findItemsByCls('playlist'); - deleteItemByCls('playlist'); + url: $("#noLoading#").lazyRule((sname) => { + let 列表 = findItemsByCls('playlist'); if (getMyVar(sname + 'sort') == '1') { putMyVar(sname + 'sort', '0'); updateItem('listsort', { @@ -405,37 +404,19 @@ function erji() { }); } else { putMyVar(sname + 'sort', '1') - //列表.reverse(); - arr.reverse(); updateItem('listsort', { title: `““””排序⇅` }); }; - - /* - let d = []; - let list_col_type = getItem('SrcJuList_col_type', 'text_2'); - for(let i=0; i<列表.length; i++) { - d.push({ - title: 列表[i].title, - url: "hiker://empty##" + 列表[i].url + lazy, - col_type: list_col_type, - extra: { - id: name + "_选集_" + i, - url: 列表[i].url, - cls: "loadlist playlist" - } - }); - } - addItemBefore('listloading', d); - */ + 列表.reverse(); let list_col_type = getItem('SrcJuList_col_type', 'text_2'); - arr.forEach(item => { + 列表.forEach(item => { item.col_type = list_col_type; }) - addItemBefore('listloading', arr); + deleteItemByCls('playlist'); + addItemBefore('listloading', 列表); return 'toast://切换排序成功' - }, 列表,name,sname,lazy), + }, sname), col_type: 'scroll_button', extra: { id: "listsort",