...
|
...
|
@@ -235,12 +235,22 @@ $('#apply-button').click(function() { |
|
|
data: formModel,
|
|
|
async: false
|
|
|
}).then(function(result) {
|
|
|
var params = {
|
|
|
action: 'go.instalmentRepayment',
|
|
|
params: {
|
|
|
status: result.data.status
|
|
|
}
|
|
|
};
|
|
|
|
|
|
if (result.code === 200 && result.data) {
|
|
|
that.attr('href', '/home/installment/review?status=' + result.data.status);
|
|
|
// that.attr('href', '/home/installment/review?status=' + result.data.status);
|
|
|
that.attr('href', location.pathname + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(params)));
|
|
|
ret = true;
|
|
|
} else if (result.code === 500) {
|
|
|
// 接口可能超时返回审核中 by 孟令阶
|
|
|
that.attr('href', '/home/installment/review?status=' + result.data.status);
|
|
|
// that.attr('href', '/home/installment/review?status=' + result.data.status);
|
|
|
params.params.status = '1';
|
|
|
that.attr('href', location.pathname + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(params)));
|
|
|
ret = true;
|
|
|
} else {
|
|
|
tip.show(result.message);
|
...
|
...
|
|