request->isAjax()) { $get = $this->request->get(); return JsonServer::success('', IncomeLogic::Orderlists($get)); } $data = IncomeLogic::Orderlists(); // 订单状态 $order_status = OrderModel::getOrderStatus(true); $order_status = IncomeLogic::getStat($order_status); //拼装数量统计 // 订单类型 $order_type = OrderModel::getOrderType(true); // 订单来源 $order_source = Client_::getClient(true); // 支付方式 $pay_way = PayEnum::getPayWay(true); // 配送方式 $delivery_type = OrderModel::getDeliveryType(true); $all = IncomeLogic::getAll(); return view('', [ 'all' => $all, 'statistics' => $data, 'order_status' => $order_status, 'order_type' => $order_type, 'order_source' => $order_source, 'pay_way' => $pay_way, 'delivery_type' => $delivery_type ]); } public function LocalOrderLists(){ if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('', IncomeLogic::LocalOrderLists($get)); } $all = IncomeLogic::getAll(); return view('',[ 'all' => $all, ]); } public function RechargeOrderLists(){ if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('', IncomeLogic::RechargeOrderLists($get)); } $all = IncomeLogic::getAll(); return view('',[ 'all' => $all, ]); } }