Authored by 陶雨

专题管理列表添加web封面图列

... ... @@ -25,8 +25,15 @@ var g = new common.grid({
}},
{display: "排序", name: "orderNum"},
{display: "标题", name: "title", width:"200px"},
{display: "封面图", name: "coverUrl", height:"102px", render: function (item) {
return '<img src="'+item.coverUrl+'" height="100px" />';
{display: "手机端封面图", name: "coverUrl", height:"102px", render: function (item) {
if(item.coverUrl) {
return '<img src="' + item.coverUrl + '" height="100px" />';
}
}},
{display: "web封面图", name: "webCoverUrl", height:"102px", render: function (item) {
if(item.webCoverUrl) {
return '<img src="' + item.webCoverUrl + '" height="100px" />';
}
}},
{display: "促销形式", name: "promotionName"},
{display: "平台", name: "plateform", render: function (item) {
... ...
... ... @@ -147,7 +147,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">移动端封面图</label>
<label class="col-sm-2 control-label">手机端封面图</label>
<div class="col-sm-10">
<input type="file" id="coverUrl" name="coverUrl" value="{coverUrl}"/>
</div>
... ...