From cc2f69ee95740fcefb75bd3bff1f71bff7bc36a1 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Mon, 27 May 2024 14:15:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SrcJyData.js | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/SrcJyData.js b/SrcJyData.js
index 2f937ad2..3093550f 100644
--- a/SrcJyData.js
+++ b/SrcJyData.js
@@ -177,21 +177,26 @@ function getYiData(jkdata) {
}
storage0.putMyVar('SrcJu_dianbo$classCache', {typeclass:typeclass, recommends:recommends});
}
-
- d.push({
- title: fold === '1' ? '““””∨' : '““””∧',
- url: $('#noLoading#').lazyRule((fold) => {
- putMyVar('SrcJu_dianbo$fold', fold === '1' ? '0' : '1');
- refreshPage(false);
- return "hiker://empty";
- }, fold),
- col_type: 'scroll_button',
- })
if(typeclass.length>0){
let cates = typeclass.filter(it=>{
return it.type_pid==0;
})
+ let types = typeclass.filter(it=>{
+ return it.type_pid == cate_id;
+ })
+ if(types.length>0){
+ d.push({
+ title: fold === '1' ? '““””∨' : '““””∧',
+ url: $('#noLoading#').lazyRule((fold) => {
+ putMyVar('SrcJu_dianbo$fold', fold === '1' ? '0' : '1');
+ refreshPage(false);
+ return "hiker://empty";
+ }, fold),
+ col_type: 'scroll_button',
+ })
+ }
+
let cate_id = getMyVar('SrcJu_dianbo$cate_id', recommends.length>0?'tj':cates[0].type_id.toString());
if(recommends.length>0){
if(cate_id == 'tj'){
@@ -223,9 +228,7 @@ function getYiData(jkdata) {
d.push({
col_type: "blank_block"
});
- let types = typeclass.filter(it=>{
- return it.type_pid == cate_id;
- })
+
type_id = types.length>0?getMyVar('SrcJu_dianbo$type_id', types[0].type_id.toString()):cate_id;
putMyVar('SrcJu_dianbo$type_id', type_id);
if(fold=='1'){