diff --git a/application/service/SearchService.php b/application/service/SearchService.php
index 958f5615bf73c62f292e142850d47b3c11afcf77..0896383e2a7494cac7085061ea5cfc63a7fdb38c 100755
--- a/application/service/SearchService.php
+++ b/application/service/SearchService.php
@@ -195,6 +195,16 @@ class SearchService
}
}
+ // 指定价格筛选
+ if(!empty($params['min_price']))
+ {
+ $where_base[] = ['g.min_price', 'EGT', $params['min_price']];
+ }
+ if(!empty($params['max_price']))
+ {
+ $where_base[] = ['g.min_price', 'LT', $params['max_price']];
+ }
+
return [
'base' => $where_base,
'keywords' => $where_keywords,
diff --git a/sourcecode/alipay/default/pages/goods-search/goods-search.axml b/sourcecode/alipay/default/pages/goods-search/goods-search.axml
index aad64f9cd5e0666476e92d93d044a2fffbdd0871..5f508abedca07c294e39b91140c1d2fd6fcde205 100755
--- a/sourcecode/alipay/default/pages/goods-search/goods-search.axml
+++ b/sourcecode/alipay/default/pages/goods-search/goods-search.axml
@@ -50,7 +50,7 @@
关键字
-
+
diff --git a/sourcecode/alipay/default/pages/goods-search/goods-search.js b/sourcecode/alipay/default/pages/goods-search/goods-search.js
index f9f0908c53dc40a4753195ee3a1bcb4a8a9f17ca..4cbdeb3bea6f20f91cf6690e791a902e3b3fa0be 100755
--- a/sourcecode/alipay/default/pages/goods-search/goods-search.js
+++ b/sourcecode/alipay/default/pages/goods-search/goods-search.js
@@ -30,7 +30,7 @@ Page({
this.setData({
params: params,
post_data: {
- keywords: params.keywords || ''
+ wd: params.keywords || ''
}
});
},
diff --git a/sourcecode/baidu/default/pages/goods-search/goods-search.js b/sourcecode/baidu/default/pages/goods-search/goods-search.js
index 269d54c687a8d048367c574ee1d4effc8c0a5411..f479baf094c230ed4558712d9b3eb177c51db09e 100755
--- a/sourcecode/baidu/default/pages/goods-search/goods-search.js
+++ b/sourcecode/baidu/default/pages/goods-search/goods-search.js
@@ -30,7 +30,7 @@ Page({
this.setData({
params: params,
post_data: {
- keywords: params.keywords || ''
+ wd: params.keywords || ''
}
});
},
diff --git a/sourcecode/baidu/default/pages/goods-search/goods-search.swan b/sourcecode/baidu/default/pages/goods-search/goods-search.swan
index 86b4c7ff630de33e119957d9447ea1f3903b8c09..2b6b42d2526fbd94c3447b6130ac9c53806ad64b 100755
--- a/sourcecode/baidu/default/pages/goods-search/goods-search.swan
+++ b/sourcecode/baidu/default/pages/goods-search/goods-search.swan
@@ -49,7 +49,7 @@
关键字
-
+
diff --git a/sourcecode/qq/default/pages/goods-search/goods-search.js b/sourcecode/qq/default/pages/goods-search/goods-search.js
index fd9bab44269bb86463cba4977df9fe518d22b8a9..69bedc9f0580f1b3b819270124a2b191913e5093 100755
--- a/sourcecode/qq/default/pages/goods-search/goods-search.js
+++ b/sourcecode/qq/default/pages/goods-search/goods-search.js
@@ -30,7 +30,7 @@ Page({
this.setData({
params: params,
post_data: {
- keywords: params.keywords || ''
+ wd: params.keywords || ''
}
});
},
diff --git a/sourcecode/qq/default/pages/goods-search/goods-search.qml b/sourcecode/qq/default/pages/goods-search/goods-search.qml
index 00e7efb9cc76c231c62bb4321ee0817e5542404a..82adbdf5829e6e8a1dfab4726af63cf29bdcb393 100755
--- a/sourcecode/qq/default/pages/goods-search/goods-search.qml
+++ b/sourcecode/qq/default/pages/goods-search/goods-search.qml
@@ -49,7 +49,7 @@
关键字
-
+
diff --git a/sourcecode/toutiao/default/pages/goods-search/goods-search.js b/sourcecode/toutiao/default/pages/goods-search/goods-search.js
index 2f6357f7aa7e17fc0b51cb627354d61b0011e65a..64d90df71d115180bbf4a421fe0ed4fca0e13c13 100755
--- a/sourcecode/toutiao/default/pages/goods-search/goods-search.js
+++ b/sourcecode/toutiao/default/pages/goods-search/goods-search.js
@@ -30,7 +30,7 @@ Page({
this.setData({
params: params,
post_data: {
- keywords: params.keywords || ''
+ wd: params.keywords || ''
}
});
},
diff --git a/sourcecode/toutiao/default/pages/goods-search/goods-search.ttml b/sourcecode/toutiao/default/pages/goods-search/goods-search.ttml
index 26f72ddbf5e2c7678166e812bb6d51a7353e7d81..d5e5626c24c450472c47d9ddc39c458c7c0072b0 100755
--- a/sourcecode/toutiao/default/pages/goods-search/goods-search.ttml
+++ b/sourcecode/toutiao/default/pages/goods-search/goods-search.ttml
@@ -49,7 +49,7 @@
关键字
-
+
diff --git a/sourcecode/weixin/default/pages/goods-search/goods-search.js b/sourcecode/weixin/default/pages/goods-search/goods-search.js
index 022e9e855bf6a5f373ab592328c9cc094f25c7b5..f685585768a18f20487f020693a963ec26b7c96c 100755
--- a/sourcecode/weixin/default/pages/goods-search/goods-search.js
+++ b/sourcecode/weixin/default/pages/goods-search/goods-search.js
@@ -30,7 +30,7 @@ Page({
this.setData({
params: params,
post_data: {
- keywords: params.keywords || ''
+ wd: params.keywords || ''
}
});
diff --git a/sourcecode/weixin/default/pages/goods-search/goods-search.wxml b/sourcecode/weixin/default/pages/goods-search/goods-search.wxml
index 9b9574a4e4c156d1621f84fb440b25bc6d1fe994..c154435244fbd3ce5d5afca2660337dca0597a80 100755
--- a/sourcecode/weixin/default/pages/goods-search/goods-search.wxml
+++ b/sourcecode/weixin/default/pages/goods-search/goods-search.wxml
@@ -49,7 +49,7 @@
关键字
-
+