...
|
...
|
@@ -37,6 +37,22 @@ var ENUM = { |
|
|
}
|
|
|
};
|
|
|
|
|
|
var tabTree = new common.tabTree("#sortTree");
|
|
|
tabTree.init();
|
|
|
|
|
|
|
|
|
|
|
|
new common.dropDown({
|
|
|
el: '#shopId',
|
|
|
ajax: 'shopsRest'
|
|
|
});
|
|
|
|
|
|
new common.dropDown({
|
|
|
el: '#brandId',
|
|
|
ajax: 'brand'
|
|
|
});
|
|
|
|
|
|
|
|
|
var t = new common.tab({
|
|
|
el: "#basicTab",
|
|
|
click: function() {
|
...
|
...
|
@@ -103,9 +119,9 @@ var g = new common.grid({ |
|
|
isScreen: common.util.__input("isScreen"),
|
|
|
isMeasure: common.util.__input("isMeasure"),
|
|
|
gender: common.util.__input("gender"),
|
|
|
maxSortId: common.util.__input("maxSortId"),
|
|
|
middleSortId: common.util.__input("middleSortId"),
|
|
|
smallSortId: common.util.__input("smallSortId"),
|
|
|
maxSortId: tabTree.selected[0] ? tabTree.selected[0].id : "",
|
|
|
middleSortId: tabTree.selected[1] ? tabTree.selected[1].id : "",
|
|
|
smallSortId: tabTree.selected[2] ? tabTree.selected[2].id : "",
|
|
|
isOutLets: common.util.__input("isOutLets"),
|
|
|
productStatus: common.util.__input("productStatus"),
|
|
|
size: common.util.__input("size"),
|
...
|
...
|
@@ -136,7 +152,7 @@ var g = new common.grid({ |
|
|
render: function(item) {
|
|
|
return '<p><strong>吊牌价:</strong>' + item.retailPrice + '</p>' +
|
|
|
'<p><strong>销售价:</strong>' + item.salesPrice + '</p>' +
|
|
|
'<p><strong>是否VIP:</strong></p>' +
|
|
|
'<p><strong>是否VIP:</strong></p>' + item.isVIP + '</p>' +
|
|
|
'<p style="color: #ccc;"><strong>yoho币:</strong>' + item.returnCoin + '</p>';
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -158,10 +174,10 @@ var g = new common.grid({ |
|
|
display: '搜索/标签',
|
|
|
hidden: true,
|
|
|
render: function(item) {
|
|
|
return '关键词:' + '<br>' +
|
|
|
return '关键词:' + item.searchAndLabel + '<br>' +
|
|
|
'风格:' + item.style + '<br>' +
|
|
|
'纹理:' + item.style + '<br>' +
|
|
|
'工艺:' + item.style + '<br>';
|
|
|
'纹理:' + item.pattern + '<br>' +
|
|
|
'工艺:' + item.makeCrafts + '<br>';
|
|
|
}
|
|
|
}, {
|
|
|
display: '操作信息',
|
...
|
...
|
@@ -174,6 +190,7 @@ var g = new common.grid({ |
|
|
if (item.editTime) {
|
|
|
html += '<p>' + item.editTime + '</p>';
|
|
|
}
|
|
|
|
|
|
return html;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -185,6 +202,9 @@ var g = new common.grid({ |
|
|
if (item.shelveTime) {
|
|
|
html += '<br>上架时间:' + item.shelveTime;
|
|
|
}
|
|
|
if (item.status == 3) {
|
|
|
html += '<p style="color:red;">(' + item.rejectReason + ')</p>'
|
|
|
}
|
|
|
return html;
|
|
|
}
|
|
|
}, {
|
...
|
...
|
@@ -214,6 +234,7 @@ g.init($("#gridurl").val()); |
|
|
|
|
|
//筛选
|
|
|
$("#filter-btn").click(function() {
|
|
|
loadtab();
|
|
|
g.reload(1);
|
|
|
});
|
|
|
|
...
|
...
|
|