更新 'SrcJyPublic.js'

master
src48597962 5 months ago
parent 42a8f7656f
commit 5780b72e90
  1. 8
      SrcJyPublic.js

@ -525,7 +525,7 @@ function clearJkSort() {
// 获取接口对应的显示标题 // 获取接口对应的显示标题
function getDataTitle(data) { function getDataTitle(data) {
if($.type(data.type)=="string"){ if($.type(data.type)=="string"){
return data.name + ' ““””<small><font color=grey>('+data.type+')' + (data.group&&data.group!=data.type?' [' + data.group + ']':'') + '</font></small>'; return data.name + ' <small><font color=grey>('+data.type+')' + (data.group&&data.group!=data.type?' [' + data.group + ']':'') + '</font></small>';
}else{ }else{
return (data.sort||0) + '-'+data.name + '-' + data.url; return (data.sort||0) + '-'+data.name + '-' + data.url;
} }
@ -542,7 +542,7 @@ function duoselect(datas){
datalist.forEach(data=>{ datalist.forEach(data=>{
if(!duoselect.some(item => data.url==item.url)){ if(!duoselect.some(item => data.url==item.url)){
duoselect.push(data); duoselect.push(data);
updateItem(data.url, {title:'‘‘’’'+colorTitle(getDataTitle(data),'#3CB371')}); updateItem(data.url, {title: colorTitle(getDataTitle(data),'#3CB371')});
}else{ }else{
for(var i = 0; i < duoselect.length; i++) { for(var i = 0; i < duoselect.length; i++) {
if(data.url == duoselect[i].url) { if(data.url == duoselect[i].url) {
@ -550,7 +550,7 @@ function duoselect(datas){
break; break;
} }
} }
updateItem(data.url, {title:data.stop?`‘‘’’`+colorTitle(getDataTitle(data),'#f20c00'):getDataTitle(data)}); updateItem(data.url, {title:data.stop?colorTitle(getDataTitle(data),'#f20c00'):getDataTitle(data)});
} }
}) })
storage0.putMyVar('SrcJu_duoselect',duoselect); storage0.putMyVar('SrcJu_duoselect',duoselect);
@ -762,7 +762,7 @@ function getapitype(apiurl) {
} }
// 文字上色 // 文字上色
function colorTitle(title, Color) { function colorTitle(title, Color) {
return '<font color="' + Color + '">' + title + '</font>'; return '““””<font color="' + Color + '">' + title + '</font>';
} }
// 选中状态标识 // 选中状态标识
function getide(is) { function getide(is) {

Loading…
Cancel
Save