From 7e01982b6e3445424a8838b6928b32cfe1c2d06f Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 29 Nov 2022 14:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyData.js | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index fac68127..d113d241 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -57,13 +57,38 @@ let yijimenu = [ col_type: 'icon_5' }, { - title: "展示", - url: $("hiker://empty##fypage#noRecordHistory##noHistory#").rule(() => { + title: getItem('zhanshibutton')=="history"?"历史":"展示", + url: getItem('zhanshibutton')=="history"?"hiker://history":$("hiker://empty##fypage#noRecordHistory##noHistory#").rule(() => { require(config.依赖); jiekouyiji(); }), pic_url: 'https://lanmeiguojiang.com/tubiao/more/105.png', - col_type: 'icon_5' + col_type: 'icon_5', + extra: { + id: "zhanshibutton", + longClick: [{ + title: "切换按钮功能", + js: $.toString(() => { + if(getItem('zhanshibutton')=="history"){ + clearItem('zhanshibutton'); + updateItem("zhanshibutton", { + title: "展示", + url: $("hiker://empty##fypage#noRecordHistory##noHistory#").rule(() => { + require(config.依赖); + jiekouyiji(); + }) + }); + }else{ + setItem('zhanshibutton','history'); + updateItem("zhanshibutton", { + title: "历史", + url: "hiker://history" + }); + } + return "toast://已切换" + },JYconfig,cfgfile) + }] + } }, { title: "直播",