Authored by 陶雨

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

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