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 @@