Authored by 陶雨

专题管理添加修改添加修改增加成功失败提示

var $ = require('jquery'),
common = require('../common/common');
common = require('../common/common'),
util = require('../common/util');
new common.dropDown({el: "#subject-type"});
... ... @@ -118,12 +119,14 @@ var $ = require('jquery'),
option.data.promotionName = $("#promotionName5").val() + "%Off";
}
option.success=function(){
option.success=function(res){
dialog.close();
util.__tip(res.data.message, 'success');
g.reload();
};
option.error=function(){
option.error=function(res){
dialog.close();
util.__tip(res.data.message);
}
});
return false;
... ...