From c21cf0b0f32adabf9c519ac399272def2a495c77 Mon Sep 17 00:00:00 2001 From: zcstatham <578322713@qq.com> Date: Mon, 12 Sep 2022 22:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=BD=A6=E6=9E=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86=E8=B0=83=E8=AF=955?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Repeat.php | 7 ++ app/view/repeat/index.html | 138 +++++++++++++++++++++++-------------- 2 files changed, 92 insertions(+), 53 deletions(-) diff --git a/app/controller/Repeat.php b/app/controller/Repeat.php index e121026..ae43ab3 100644 --- a/app/controller/Repeat.php +++ b/app/controller/Repeat.php @@ -168,6 +168,13 @@ class Repeat extends BaseController }); $map[] = ['car_info_t.factory_model', 'like', $factory_model]; } + if (isset($params['tag']) && $params['tag'] != '') { + $tags = explode(',', str_replace(',', '', $params['tag'])); + array_walk($tags, function (&$value) { + $value = '%' . $value . '%'; + }); + $map[] = ['car_info_t.tag', 'like', $tags]; + } if (isset($params['car_frame_no']) && $params['car_frame_no'] != '') { $map[] = ['car_info_t.car_frame_no', '=', $params['car_frame_no']]; } diff --git a/app/view/repeat/index.html b/app/view/repeat/index.html index 86a078e..7803757 100644 --- a/app/view/repeat/index.html +++ b/app/view/repeat/index.html @@ -8,97 +8,129 @@ {/block} {block name="body"}
-
-
-
- -
- -
-
-
- -
+
+
+
+ +
-
- -
+
+ +
-
- -
+
+ +
+ +
+
+
+ +
-
-
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
+ +
+
+
+ +
-
-
-
- -
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
-
-
+
-
- -
- 月 - 日 +
+ +
+ +
-
-
- 月 - 日 +
+ +
-
-
-
- -
- 万 +
+ +
+
-
-
- 万 +
+
-
- +
+ +
+ +