...
|
...
|
@@ -34,6 +34,13 @@ var Bll = { |
|
|
Bll.Brands1[item.id] = item;
|
|
|
});
|
|
|
for (var i in Brand) {
|
|
|
Brand[i].sort(function(a, b) {
|
|
|
var aName = a.brand_name.toLowerCase(),
|
|
|
bName = b.brand_name.toLowerCase();
|
|
|
if (aName < bName) return -1;
|
|
|
if (aName > bName) return 1;
|
|
|
return 0;
|
|
|
});
|
|
|
Bll.Brands.push({
|
|
|
name: i,
|
|
|
items: Brand[i]
|
...
|
...
|
@@ -100,6 +107,11 @@ var Bll = { |
|
|
//获取品牌
|
|
|
Bll.getBrands();
|
|
|
|
|
|
$(document).on('click', '.brand-index', function() {
|
|
|
var brandIndex = $(this).text();
|
|
|
$('.brand-wrap').find('[name="' + brandIndex + '"]').show().siblings().hide();
|
|
|
});
|
|
|
|
|
|
/*渲染页面*/
|
|
|
$("#panel-body").html(common.util.__template2($("#tempalte1").html(), ENUM));
|
|
|
/*渲染品牌*/
|
...
|
...
|
|