Authored by 马力

Merge branch 'dev_店铺装修优化_15353' into gray

# Conflicts:
#	dist/yohobuy-shops-fe/4.8.3/index.min.css
#	dist/yohobuy-shops-fe/4.8.3/jquery/common.Login.js
#	dist/yohobuy-shops-fe/4.8.3/jquery/goods.netsale.Edit.js
#	dist/yohobuy-shops-fe/4.8.3/jquery/shop.Decoration.js
#	server/controllers/common.index.js
#	server/controllers/shop.shopCategory.js
#	server/filters.js
#	server/interfaces/common.login.js
#	server/interfaces/shop.shopCategory.js
#	server/package.json
#	server/views/common/Login.html
@@ -34,12 +34,14 @@ var g = new common.grid({ @@ -34,12 +34,14 @@ var g = new common.grid({
34 render: function(item) { 34 render: function(item) {
35 console.log(item); 35 console.log(item);
36 if (item.brands instanceof Array && item.brands.length > 0) { 36 if (item.brands instanceof Array && item.brands.length > 0) {
37 - var html = ''; 37 + var brandArr = [];
38 $.each(item.brands, function(i, value) { 38 $.each(item.brands, function(i, value) {
39 - html += value.brandName + '<br>'; 39 + if($.inArray(value.brandName, brandArr) === -1) {
  40 + brandArr.push(value.brandName);
  41 + }
40 }); 42 });
41 43
42 - return html; 44 + return '<p>' + brandArr.join('</p><p>') + '</p>';
43 } else { 45 } else {
44 return ''; 46 return '';
45 } 47 }