diff --git a/app/controller/manager/mall/Order.php b/app/controller/manager/mall/Order.php index af97512..5e952b6 100755 --- a/app/controller/manager/mall/Order.php +++ b/app/controller/manager/mall/Order.php @@ -123,6 +123,14 @@ class Order extends Base $whereMap[] = ['coding', '=', $searchParams['coding']]; } + + if (isset($searchParams['contacts']) && !empty($searchParams['contacts'])) { + $whereMap[] = ['contacts', 'like', "%".$searchParams['contacts']."%"]; + } + if (isset($searchParams['phone']) && !empty($searchParams['phone'])) { + $whereMap[] = ['phone', 'like', "%".$searchParams['phone']."%"]; + } + $res = OrderModel::findList($whereMap, [], $page, $size, function ($q) { return $q->with(['account']); }, $order); diff --git a/view/manager/mall/order/index.html b/view/manager/mall/order/index.html index d36b757..1defd7e 100755 --- a/view/manager/mall/order/index.html +++ b/view/manager/mall/order/index.html @@ -54,6 +54,20 @@ +
+ +
+ +
+
+ +
+ +
+ +
+
+