更新 'SrcJyPublic.js'

master
src48597962 8 months ago
parent cbfa4d9b18
commit 70fc64ea99
  1. 10
      SrcJyPublic.js

@ -100,9 +100,9 @@ function getDatas(lx, isyx) {
} }
} }
if (getItem("sourceListSort") == "名称排序") { if (getItem("sourceListSort") == "接口名称") {
datalist = sortByPinyin(datalist); datalist = sortByPinyin(datalist);
}else if (getItem("sourceListSort") == "使用排序") { }else if (getItem("sourceListSort") == "使用频率") {
let sort = {}; let sort = {};
if(fetch(sortfile)){ if(fetch(sortfile)){
eval("sort = " + fetch(sortfile)); eval("sort = " + fetch(sortfile));
@ -403,7 +403,7 @@ function selectSource() {
}, },
menuClick(manage) { menuClick(manage) {
hikerPop.selectCenter({ hikerPop.selectCenter({
options: ["改变样式", "列表倒序", getItem("sourceListSort", "更新排序")], options: ["改变样式", "列表倒序", getItem("sourceListSort", "更新时间")],
columns: 2, columns: 2,
title: "请选择", title: "请选择",
click(s, i) { click(s, i) {
@ -418,9 +418,9 @@ function selectSource() {
} else if (i === 2) { } else if (i === 2) {
showSelectOptions({ showSelectOptions({
"title": "选择排序方式", "title": "选择排序方式",
"options" : ["更新排序", "名称排序", "使用排序"], "options" : ["更新时间","接口名称","使用频率"],
"col": 1, "col": 1,
"js": `setItem('sourceListSort', input);'toast://下次生效:' + input` "js": `setItem('sourceListSort', input);'toast://排序方式在下次生效:' + input`
}) })
} }
} }

Loading…
Cancel
Save