Authored by weiqingting

大童小童通用

... ... @@ -239,12 +239,19 @@ var g = new common.grid({
{
display: "年龄层/性别",
render: function(item) {
var html = [];
var ageLevel = AgeLevelEnum.level[item.ageLevel];
var gender = GenderEnum.gender[item.gender];
html.push("<p>" + ageLevel + " / " + gender + "</p>");
var html = '';
if (AgeLevelEnum.level[item.ageLevel]) {
html += AgeLevelEnum.level[item.ageLevel];
if (item.gender) {
html += '/';
}
}
if (GenderEnum.gender[item.gender]) {
html += GenderEnum.gender[item.gender]
}
return html;
return html.join('');
}
},
... ...