From 7eb807cf8aa4e7e8ab8583efa93de151346e545d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 12 Jul 2023 21:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index df5f01f9..3192f186 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -1245,9 +1245,8 @@ function newsousuopage() { }); let typebtn = runModes; - typebtn.push("影视"); - typebtn.forEach(it =>{ - d.push({ + typebtn.forEach((it,i) =>{ + let obj = { title: getMyVar("sousuoPageType",runMode)==it?`““””`+it+``:it, url: $('#noLoading#').lazyRule((it) => { putMyVar("sousuoPageType",it); @@ -1256,7 +1255,18 @@ function newsousuopage() { return "hiker://empty"; },it), col_type: 'text_5' - }) + } + if(i>4){ + obj.extra.longClick = [{ + title:"聚影", + js: $.toString(()=>{ + putMyVar("sousuoPageType","聚影"); + initConfig({依赖: getMyVar('SrcJuCfg')}); + refreshPage(false); + return "hiker://empty"; + }) + }]; + } }) let recordlist = storage0.getItem('searchrecord') || []; @@ -1304,7 +1314,7 @@ function newsousuopage() { col_type: 'text_center_1', url: "hiker://empty", extra: { - id: getMyVar('sousuoPageType')=="影视"?"loading":"sousuoloading"+getMyVar('sousuoPageType',''), + id: getMyVar('sousuoPageType')=="聚影"?"loading":"sousuoloading"+getMyVar('sousuoPageType',''), lineVisible: false } }); @@ -1312,7 +1322,7 @@ function newsousuopage() { let name = getMyVar('sousuoname',''); if(name){ deleteItemByCls('searchrecord'); - if(getMyVar('sousuoPageType')=="影视"){ + if(getMyVar('sousuoPageType')=="聚影"){ initConfig({依赖: getMyVar('SrcJuCfg').replace('Ju','master')}); require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('Ju','master') + 'SrcJyXunmi.js'); xunmi(name);