Commit 6653d04c by txy

'活动异常状态处理'

parent 7edc3050
......@@ -377,7 +377,18 @@ function voteClickFn(){
}else if(data.status == 201) {
$('#act51626389412499 span').text(5)
$('#html-template-5').fadeIn()
}else if (data.status >= 400) {
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
},
error: function(data){
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
})
}
......
......@@ -257,6 +257,7 @@ function btnBindClick() {
url: baseUrl + '/ACTIVITY/sz/sign-up/' + activityCode,
data: JSON.stringify(params),
success: function (data) {
if(data.status >= 200 && data.status < 300){
$.dialog({
showTitle : false,
contentHtml : '您的资料已成功提交审核中,请耐心等待审核结果',
......@@ -264,6 +265,18 @@ function btnBindClick() {
transPage('1',activityCode,_token);
}
});
}else {
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
},
error: function(data){
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
})
});
......
......@@ -209,10 +209,19 @@ function voteClickFn(){
}else {
$('#html-template-7').fadeIn()
}
}else if (data.status >= 400) {
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
},
error: function() {
error: function(data) {
gb_vote_loaded = false
// 异常处理
$.dialog({
contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment