更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent 499594b1eb
commit 054fac91ee
  1. 17
      SrcJu.js

@ -477,12 +477,15 @@ function erji() {
}); });
}; };
列表.reverse(); 列表.reverse();
/*
let list_col_type = getItem('SrcJuList_col_type', 'text_2'); let list_col_type = getItem('SrcJuList_col_type', 'text_2');
列表.forEach(item => { 列表.forEach(item => {
item.col_type = list_col_type; item.col_type = list_col_type.replace("_left","");
if(list_col_type.indexOf("_left")>-1){
item.extra.textAlign = 'left';
}else{
delete item.extra.textAlign;
}
}) })
*/
addItemBefore(getMyVar("listloading","1")=="1"?"listloading":"listloading2", 列表); addItemBefore(getMyVar("listloading","1")=="1"?"listloading":"listloading2", 列表);
return 'toast://切换排序成功' return 'toast://切换排序成功'
}, sname), }, sname),
@ -494,16 +497,16 @@ function erji() {
}) })
d.push({ d.push({
title: `““””<b><span style="color: #f47983">样式<small>🎨</small></span></b>`, title: `““””<b><span style="color: #f47983">样式<small>🎨</small></span></b>`,
url: $(["flex_button","text_1","text_2","text_3","text_2_left","text_3_left"],2,"选集列表样式").select(() => { url: $(["text_1","text_2","text_3","flex_button","text_2_left","text_3_left"],2,"选集列表样式").select(() => {
let 列表 = findItemsByCls('playlist') || []; let 列表 = findItemsByCls('playlist') || [];
if(列表.length==0){ if(列表.length==0){
return 'toast://未获取到列表' return 'toast://未获取到列表'
} }
deleteItemByCls('playlist'); deleteItemByCls('playlist');
let list_col_type = input.replace("_left",""); let list_col_type = input;
列表.forEach(item => { 列表.forEach(item => {
item.col_type = list_col_type; item.col_type = list_col_type.replace("_left","");
if(input.indexOf("_left")>-1){ if(list_col_type.indexOf("_left")>-1){
item.extra.textAlign = 'left'; item.extra.textAlign = 'left';
}else{ }else{
delete item.extra.textAlign; delete item.extra.textAlign;

Loading…
Cancel
Save