更新 'SrcJyData.js'

master
src48597962 9 months ago
parent 4b452b8afe
commit c8b0137b70
  1. 44
      SrcJyData.js

@ -854,9 +854,7 @@ function getYiData(jkdata) {
}else{ }else{
let typehtml = JSON.parse(gethtml); let typehtml = JSON.parse(gethtml);
typeclass = typehtml.class;//分类列表 typeclass = typehtml.class;//分类列表
if(getMyVar('SrcJu_dianbo$cate_id','0')=='0'){ recommends = typehtml.list;//推荐影片
recommends = typehtml.list;//推荐影片
}
} }
if(jkdata.categories){ if(jkdata.categories){
@ -906,30 +904,32 @@ function getYiData(jkdata) {
col_type: 'scroll_button' col_type: 'scroll_button'
}); });
}) })
d.push({ d.push({
col_type: "blank_block" col_type: "blank_block"
}); });
const fold = getMyVar('SrcJu_dianbo$fold', "0");
let cate_id = getMyVar('SrcJu_dianbo$cate_id', cates[0].type_id.toString()); if(fold=='1'){
let types = typeclass.filter(it=>{ let cate_id = getMyVar('SrcJu_dianbo$cate_id', recommends.length>0?'0':cates[0].type_id.toString());
return it.type_pid==cate_id; let types = typeclass.filter(it=>{
}) return it.type_pid==cate_id;
})
types.forEach(it=>{ types.forEach(it=>{
d.push({
title: getMyVar('SrcJu_dianbo$type_id')==it.type_id?'““””<b><span style="color:' + Color + '">' + it.type_name + '</span></b>':it.type_name,
url: $('#noLoading#').lazyRule((type_id) => {
putMyVar('SrcJu_dianbo$type_id', type_id);
refreshPage(true);
return "hiker://empty";
}, it.type_id),
col_type: 'scroll_button'
});
})
d.push({ d.push({
title: getMyVar('SrcJu_dianbo$type_id')==it.type_id?'““””<b><span style="color:' + Color + '">' + it.type_name + '</span></b>':it.type_name, col_type: "blank_block"
url: $('#noLoading#').lazyRule((type_id) => {
putMyVar('SrcJu_dianbo$type_id', type_id);
refreshPage(true);
return "hiker://empty";
}, it.type_id),
col_type: 'scroll_button'
}); });
}) }
d.push({
col_type: "blank_block"
});
/* /*
let type_pids = []; let type_pids = [];
let type_ids = []; let type_ids = [];

Loading…
Cancel
Save