Authored by xuhongyun

build

... ... @@ -38,12 +38,14 @@ webpackJsonp([14],[
render: function(item) {
console.log(item);
if (item.brands instanceof Array && item.brands.length > 0) {
var html = '';
var brandArr = [];
$.each(item.brands, function(i, value) {
html += value.brandName + '<br>';
if($.inArray(value.brandName, brandArr) === -1) {
brandArr.push(value.brandName);
}
});
return html;
return '<p>' + brandArr.join('</p><p>') + '</p>';
} else {
return '';
}
... ...