Commit e4804393 by xing_wang

分类排序

parent 31dc62c3
......@@ -2895,7 +2895,6 @@
var daohan = "";
if (item.daohan) {
daohan = item.daohan;
;
str += item.daohan + "</div>";
} else {
str += "<a onclick=\"navCategory.searchForm('" + searchType + "');\" class=\"newNavA pull-left\">" + text + "导航</a>";
......@@ -2904,8 +2903,19 @@
}
str += "<div class=\"newNavInfo\" isshowed=\"false\"><div class=\"newClear\"></div>";
if (item.groupList && item.groupList.length > 0) {
var num = item.groupList.length - 1;
var arr=[];
var arr0=[];
$.each(item.groupList, function (i, item) {
if(item.groupValue!= null && item.groupValue!= 'null'){
arr.push(item);
}else {
arr0.push(item)
}
arr.sort(function(a, b){return a.groupid - b.groupid});
});
arr = arr.concat(arr0)
var num = item.groupList.length - 1;
$.each(arr, function (i, item) {
var groupvalue = item.groupValue;
if (groupid == "SZZWBH" || groupid == 'RYDNABH') {
if (groupvalue == null || groupvalue == 'null') {
......
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