From 699190a04d4631f30f1dc47993879c6469bc5db9 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 18 Oct 2022 10:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcLive.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcLive.js | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index abbdba62..7bcd1251 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -101,28 +101,35 @@ function Live() { return item.group==grouplist[i]; }) if(lists.length>0){ - if(index==0){ - datalist2 = lists; - index = 1; - } d.push({ title: grouplist[i], - url: $('#noLoading#').lazyRule((guanlidata,datalist) => { - if(datalist.length>0){ - deleteItemByCls('livelist'); - var lists = datalist.filter(item => { - return item.name.includes(input); - }) - let gldatalist = guanlidata(lists); - addItemAfter('liveloading', gldatalist); + url: $('#noLoading#').lazyRule((grouplist,groupname,guanlidata,datalist) => { + for(let i in grouplist){ + if(grouplist[i]==groupname){ + updateItem(groupname,{title:'‘‘’’'+groupname}) + }else{ + updateItem(grouplist[i],{title:grouplist[i]}) + } } + deleteItemByCls('livelist'); + var lists = datalist.filter(item => { + return item.name.includes(input); + }) + let gldatalist = guanlidata(lists); + addItemAfter('liveloading', gldatalist); + return "hiker://empty"; - },guanlidata,lists), + },grouplist,grouplist[i],guanlidata,lists), col_type: "scroll_button", extra: { id: grouplist[i] } }); + if(index==0){ + datalist2 = lists; + index = 1; + updateItem(grouplist[i],{title:'‘‘’’'+grouplist[i]}); + } } } d.push({