更新 'SrcJuman.js'

Ju
src48597962 2 years ago
parent 6e38e185bb
commit 32efd02070
  1. 34
      SrcJuman.js

@ -32,9 +32,9 @@ function yiji() {
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
title: "更新", title: "排行",
url: "", url: "",
pic_url: "hiker://files/cache/src/更新.webp", pic_url: "hiker://files/cache/src/排行.webp",
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
@ -44,9 +44,9 @@ function yiji() {
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
title: "排行", title: "更新",
url: "", url: "",
pic_url: "hiker://files/cache/src/排行.webp", pic_url: "hiker://files/cache/src/更新.webp",
col_type: 'icon_5' col_type: 'icon_5'
}) })
d.push({ d.push({
@ -92,9 +92,10 @@ function yiji() {
}) })
} }
data.forEach(item => { data.forEach(item => {
item.extra = {name: item.title, img: item.pic_url}
item.url = $('hiker://empty#immersiveTheme##autoCache#').rule(() => { item.url = $('hiker://empty#immersiveTheme##autoCache#').rule(() => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuman.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuman.js');
erji(); sousuo2();
}) })
}) })
d = d.concat(data); d = d.concat(data);
@ -229,7 +230,7 @@ function erji() {
url: $("#noLoading#").lazyRule((name) => { url: $("#noLoading#").lazyRule((name) => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuman.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuman.js');
deleteItemByCls('loadlist'); deleteItemByCls('loadlist');
searchList(name); search(name);
return 'hiker://empty' return 'hiker://empty'
}, name), }, name),
pic_url: 'https://lanmeiguojiang.com/tubiao/messy/23.svg', pic_url: 'https://lanmeiguojiang.com/tubiao/messy/23.svg',
@ -273,11 +274,28 @@ function erji() {
} }
}); });
setResult(d); setResult(d);
searchList(name); search(name);
} }
} }
//搜索页面
function sousuo2() {
let d = [];
d.push({
title: "",
desc: "\n\n选择一个源观看吧👇",
pic_url: MY_PARAMS.img + '@Referer=',
url: MY_PARAMS.img + '@Referer=',
col_type: 'movie_1_vertical_pic_blur',
extra: {
gradient: true,
id: "listloading"
}
});
setResult(d);
search(MY_PARAMS.name);
}
//搜索图源 //搜索图源
function searchList(name) { function search(name) {
let searchMark = storage0.getMyVar('searchMark') || {}; let searchMark = storage0.getMyVar('searchMark') || {};
if(searchMark[name]){ if(searchMark[name]){
addItemAfter('listloading', searchMark[name]); addItemAfter('listloading', searchMark[name]);

Loading…
Cancel
Save