Authored by Li

违禁词

... ... @@ -251,6 +251,7 @@ $('#saveBasicInfo').on('click', function() {
}
var params = {
productName:common.util.__input('productName'),
phrase: phraseValue
}
common.util.__ajax(
... ... @@ -263,8 +264,14 @@ $('#saveBasicInfo').on('click', function() {
function(rs) {
if (rs.data) {
var jsonMain = rs.data;
if(!$.isEmptyObject(jsonMain.phrase)){
var tipText = "推荐短语包含违禁词:"+jsonMain.phrase+"!";
if(!$.isEmptyObject(jsonMain.productName) || !$.isEmptyObject(jsonMain.phrase)){
var tipText = "";
if (!$.isEmptyObject(jsonMain.productName)) {
tipText += "商品名称包含违禁词:"+jsonMain.productName+"!";
}
if (!$.isEmptyObject(jsonMain.phrase)) {
tipText += "推荐短语包含违禁词:"+jsonMain.phrase+"!";
}
common.dialog.confirm("温馨提示",tipText + "确定提交吗?",function(){
submitForm();
});
... ...