Commit d271528e by qiaoyanqi

上张下张加减

parent 4d148173
...@@ -43,9 +43,13 @@ export function setQueryIndex(index) { ...@@ -43,9 +43,13 @@ export function setQueryIndex(index) {
let curTagId = window.nros.context.getCurrTag() || "router"; let curTagId = window.nros.context.getCurrTag() || "router";
if(GMS.queryObject){ if(GMS.queryObject){
if (index == "add") { if (index == "add") {
GMS.queryObject[curTagId].index++; GMS.queryObject[curTagId].index = getQueryIndex()*1 + 1;
} else if (index == "min") { } else if (index == "min") {
GMS.queryObject[curTagId].index = getQueryIndex() > 0?GMS.queryObject[curTagId].index--:0; if(getQueryIndex() > 0){
GMS.queryObject[curTagId].index = getQueryIndex()*1 -1;
}else{
GMS.queryObject[curTagId].index = 0
}
} else { } else {
GMS.queryObject[curTagId].index = index; GMS.queryObject[curTagId].index = index;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment