root 5 years ago
parent
commit
79b4764bab
2 changed files with 7 additions and 1 deletions
  1. 6 1
      addons/zh_jdgjb/inc/web/order.inc.php
  2. 1 0
      addons/zh_jdgjb/template/web/order.html

+ 6 - 1
addons/zh_jdgjb/inc/web/order.inc.php

xqd
@@ -15,7 +15,12 @@ if($_GPC['keywords']){
 	$data[':order_no']=$_GPC['keywords'];
 }	
 if($type!='all'){
-	$where.= " and status=$status";
+    if ($type == 'overdue') {
+        $where.= " and is_out_time = 1";
+    } else {
+        $where.= " and status = $status";
+    }
+
 }
 if(!empty($_GPC['time'])){
    $start=strtotime($_GPC['time']['start']);

+ 1 - 0
addons/zh_jdgjb/template/web/order.html

xqd
@@ -51,6 +51,7 @@
     <li   {if $type=='refund'} class="active" {/if}><a href="{php echo $this->createWebUrl('order',array('type'=>refund,'status'=>6));}">待退款</a></li>
     <li   {if $type=='completerefund'} class="active" {/if}><a href="{php echo $this->createWebUrl('order',array('type'=>completerefund,'status'=>7));}">已退款</a></li>
     <li   {if $type=='reject'} class="active" {/if}><a href="{php echo $this->createWebUrl('order',array('type'=>reject,'status'=>8));}">退款拒绝</a></li> 
+    <li   {if $type=='reject'} class="active" {/if}><a href="{php echo $this->createWebUrl('order',array('type'=>overdue));}">违约订单</a></li>
   </ul>
   <div class="row ygrow">
     <form action="" method="get" class="col-md-3">