Authored by 王水玲

有货分期

@@ -235,12 +235,22 @@ $('#apply-button').click(function() { @@ -235,12 +235,22 @@ $('#apply-button').click(function() {
235 data: formModel, 235 data: formModel,
236 async: false 236 async: false
237 }).then(function(result) { 237 }).then(function(result) {
  238 + var params = {
  239 + action: 'go.instalmentRepayment',
  240 + params: {
  241 + status: result.data.status
  242 + }
  243 + };
  244 +
238 if (result.code === 200 && result.data) { 245 if (result.code === 200 && result.data) {
239 - that.attr('href', '/home/installment/review?status=' + result.data.status); 246 + // that.attr('href', '/home/installment/review?status=' + result.data.status);
  247 + that.attr('href', location.pathname + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(params)));
240 ret = true; 248 ret = true;
241 } else if (result.code === 500) { 249 } else if (result.code === 500) {
242 // 接口可能超时返回审核中 by 孟令阶 250 // 接口可能超时返回审核中 by 孟令阶
243 - that.attr('href', '/home/installment/review?status=' + result.data.status); 251 + // that.attr('href', '/home/installment/review?status=' + result.data.status);
  252 + params.params.status = '1';
  253 + that.attr('href', location.pathname + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(params)));
244 ret = true; 254 ret = true;
245 } else { 255 } else {
246 tip.show(result.message); 256 tip.show(result.message);