...
|
...
|
@@ -250,27 +250,51 @@ $('#saveBasicInfo').on('click', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url:'/goods/product/saveNetSaleBaseInfo',
|
|
|
data:{
|
|
|
productSkn:basicInfo.productSkn,
|
|
|
productName:common.util.__input('productName'),
|
|
|
isNew:common.util.__input('[name=isNew]:checked'),
|
|
|
sellChannels:common.util.__input('[name=sellChannels]:checked'),
|
|
|
phrase:phraseValue,
|
|
|
outSaleTime:common.util.__input('outSaleTime'),
|
|
|
shopIds:common.util.__input('[name=shopIds]:checked'),
|
|
|
delayArrivalNotice:common.util.__input('delayArrivalNotice'),
|
|
|
grade:common.util.__input('grade')||0,
|
|
|
isLimited:common.util.__input('isLimited')||'N',
|
|
|
isOutlets:common.util.__input('isOutLets2')||'N',
|
|
|
seasons:common.util.__input('seasons')
|
|
|
}
|
|
|
})
|
|
|
|
|
|
if (common.util.__sknOperateLog(basicInfo.productSkn, common.util.__input('phrase'), oldphrase, 6)) {
|
|
|
oldphrase = common.util.__input('phrase');
|
|
|
}
|
|
|
var params = {
|
|
|
phrase: phraseValue
|
|
|
}
|
|
|
common.util.__ajax(
|
|
|
{
|
|
|
url:'/sensitiveWord/validate',
|
|
|
data: {
|
|
|
"validateContent": JSON.stringify(params)
|
|
|
}
|
|
|
},
|
|
|
function(rs) {
|
|
|
var tipText = "";
|
|
|
if (rs.data) {
|
|
|
var jsonMain = rs.data;
|
|
|
if(!$.isEmptyObject(jsonMain.phrase)){
|
|
|
tipText = "推荐短语包含违禁词:"+jsonMain.phrase+"!";
|
|
|
}
|
|
|
}
|
|
|
common.dialog.confirm("温馨提示",tipText + "确定提交吗?",function(){
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url:'/goods/product/saveNetSaleBaseInfo',
|
|
|
data:{
|
|
|
productSkn:basicInfo.productSkn,
|
|
|
productName:common.util.__input('productName'),
|
|
|
isNew:common.util.__input('[name=isNew]:checked'),
|
|
|
sellChannels:common.util.__input('[name=sellChannels]:checked'),
|
|
|
phrase:phraseValue,
|
|
|
outSaleTime:common.util.__input('outSaleTime'),
|
|
|
shopIds:common.util.__input('[name=shopIds]:checked'),
|
|
|
delayArrivalNotice:common.util.__input('delayArrivalNotice'),
|
|
|
grade:common.util.__input('grade')||0,
|
|
|
isLimited:common.util.__input('isLimited')||'N',
|
|
|
isOutlets:common.util.__input('isOutLets2')||'N',
|
|
|
seasons:common.util.__input('seasons')
|
|
|
}
|
|
|
})
|
|
|
|
|
|
if (common.util.__sknOperateLog(basicInfo.productSkn, common.util.__input('phrase'), oldphrase, 6)) {
|
|
|
oldphrase = common.util.__input('phrase');
|
|
|
}
|
|
|
|
|
|
});
|
|
|
},true);
|
|
|
|
|
|
})
|
|
|
// var e = new common.edit('#basicInfoWrap');
|
|
|
// e.init();
|
...
|
...
|
|