更新 'SrcJyData.js'

master
src48597962 2 years ago
parent 6b0f58c3fa
commit 08dd716ae5
  1. 45
      SrcJyData.js

@ -112,28 +112,32 @@ let yijimenu = [
extra: { extra: {
id: "zhanshibutton", id: "zhanshibutton",
longClick: [{ longClick: [{
title: "切"+(getItem('zhanshibutton')=="history"?"历史":"展示")+"按钮", title: "切为展示",
js: $.toString(() => { js: $.toString(() => {
if(getItem('zhanshibutton')=="history"){ clearItem('zhanshibutton');
clearItem('zhanshibutton'); updateItem("zhanshibutton", {
updateItem("zhanshibutton", { title: "展示",
title: "展示", pic_url: 'https://lanmeiguojiang.com/tubiao/more/105.png',
url: $("hiker://empty##fypage#noRecordHistory##noHistory#").rule(() => { url: $("hiker://empty##fypage#noRecordHistory##noHistory#").rule(() => {
require(config.依赖); require(config.依赖);
jiekouyiji(); jiekouyiji();
}) })
}); });
}else{ return "toast://已切换为展示按钮";
setItem('zhanshibutton','history'); })
updateItem("zhanshibutton", { },{
title: "历史", title: "切为历史",
url: "hiker://history" js: $.toString(() => {
}); setItem('zhanshibutton','history');
} updateItem("zhanshibutton", {
return "toast://已切换" title: "历史",
},JYconfig,cfgfile) pic_url: 'https://lanmeiguojiang.com/tubiao/more/105.png',
url: "hiker://history"
});
return "toast://已切换为历史按钮";
})
},{ },{
title: "切换为Alist网盘按钮", title: "切为Alist网盘",
js: $.toString(() => { js: $.toString(() => {
setItem('zhanshibutton','alist'); setItem('zhanshibutton','alist');
updateItem("zhanshibutton", { updateItem("zhanshibutton", {
@ -144,6 +148,7 @@ let yijimenu = [
alisthome(); alisthome();
}) })
}); });
return "toast://已切换为Alist网盘按钮";
}) })
}] }]
} }

Loading…
Cancel
Save