Authored by zhaoqing

Merge branch 'dev_详情页选择隐藏尺码' into test6.5.5

... ... @@ -452,7 +452,7 @@ var g = new common.grid({
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上/下架</a>');
HtmArr.push('<a target="_blank" href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>');
if(item.showSize == 0){
HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs closeStatus" data-index="' + item.__index + '">隐藏尺码</a>')
HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs closeStatus" data-index="' + item.__index + '">隐藏尺码 </a>')
}else if(item.showSize == 1){
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs openStatus" data-index="' + item.__index + '">展示尺码</a>')
}
... ... @@ -990,8 +990,6 @@ $(document).on("click", ".status-log-btn", function () {
$(document).on("click", ".closeStatus", function () {
var item = g.rows[$(this).data("index")];
var productSkn = item.productSkn;
alert(productSkn);
return;
common.util.__ajax({
url: '/goods/product/changeProductShowSize',
data: {
... ... @@ -1001,11 +999,12 @@ $(document).on("click", ".closeStatus", function () {
}, function (res) {
if (res.code == 200) {
common.util.__tip(res.message,"success");
g.reload();
}else {
common.util.__tip(res.message,"success");
}
}, true);
}
});
$(document).on("click", ".openStatus", function () {
var item = g.rows[$(this).data("index")];
... ... @@ -1019,11 +1018,12 @@ $(document).on("click", ".openStatus", function () {
}, function (res) {
if (res.code == 200) {
common.util.__tip(res.message,"success");
g.reload();
}else {
common.util.__tip(res.message,"success");
}
}, true);
}
});
// 查询商品标签的异步请求
function getProductLabeldata(SknList) {
... ...