Authored by dongjunjie

逛---标签修改二期联调修改

... ... @@ -10,9 +10,10 @@ var ENUM = {
'0': '否'
},
StatusEnum: {
0:'关闭',
1:'开启'
1: '<b style="color:#5cb85c">开启</b>',
0: '<b style="color:#ff0000">关闭</b>'
}
}
new common.dropDown({
... ... @@ -33,7 +34,13 @@ var g = new common.grid({
},
columns: [
{display: 'ID', name: "id"},
{display: '排序', name: "orderBy"},
{display: '标签名称', name: "tagName"},
{display: '图片', render: function (item) {
if(item.cover){
return '<img src="'+ item.cover +'" style="max-height: 56px;max-width: 80%;display: block;margin: 0 auto;">';
}
}},
{display: '标签分类', name: "classifyName"},
{display: '是否热门', render: function (item) {
return "<p>" + ENUM.HotEnum[item.isHot] + "</p>";
... ...
... ... @@ -170,7 +170,9 @@ exports.res = [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'}
{name: 'status', type: 'Number'},
{name: 'orderBy', type:'Number'},
{name: 'cover', type:'String'}
]
}, {
... ... @@ -182,7 +184,9 @@ exports.res = [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'}
{name: 'status', type: 'Number'},
{name: 'orderBy', type:'Number'},
{name: 'cover', type:'String'}
]
},
{
... ...
... ... @@ -74,6 +74,7 @@
<div class="col-sm-offset-1 col-sm-5">
<input type="text" value="[[tagName]]" id="tagName" placeholder="标签名称" required="required" class="form-control">
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
</div>
<div class="form-group" id="maxsord">
... ... @@ -83,6 +84,7 @@
<option value="[[classifyId || -1]]">[[classifyName || "请选择分类"]]</option>
</select>
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
</div>
<div class="form-group">
... ...