$.ajax({
type:"get",
url:baseUrl + "/cp/get_ads_style/",
xhrFields: {
withCredentials: true
},
success:function (res) {
console.log(res)
}),
error: function (err) {
if(err.status>=400&&err.status<500){
window.location.href="./404.html"
}else if(err.status>=500&&err.status<600){
window.location.href="./500.html"
}else{
alert(err.status + '(' + err.statusText + ')');
}
}
}});
$.ajax({
type: 'post',
url: baseUrl + "//",
data: params,
contentType: false,
processData: false,
xhrFields: {
withCredentials: true
},
beforeSend: function () {
$("#loadingmotal").css({"display":"block"})
},
error: function (err) {
$("#loadingmotal").css({"display":"none"});
alert(err.status + '"' + err.statusText + '"');
},
success: function (data) {
$("#loadingmotal").css({"display":"none"});
if (data.code == 1) {
alert(data.msg)
} else {
alert("修改成功 , 页面将会跳转到详情页 !")
window.location.href = "./details.html"
}
}
})