Authored by cailing

再次购买位置调整

@@ -578,6 +578,10 @@ class OrderModel @@ -578,6 +578,10 @@ class OrderModel
578 $exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode)); 578 $exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode));
579 //申请退货 579 //申请退货
580 $refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode)); 580 $refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode));
  581 + //再次购买
  582 + if ( $isCancel == 'Y') {
  583 + $operation[] = array( 'name' => '再次购买', 'reBuy' => true);
  584 + }
581 //立即付款 585 //立即付款
582 if ($payStatus == 'N' && $paymentType != 2 && $isCancel == 'N') { 586 if ($payStatus == 'N' && $paymentType != 2 && $isCancel == 'N') {
583 $operation[] = array('payNow' => true, 'href' => $payUrl); 587 $operation[] = array('payNow' => true, 'href' => $payUrl);
@@ -610,10 +614,6 @@ class OrderModel @@ -610,10 +614,6 @@ class OrderModel
610 if ($status >= 6 && $time < 86400 * $orderRefundLimitTime && $attribute != 3 && $isCancel == 'N') { 614 if ($status >= 6 && $time < 86400 * $orderRefundLimitTime && $attribute != 3 && $isCancel == 'N') {
611 $operation[] = array('href' => $refundUrl, 'name' => '申请退货', 'optDis' => $opRefundStatus); 615 $operation[] = array('href' => $refundUrl, 'name' => '申请退货', 'optDis' => $opRefundStatus);
612 } 616 }
613 - //再次购买  
614 - if ( $isCancel == 'Y') {  
615 - $operation[] = array( 'name' => '再次购买', 'reBuy' => true);  
616 - }  
617 return $operation; 617 return $operation;
618 } 618 }
619 619