提交 cdcc4bac 编写于 作者: D Devil

细节优化+搜索条件优化

上级 0ba0e0c6
...@@ -197,10 +197,29 @@ class SearchService ...@@ -197,10 +197,29 @@ class SearchService
$temp = explode('-', $v); $temp = explode('-', $v);
if(count($temp) == 2) if(count($temp) == 2)
{ {
$where_screening_price[] = [ // 最小金额等于0、最大金额大于0
['min_price', 'EGT', $temp[0]], if(empty($temp[0]) && !empty($temp[1]))
['min_price', 'LT', $temp[1]], {
]; $where_screening_price[] = [
['min_price', 'elt', $temp[1]],
];
// 最小金额大于0、最大金额大于0
// 最小金额等于0、最大金额等于0
} elseif((!empty($temp[0]) && !empty($temp[1])) || (empty($temp[0]) && empty($temp[1])))
{
$where_screening_price[] = [
['min_price', 'egt', $temp[0]],
['min_price', 'elt', $temp[1]],
];
// 最小金额大于0、最大金额等于0
} elseif(!empty($temp[0]) && empty($temp[1]))
{
$where_screening_price[] = [
['min_price', 'egt', $temp[0]],
];
}
} }
} }
} }
......
...@@ -140,6 +140,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom: ...@@ -140,6 +140,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
margin-left: 0; margin-left: 0;
margin-top: 0; margin-top: 0;
} }
.am-modal-dialog .am-modal-hd,
.am-modal-dialog .am-modal-bd { .am-modal-dialog .am-modal-bd {
background: #fff; background: #fff;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册