Authored by 匡佳华

删除商品描述首张图片

... ... @@ -12,6 +12,18 @@ module.exports={
{name: 'smallSortId',type: 'Number'},
{name: 'productDesc',type: 'String'}
]
},
deleteBatchProductDescFirstImg:{
title:'批量删除商品首张图片',
url:'/product/deleteBatchProductDescFirstImg',
params:[
{name: 'productSknStrs',type: 'String'},
{name: 'brandId',type: 'Number'},
{name: 'maxSortId',type:'Number'},
{name: 'middleSortId',type: 'Number'},
{name: 'smallSortId',type: 'Number'}
]
}
}
}
\ No newline at end of file
... ...
... ... @@ -44,6 +44,20 @@ webpackJsonp([54],{
});
});
/*删除skn第一张图片*/
$(document).on("click", "#btn-deleteFirstDesc", function(){
common.util.__ajax({
url:'/product/deleteBatchProductDescFirstImg',
data:{
productSknStrs:common.util.__input('productSkn'),
brandId: common.util.__input("brandId"),
maxSortId: tabTree.selected.length > 0 ? tabTree.selected[0].id : "", // 一级类目
middleSortId: tabTree.selected.length > 1 ? tabTree.selected[1].id : "", // 二级类目
smallSortId: tabTree.selected.length > 2 ? tabTree.selected[2].id : "", // 三级类目
}
});
});
/*下拉选择
new common.dropDown({
... ...
... ... @@ -10,6 +10,8 @@ module.exports=function(app) {
app.post("/product/updateBatchProductDesc","productdesc_updateBatchProductDesc");
app.post("/product/deleteBatchProductDescFirstImg", "productdesc_deleteBatchProductDescFirstImg");
/*ajax列表数据
app.post("/product/queryNetSaleInforList","audit_queryNetSaleInforList");*/
... ...
... ... @@ -12,6 +12,17 @@ module.exports={
{name: 'smallSortId',type: 'Number'},
{name: 'productDesc',type: 'String'}
]
},
deleteBatchProductDescFirstImg:{
title:'批量删除商品首张图片',
url:'/product/deleteBatchProductDescFirstImg',
params:[
{name: 'productSknStrs',type: 'String'},
{name: 'brandId',type: 'Number'},
{name: 'maxSortId',type:'Number'},
{name: 'middleSortId',type: 'Number'},
{name: 'smallSortId',type: 'Number'}
]
}
}
}
\ No newline at end of file
... ...
... ... @@ -23,6 +23,10 @@
<div id="sort"></div>
</div>
<div class="panel-footer">
<a href="javascript:;" class="btn btn-primary" id="btn-deleteFirstDesc">删除首张图片</a>
</div>
</div>
</div>
</div>
... ...