From 5a3328bb7b33dcbda0cbc2b081e4f64f9db2caf7 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Sun, 17 Dec 2023 10:50:36 +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 | 111 ++++++++++++++++++++++++++-----------------------
1 file changed, 60 insertions(+), 51 deletions(-)
diff --git a/SrcJuPublic.js b/SrcJuPublic.js
index e99fced3..f0b892c6 100644
--- a/SrcJuPublic.js
+++ b/SrcJuPublic.js
@@ -198,6 +198,7 @@ function getYiData(datatype,od) {
}
//四大金刚获取数据专用方法
function getClassData() {
+ let page = page || MY_PAGE;
let d = [];
let obj = parse.四大金刚 || {};
let class_name = (obj.class_name||"").split('&').filter(item => item != '');
@@ -209,72 +210,80 @@ function getClassData() {
let sort_name = (obj.sort_name||"").split('&').filter(item => item != '');
let sort_url = (obj.sort_url||"").split('&').filter(item => item != '');
let isAll = (obj.url||"").includes('fyAll')?1:0;
- let all_id = getMyVar("fyAll_id","0");
- let class_id = isAll?all_id:getMyVar("fyclass_id","0");
- let area_id = isAll?all_id:getMyVar("fyarea_id","0");
- let year_id = isAll?all_id:getMyVar("fyyear_id","0");
- let sort_id = isAll?all_id:getMyVar("fysort_id ","0");
+ let fyAll = getMyVar("fyAll_id", class_url.length>0?class_url[0]:"");
+ let fyclass = isAll?fyAll:getMyVar("fyclass_id", class_url.length>0?class_url[0]:"");
+ let fyarea = isAll?fyAll:getMyVar("fyarea_id", area_url.length>0?area_url[0]:"");
+ let fyyear = isAll?fyAll:getMyVar("fyyear_id", year_url.length>0?year_url[0]:"");
+ let fysort = isAll?fyAll:getMyVar("fysort_id", sort_url.length>0?sort_url[0]:"");
- class_name.forEach((it,i)=>{
- d.push({
- title: class_id==i?`““””`+it+``:it,
- url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
- if(nowid != newid){
- putMyVar(id_name, newid);
- refreshPage(false);
- }
- return 'hiker://empty'
- }, isAll?"fyAll_id":"fyclass_id", class_id, i),
- col_type: 'scroll_button'
- })
+ class_url.forEach((it,i)=>{
+ try{
+ d.push({
+ title: fyclass==it?`““””`+class_name[i]+``:class_name[i],
+ url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
+ if(nowid != newid){
+ putMyVar(id_name, newid);
+ refreshPage(false);
+ }
+ return 'hiker://empty'
+ }, isAll?"fyAll_id":"fyclass_id", fyclass, it),
+ col_type: 'scroll_button'
+ })
+ }catch(e){}
})
d.push({
col_type: "blank_block"
})
- area_name.forEach((it,i)=>{
- d.push({
- title: area_id==i?`““””`+it+``:it,
- url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
- if(nowid != newid){
- putMyVar(id_name, newid);
- refreshPage(false);
- }
- return 'hiker://empty'
- }, isAll?"fyAll_id":"area_id", area_id, i),
- col_type: 'scroll_button'
- })
+ area_url.forEach((it,i)=>{
+ try{
+ d.push({
+ title: fyarea==it?`““””`+area_name[i]+``:area_name[i],
+ url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
+ if(nowid != newid){
+ putMyVar(id_name, newid);
+ refreshPage(false);
+ }
+ return 'hiker://empty'
+ }, isAll?"fyAll_id":"fyarea_id", fyarea, it),
+ col_type: 'scroll_button'
+ })
+ }catch(e){}
})
d.push({
col_type: "blank_block"
})
year_name.forEach((it,i)=>{
- d.push({
- title: year_id==i?`““””`+it+``:it,
- url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
- if(nowid != newid){
- putMyVar(id_name, newid);
- refreshPage(false);
- }
- return 'hiker://empty'
- }, isAll?"fyAll_id":"year_id", year_id, i),
- col_type: 'scroll_button'
- })
+ try{
+ d.push({
+ title: fyyear==it?`““””`+year_name[i]+``:year_name[i],
+ url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
+ if(nowid != newid){
+ putMyVar(id_name, newid);
+ refreshPage(false);
+ }
+ return 'hiker://empty'
+ }, isAll?"fyAll_id":"fyyear_id", fyyear, it),
+ col_type: 'scroll_button'
+ })
+ }catch(e){}
})
d.push({
col_type: "blank_block"
})
sort_name.forEach((it,i)=>{
- d.push({
- title: sort_id==i?`““””`+it+``:it,
- url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
- if(nowid != newid){
- putMyVar(id_name, newid);
- refreshPage(false);
- }
- return 'hiker://empty'
- }, isAll?"fyAll_id":"sort_id", sort_id, i),
- col_type: 'scroll_button'
- })
+ try{
+ d.push({
+ title: fysort==it?`““””`+sort_name[i]+``:sort_name[i],
+ url: $("#noLoading#").lazyRule((id_name,nowid,newid) => {
+ if(nowid != newid){
+ putMyVar(id_name, newid);
+ refreshPage(false);
+ }
+ return 'hiker://empty'
+ }, isAll?"fyAll_id":"fysort_id", fysort, it),
+ col_type: 'scroll_button'
+ })
+ }catch(e){}
})
return d;