request->get(); //组建where $status = isset($get['status']) ? $get['status'] : 0; $search = isset($get['search']) ? $get['search'] : ''; $where = ['merchantId' => $this->merchantId, 'status' => $status]; if (!empty($search)) { if (stringUtil::isMobieNumber($search)) { $where['receiveMobile'] = $search; } else { $where['id'] = $search; } } $list = OrderService::getOrderList($where); util::success($list); } //发货管理 shish 2019.11.30 public function actionSend() { return [ 'orderId' => '201911232278449', 'price' => '390', 'progress' => [ [ 'name' => '下单', 'reach' => 1, 'time' => '11.20 12:30', 'show' => ['hint' => '已下单'] ], [ 'name' => '打单', 'reach' => 1, 'time' => '11.20 12:30', 'show' => ['option' => 1, 'info' => ['收花人信息待写上'], 'hint' => '已确认'], ], [ 'name' => '发货', 'reach' => 1, 'time' => '11.20 12:30', 'show' => ['option' => 0, 'info' => ['配送信息待写上'], 'hint' => '已确认'], ], [ 'name' => '送达', 'reach' => 1, 'time' => '11.20 12:30', 'show' => ['hint' => '已送达'] ], [ 'name' => '完成', 'reach' => 1, 'time' => '11.20 12:30', 'show' => ['hint' => '订单已完成'] ], ] ]; } }