Authored by cailing

取消订单再次购买

... ... @@ -137,7 +137,7 @@ function scrollToFirst(){
if($selected.length > 0){
$selected = $selected.eq(0);
}
top = $selected.offset().top - 50;
top = $selected.offset().top - 36;
$('html,body').scrollTop(top);
return false;
}
... ...
... ... @@ -568,6 +568,10 @@ class OrderModel
$exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode));
//申请退货
$refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode));
//再次购买
if ( $isCancel == 'Y') {
$operation[] = array( 'name' => '再次购买', 'reBuy' => true);
}
//立即付款
if ($payStatus == 'N' && $paymentType != 2 && $isCancel == 'N') {
$operation[] = array('payNow' => true, 'href' => $payUrl);
... ... @@ -600,10 +604,8 @@ class OrderModel
if ($status >= 6 && $time < 86400 * $orderRefundLimitTime && $attribute != 3 && $isCancel == 'N') {
$operation[] = array('href' => $refundUrl, 'name' => '申请退货', 'optDis' => $opRefundStatus);
}
//再次购买
if ( $isCancel == 'Y') {
$operation[] = array( 'name' => '再次购买', 'reBuy' => true);
}
return $operation;
}
... ...