...
|
...
|
@@ -289,6 +289,25 @@ e.on("validate", function() { |
|
|
e.init();
|
|
|
|
|
|
var submit=function(callback){
|
|
|
var params = {
|
|
|
shopIntro: UMshopintro.getContent()
|
|
|
}
|
|
|
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.shopIntro)){
|
|
|
tipText = "店铺简介包含违禁词:"+jsonMain.shopIntro+"!";
|
|
|
}
|
|
|
}
|
|
|
common.dialog.confirm("温馨提示",tipText + "确定提交吗?",function(){
|
|
|
var result = e.submit($("#storeForm").attr("action"),function(option){
|
|
|
option.data=$.extend({},option.data,_arr);
|
|
|
option.data.shopIntro = UMshopintro.getContent();
|
...
|
...
|
@@ -313,12 +332,14 @@ var submit=function(callback){ |
|
|
}
|
|
|
callback&&callback(option.data);
|
|
|
});
|
|
|
|
|
|
// 发生校验错误
|
|
|
if(result === false) {
|
|
|
$(".btn-cun").removeAttr("disabled");
|
|
|
$(".btn-success").removeAttr("disabled");
|
|
|
}
|
|
|
});
|
|
|
},true);
|
|
|
|
|
|
};
|
|
|
|
|
|
//提交
|
...
|
...
|
|