From 332d3ba3facf4e7181514259a3e266c06d7e690f Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 10 Sep 2018 13:27:34 +0800 Subject: [PATCH] search --- service/Application/Home/View/Default/Index/Index.html | 6 +++--- service/Application/Home/View/Default/Search/Index.html | 5 ++--- .../Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php | 0 .../Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php | 0 .../Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php | 0 service/Application/Service/SearchService.class.php | 2 +- service/Public/Home/Default/Js/Search.js | 1 + 7 files changed, 7 insertions(+), 7 deletions(-) mode change 100755 => 100644 service/Application/Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php mode change 100755 => 100644 service/Application/Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php mode change 100755 => 100644 service/Application/Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php diff --git a/service/Application/Home/View/Default/Index/Index.html b/service/Application/Home/View/Default/Index/Index.html index 9d756ed1e..a39d17087 100755 --- a/service/Application/Home/View/Default/Index/Index.html +++ b/service/Application/Home/View/Default/Index/Index.html @@ -111,7 +111,7 @@ - {{$categorys.name}} + {{$categorys.name}} @@ -119,7 +119,7 @@ - 更多 + 更多 @@ -130,7 +130,7 @@ - + {{:mb_substr($category['name'], 0, 4, 'utf-8')}} diff --git a/service/Application/Home/View/Default/Search/Index.html b/service/Application/Home/View/Default/Search/Index.html index 15bc5effe..49bb2039d 100755 --- a/service/Application/Home/View/Default/Search/Index.html +++ b/service/Application/Home/View/Default/Search/Index.html @@ -12,12 +12,11 @@ - -
+ +
-
相关搜索: 坚果 diff --git a/service/Application/Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php b/service/Application/Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php old mode 100755 new mode 100644 diff --git a/service/Application/Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php b/service/Application/Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php old mode 100755 new mode 100644 diff --git a/service/Application/Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php b/service/Application/Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php old mode 100755 new mode 100644 diff --git a/service/Application/Service/SearchService.class.php b/service/Application/Service/SearchService.class.php index 8316cf892..2e278316e 100644 --- a/service/Application/Service/SearchService.class.php +++ b/service/Application/Service/SearchService.class.php @@ -80,7 +80,7 @@ class SearchService { $category_ids = GoodsService::GoodsCategoryItemsIds(['category_id'=>$params['category_id']]); $category_ids[] = $params['category_id']; - $where['gci.id'] = ['in', $category_ids]; + $where['gci.category_id'] = ['in', $category_ids]; } // 筛选价格 diff --git a/service/Public/Home/Default/Js/Search.js b/service/Public/Home/Default/Js/Search.js index 566371b92..36b5b50f6 100755 --- a/service/Public/Home/Default/Js/Search.js +++ b/service/Public/Home/Default/Js/Search.js @@ -144,6 +144,7 @@ $(function() { // 请求参数处理 var data = { + category_id: $('.search-content').data('category-id') || 0, keywords: $('#search-input').val() || '', page: page || parseInt($('.search-pages-submit').attr('data-page')) || 1, order_by_field: $('.sort-nav li.active').attr('data-field') || 'default',