From 962a990ec94deb4aa3f4654a12aa008e00a7ff30 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 13 Jul 2023 12:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuSet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuSet.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/SrcJuSet.js b/SrcJuSet.js index 1c70ed6c..9e3c94e9 100644 --- a/SrcJuSet.js +++ b/SrcJuSet.js @@ -192,15 +192,35 @@ function SRCSet() { typebtn.unshift("全部"); //typebtn.push("失效"); typebtn.forEach(it =>{ - d.push({ - title: getMyVar("SrcJuJiekouType","全部")==it?`““””`+it+``:it, + let typename = it; + if(it != "全部" && getItem(it+'stoptype')=="1"){ + typename = typename+"(停)"; + } + let obj = { + title: getMyVar("SrcJuJiekouType","全部")==it?`““””`+typename+``:typename, url: $('#noLoading#').lazyRule((it) => { putMyVar("SrcJuJiekouType",it); refreshPage(false); return "hiker://empty"; },it), col_type: 'scroll_button' - }) + } + if(it != "全部"){ + obj.extra = {}; + obj["extra"].longClick = [{ + title: (getItem(it+'stoptype')=="1"?"停用":"启用")+it, + js: $.toString((it) => { + if(getItem(it+'stoptype')=="1"){ + clearItem(it+'stoptype'); + }else{ + setItem(it+'stoptype','1'); + } + refreshPage(false); + return "hiker://empty"; + },it) + }] + } + d.push(obj); }) d.push({ title: "🔍",