Authored by Aiden Xu

分期订单

@@ -47,10 +47,10 @@ $('.header-tab a').click(function() { @@ -47,10 +47,10 @@ $('.header-tab a').click(function() {
47 return false; 47 return false;
48 }); 48 });
49 49
50 -// const  
51 // 默认加载第一页 50 // 默认加载第一页
52 loadOrderList(search.pageIndex, 1); 51 loadOrderList(search.pageIndex, 1);
53 52
  53 +// TODO: 滚屏分页
54 $(window).scroll(()=> { 54 $(window).scroll(()=> {
55 // var scrollTop = $(window).scrollTop(); 55 // var scrollTop = $(window).scrollTop();
56 56
@@ -154,10 +154,13 @@ setInterval(()=> { @@ -154,10 +154,13 @@ setInterval(()=> {
154 */ 154 */
155 $('#apply-form').submit(function() { 155 $('#apply-form').submit(function() {
156 $.post('/home/installment/activate-service', formModel).then((result)=> { 156 $.post('/home/installment/activate-service', formModel).then((result)=> {
  157 + const params = { action: 'go.instalmentRepayment' };
  158 +
157 if (result.code === 200) { 159 if (result.code === 200) {
158 - location.href = '/installment/review'; 160 + location.href = `/home/installment/review?openby:yohobuy=${encodeURIComponent(JSON.stringify(params))}`;
159 } else { 161 } else {
160 tip.show(result.message); 162 tip.show(result.message);
  163 +
161 } 164 }
162 }); 165 });
163 return false; 166 return false;