diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 6850efa0..d41ed689 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -211,37 +211,41 @@ function getYiData(datatype,od) { let itemid = 标识 + "_" + datatype; let page = MY_PAGE || 1; let loading; - 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); + 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); + d = []; + putMyVar('动态加载loading', itemid); + } } let 执行str = parse[datatype].toString();