Skip to content

Commit

Permalink
修复导航栏数据不准确
Browse files Browse the repository at this point in the history
  • Loading branch information
menhood committed Jan 9, 2019
1 parent 4dcbddd commit 4b6aa00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/s.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ function loadindexhtml(data) {
lastid = i + 1;//最后一个数组的起始id
};
//导航栏数组插入最后一个数组
var laststartid=parseInt(startid)+1;
navhtml.push({
"html": "<li> <a href=\"javascript:void(0)\" onclick=\"aclick(" + startid + "," + data[lastid].max + ")\" >" + data[lastid].name + "</a></li>",
"html": "<li> <a href=\"javascript:void(0)\" onclick=\"aclick(" + laststartid + "," + data[lastid].max + ")\" >" + data[lastid].name + "</a></li>",
"category": data[lastid].category
});
//首页格子数组插入最后一个数组
Expand Down

0 comments on commit 4b6aa00

Please sign in to comment.