Authored by 王水玲

分期二期修改

... ... @@ -476,7 +476,9 @@ const postAccount = (params) => {
return api.get('', _.assign({
method: 'user.instalment.bindingCards',
debug: 'XYZ'
}, params));
}, params), {
timeout: 6000
});
};
module.exports = {
... ...
<div class="installment-page add-account-page">
<div class="installment-page add-account-page yoho-page">
{{#bindCard}}
<ul class="add-form">
<li>
... ...
... ... @@ -46,6 +46,7 @@ $('input').on('input', function() {
applyButton.on('click', function() {
var self = this;
var ret = false;
if (!flag || $(this).hasClass('disabled') || !validateForm()) {
return false;
... ... @@ -74,17 +75,24 @@ applyButton.on('click', function() {
if (data.code === 200) {
params.params.status = 1;
ret = true;
} else if (data.code === 500) {
tip.show('连接超时');
flag = true;
} else {
params.params.message = data.message;
ret = true;
}
url += encodeURIComponent(JSON.stringify(params));
$(self).attr('href', url);
return true;
},
error: function() {
tip.show('网络断开连接了~');
flag = true;
return false;
}
});
return ret;
});
... ...