From 7403f74b42ee5eb1e100e7395d3ca88c98e0a58b Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Wed, 3 Aug 2022 19:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E5=AF=BC=E8=88=AA=E6=A0=87?= =?UTF-8?q?=E7=BA=A2=E6=95=B0=E5=AD=97=E6=B8=B2=E6=9F=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 9 ++------- view/templates/include/admin_leftmenu.html | 8 ++++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index d3df71e..0e39629 100644 --- a/index.php +++ b/index.php @@ -79,13 +79,8 @@ class run extends publicBase { $this->view['_shopinfo'] = $this->para['_shopinfo'] = $shopinfo; $obj = new mOrder(); - $wait_deliver_count = $obj->getOrdersCount($shopinfo['uid'], $shopinfo['id'], ORDER_STATUS_WAIT_DELIVER_GOODS, REFUND_STATUS_NO_AFTER_SALES)+0; - $wait_deliver_count = $wait_deliver_count>99 ? '99+' : $wait_deliver_count; - $this->view['_wait_deliver_count'] = $this->para['_wait_deliver_count'] = $wait_deliver_count; - - $after_sale_count = $obj->getOrdersCount($shopinfo['uid'], $shopinfo['id'], 0, REFUND_STATUS_AFTER_SALE_ING)+0; - $after_sale_count = $after_sale_count>99 ? '99+' : $after_sale_count; - $this->view['_after_sale_count'] = $this->para['_after_sale_count'] = $after_sale_count; + $this->view['_wait_deliver_count'] = $this->para['_wait_deliver_count'] = $obj->getOrdersCount($shopinfo['uid'], $shopinfo['id'], ORDER_STATUS_WAIT_DELIVER_GOODS, REFUND_STATUS_NO_AFTER_SALES)+0; + $this->view['_after_sale_count'] = $this->para['_after_sale_count'] = $obj->getOrdersCount($shopinfo['uid'], $shopinfo['id'], 0, REFUND_STATUS_AFTER_SALE_ING)+0; } private function action() { diff --git a/view/templates/include/admin_leftmenu.html b/view/templates/include/admin_leftmenu.html index 7c27b52..3e6ff44 100644 --- a/view/templates/include/admin_leftmenu.html +++ b/view/templates/include/admin_leftmenu.html @@ -30,9 +30,11 @@ 发货提醒 + {if $_wait_deliver_count>0}