Authored by liuyue

商品信息显示最小类目

... ... @@ -112,17 +112,19 @@ var g = new common.grid({
render: function(item) {
var productName = item.productName ? item.productName : '',
brandName = item.brandName ? item.brandName : '',
maxSortName = item.maxSortName ? item.maxSortName : '',
middleSortName = item.middleSortName ? item.middleSortName : '',
sortName = '',
html = '';
if (item.smallSortName) {
sortName = item.smallSortName
} else if (item.middleSortName) {
sortName = item.middleSortName;
} else {
sortName = item.maxSortName;
}
html += '<p><strong>名称:</strong><a target="_blank" href="' + item.productUrl + '">' + productName + '</a></p>';
html += '<p><strong>品牌:</strong>' + brandName + '</p>';
html += '<p><strong>类目:</strong>' + maxSortName;
if (middleSortName) {
html += '/' + middleSortName;
}
html += '<p><strong>类目:</strong>' + sortName;
return html + '</p>';
}
}, {
... ...
... ... @@ -162,7 +162,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">货品年<span class="red">*</span></label>
<div class="col-sm-1">
<div class="col-sm-2">
<select id="goodsYears" class="form-control" value="[[goodsYears||'2016']]">
[[each ENUMYEAR as item index]]
<option value="[[item.YEAR]]">[[item.YEAR]]</option>
... ... @@ -170,7 +170,7 @@
</select>
</div>
<label class="col-sm-1 control-label">货品季<span class="red">*</span></label>
<div class="col-sm-1">
<div class="col-sm-2">
<select id="goodsSeason" class="form-control" value="[[goodsSeason]]">
<option value="1"></option>
<option value="2"></option>
... ... @@ -181,7 +181,7 @@
</select>
</div>
<label class="col-sm-1 control-label">商品属性<span class="red">*</span></label>
<div class="col-sm-1">
<div class="col-sm-2">
<select id="attribute" class="form-control" value="[[attribute]]">
<option value="1">普通商品</option>
<option value="2">赠品</option>
... ...