Authored by weiqingting

权限

... ... @@ -15,14 +15,18 @@ var util = {
async: options.async,
dataType: 'json',
data: options.data || {},
success: function(res) {
res = res.data;
if (("" + res.code) === "200") {
notip ? (callback && callback.bind(this, res)()) : util.__tip(res.message, "success", callback && callback.bind(this, res)());
return true;
} else {
(!notip) && util.__tip(res.message, "danger");
return false;
success: function(result) {
res = result.data;
if(res){
if (("" + res.code) === "200") {
notip ? (callback && callback.bind(this, res)()) : util.__tip(res.message, "success", callback && callback.bind(this, res)());
return true;
} else {
(!notip) && util.__tip(res.message, "danger");
return false;
}
}else{
util.__tip(result.message, "danger");
}
},
error: function(err) {
... ...