From af3f55da98ccf21da2283b914e31a7f200a1f2dc Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Fri, 8 Jul 2022 17:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=BE=E7=A4=BA=E8=AE=A2=E5=8D=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=20=E5=94=AE=E5=90=8E=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/define.php | 11 +++++++++++ control/index.php | 2 ++ view/templates/index/order_list.html | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/config/define.php b/config/define.php index 1a6725e..221f454 100644 --- a/config/define.php +++ b/config/define.php @@ -29,6 +29,11 @@ define('ORDER_STATUS_DELIVERED', 2); define('ORDER_STATUS_SIGNED_FOR', 3); define('ORDER_STATUS_FULL', 5); + $GLOBALS['order_status'] = array( + ORDER_STATUS_WAIT_DELIVER_GOODS => '待发货', + ORDER_STATUS_DELIVERED => '已发货待签收', + ORDER_STATUS_SIGNED_FOR => '已签收', + ); # refund_status 售后状态 1:无售后或售后关闭,2:售后处理中,3:退款中,4: 退款成功 5:全部 define('REFUND_STATUS_NO_AFTER_SALES', 1); @@ -36,6 +41,12 @@ define('REFUND_STATUS_ING', 3); define('REFUND_STATUS_SUCC', 4); define('REFUND_STATUS_FULL', 5); + $GLOBALS['refund_status'] = array( + REFUND_STATUS_NO_AFTER_SALES => '无售后或售后关闭', + REFUND_STATUS_AFTER_SALE_ING => '售后处理中', + REFUND_STATUS_ING => '退款中', + REFUND_STATUS_SUCC => '退款成功', + ); # 同步历史订单 define('_RQ_SYNC_HISTORICAL_ORDERS', 'rq_sync_historical_orders'); diff --git a/control/index.php b/control/index.php index 7778d8f..30ed273 100644 --- a/control/index.php +++ b/control/index.php @@ -56,6 +56,8 @@ class index extends publicBase { $this->view['list'] = $list ? $list : array(); + $this->view['order_status'] = $GLOBALS['order_status']; + $this->view['refund_status'] = $GLOBALS['refund_status']; if (empty($list)) return true; $goods_ids = array_unique(array_column($list, 'goods_id')); diff --git a/view/templates/index/order_list.html b/view/templates/index/order_list.html index 9896deb..796f718 100644 --- a/view/templates/index/order_list.html +++ b/view/templates/index/order_list.html @@ -130,6 +130,8 @@