Authored by 张丽霞

网络错误处理

This diff could not be displayed because it is too large.
... ... @@ -101,6 +101,12 @@ $('.input-content').on('click', '.verification-code', function() {
$('#dialog .content').html(' ');
}, 1400);
}
},
error: function(data) {
$('#dialog').removeClass('hidden');
$('.keep-out').removeClass('hidden');
$('#dialog .content').html('<p class="phone-error">网络错误,稍后再试!<p>');
console.log(data);
}
});
});
... ... @@ -153,6 +159,12 @@ $('.input-content').on('click', '.get', function() {
$('#dialog .content').html(' ');
}, 1400);
}
},,
error: function(data) {
$('#dialog').removeClass('hidden');
$('.keep-out').removeClass('hidden');
$('#dialog .content').html('<p class="phone-error">网络错误,稍后再试!<p>');
console.log(data);
}
});
} else {
... ...