mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 13:43:02 +08:00
细节优化+搜索条件优化
This commit is contained in:
@ -197,10 +197,29 @@ class SearchService
|
||||
$temp = explode('-', $v);
|
||||
if(count($temp) == 2)
|
||||
{
|
||||
$where_screening_price[] = [
|
||||
['min_price', 'EGT', $temp[0]],
|
||||
['min_price', 'LT', $temp[1]],
|
||||
];
|
||||
// 最小金额等于0、最大金额大于0
|
||||
if(empty($temp[0]) && !empty($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:
|
||||
margin-left: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
.am-modal-dialog .am-modal-hd,
|
||||
.am-modal-dialog .am-modal-bd {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user