更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent 0caff4e543
commit f8d2163dbd
  1. 7
      SrcJu.js

@ -396,6 +396,7 @@ function erji() {
d.push({ d.push({
title: getMyVar(sname + 'sort') == '1' ? `““””<b><span style="color: #66CCEE">排序⇅</span></b>` : `““””<b><span style="color: #55AA44">排序⇅</span></b>`, title: getMyVar(sname + 'sort') == '1' ? `““””<b><span style="color: #66CCEE">排序⇅</span></b>` : `““””<b><span style="color: #55AA44">排序⇅</span></b>`,
url: $("#noLoading#").b64().lazyRule((列表,name,sname,lazy) => { url: $("#noLoading#").b64().lazyRule((列表,name,sname,lazy) => {
let arr = findItemsByCls('playlist');
deleteItemByCls('playlist'); deleteItemByCls('playlist');
if (getMyVar(sname + 'sort') == '1') { if (getMyVar(sname + 'sort') == '1') {
putMyVar(sname + 'sort', '0'); putMyVar(sname + 'sort', '0');
@ -404,11 +405,13 @@ function erji() {
}); });
} else { } else {
putMyVar(sname + 'sort', '1') putMyVar(sname + 'sort', '1')
列表.reverse(); //列表.reverse();
arr.reverse();
updateItem('listsort', { updateItem('listsort', {
title: `““””<b><span style="color: #66CCEE">排序⇅</span></b>` title: `““””<b><span style="color: #66CCEE">排序⇅</span></b>`
}); });
}; };
/*
let d = []; let d = [];
let list_col_type = getItem('SrcJuList_col_type', 'text_2'); let list_col_type = getItem('SrcJuList_col_type', 'text_2');
for(let i=0; i<列表.length; i++) { for(let i=0; i<列表.length; i++) {
@ -424,6 +427,8 @@ function erji() {
}); });
} }
addItemBefore('listloading', d); addItemBefore('listloading', d);
*/
addItemBefore('listloading', arr);
return 'toast://切换排序成功' return 'toast://切换排序成功'
}, 列表,name,sname,lazy), }, 列表,name,sname,lazy),
col_type: 'scroll_button', col_type: 'scroll_button',

Loading…
Cancel
Save