Authored by cailing

取消订单再次购买

@@ -137,7 +137,7 @@ function scrollToFirst(){ @@ -137,7 +137,7 @@ function scrollToFirst(){
137 if($selected.length > 0){ 137 if($selected.length > 0){
138 $selected = $selected.eq(0); 138 $selected = $selected.eq(0);
139 } 139 }
140 - top = $selected.offset().top - 50; 140 + top = $selected.offset().top - 36;
141 $('html,body').scrollTop(top); 141 $('html,body').scrollTop(top);
142 return false; 142 return false;
143 } 143 }
@@ -568,6 +568,10 @@ class OrderModel @@ -568,6 +568,10 @@ class OrderModel
568 $exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode)); 568 $exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode));
569 //申请退货 569 //申请退货
570 $refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode)); 570 $refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode));
  571 + //再次购买
  572 + if ( $isCancel == 'Y') {
  573 + $operation[] = array( 'name' => '再次购买', 'reBuy' => true);
  574 + }
571 //立即付款 575 //立即付款
572 if ($payStatus == 'N' && $paymentType != 2 && $isCancel == 'N') { 576 if ($payStatus == 'N' && $paymentType != 2 && $isCancel == 'N') {
573 $operation[] = array('payNow' => true, 'href' => $payUrl); 577 $operation[] = array('payNow' => true, 'href' => $payUrl);
@@ -600,10 +604,8 @@ class OrderModel @@ -600,10 +604,8 @@ class OrderModel
600 if ($status >= 6 && $time < 86400 * $orderRefundLimitTime && $attribute != 3 && $isCancel == 'N') { 604 if ($status >= 6 && $time < 86400 * $orderRefundLimitTime && $attribute != 3 && $isCancel == 'N') {
601 $operation[] = array('href' => $refundUrl, 'name' => '申请退货', 'optDis' => $opRefundStatus); 605 $operation[] = array('href' => $refundUrl, 'name' => '申请退货', 'optDis' => $opRefundStatus);
602 } 606 }
603 - //再次购买  
604 - if ( $isCancel == 'Y') {  
605 - $operation[] = array( 'name' => '再次购买', 'reBuy' => true);  
606 - } 607 +
  608 +
607 return $operation; 609 return $operation;
608 } 610 }
609 611