From 06e5fd88eb919c13c58505e295c981548c3e1672 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 8 May 2024 17:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 64 +++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index f937839e..2ca35c8b 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -214,41 +214,37 @@ function getYiData(datatype,od) { let itemid = 标识 + "_" + datatype; let page = MY_PAGE || 1; let loading; - if (page==1 && typeof(setPreResult)!="undefined") { - if(getMyVar('动态加载loading')==itemid){ - setPreResult(d); - }else{ - loading = 1; - d.push({ - title: "", - url: "hiker://empty", - col_type: "text_1", - extra: { - lineVisible: false, - cls: "loading_gif" - } - }) - d.push({ - title: "", - url: "hiker://empty", - col_type: "text_1", - extra: { - lineVisible: false, - cls: "loading_gif" - } - }) - d.push({ - pic_url: "https://hikerfans.com/weisyr/img/Loading1.gif", - col_type: "pic_1_center", - url: "hiker://empty", - extra: { - cls: "loading_gif" - } - }) - setPreResult(d); - putMyVar('动态加载loading', itemid); - } + if (page==1 && typeof(setPreResult)!="undefined" && getMyVar('动态加载loading')!=itemid) { + loading = 1; + d.push({ + title: "", + url: "hiker://empty", + col_type: "text_1", + extra: { + lineVisible: false, + cls: "loading_gif" + } + }) + d.push({ + title: "", + url: "hiker://empty", + col_type: "text_1", + extra: { + lineVisible: false, + cls: "loading_gif" + } + }) + d.push({ + pic_url: "https://hikerfans.com/weisyr/img/Loading1.gif", + col_type: "pic_1_center", + url: "hiker://empty", + extra: { + cls: "loading_gif" + } + }) + setPreResult(d); d = []; + putMyVar('动态加载loading', itemid); } let 执行str = parse[datatype].toString();