Authored by ccbikai

添加地址修改

... ... @@ -61,10 +61,11 @@ $addressForm.on('submit', function() {
url: '/home/saveaddress',
data: $(this).serialize()
}).then(function(res) {
res = res || {};
console.log(res);
if ($.type(res) !== 'object') {
res = {};
}
if (res.code !== 200) {
tip.show(res.message);
tip.show(res.message || '网络出了点问题~');
} else {
window.location.reload();
}
... ...