From 344a0ca02cd4d28f9a856efe8d63c0243468995c Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 23 May 2024 22:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index 12aad9a8..2f747ea0 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -62,24 +62,17 @@ function dianbo() { d.push(obj); }) -/* - d.push({ - title: Juconfig['sitename'] || '选择主页源', - url: $(['选择源'], 2).select((sitenames, cfgfile, Juconfig) => { - if(input=='选择源'){ - return $(sitenames, 2).select((cfgfile, Juconfig) => { - Juconfig['sitename'] = input; - writeFile(cfgfile, JSON.stringify(Juconfig)); - refreshPage(true); - return 'toast://选择主页源:' + input; - }, cfgfile, Juconfig) + if(!sourceNmae){ + d.push({ + title: runMode+" 主页源不存在\n需先选择配置主页源",//\n设置-选择漫画/小说/听书/ + desc: "点上面分类按钮皆可选择",//设置长按菜单可以开启界面切换开关 + url: 'toast://点上面分类按钮', + col_type: "text_center_1", + extra: { + lineVisible: false } - }, sitenames, cfgfile, Juconfig), - desc: '管理', - img: "https://hikerfans.com/tubiao/ke/31.png", - col_type: "avatar" - }) - */ + }) + } setResult(d); } //接口一级