Commit 2cf543c5 by 杨树贤

筛选问题

parent 4608a423
......@@ -53,6 +53,16 @@ class SkuListFilter
unset($map['source_type']);
}
if (!empty($map['has_price'])) {
if ($map['has_price'] == 1) {
$map['single_price/sr'] = 'gt,0';
}else{
$map['single_price/eq'] = '0';
}
unset($map['source_type']);
}
if (!empty($map['stock_compare_type']) && !empty($map['stock_num'])) {
switch ($map['stock_compare_type']) {
case 'eq':
......
......@@ -137,7 +137,7 @@
</div>
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('single_price/sr','有无价格',request()->get('single_price/sr'),['gt,0'=> '有','eq,0'=> '无']) !!}
{!! $statusPresenter->render('has_price','有无价格',request()->get('has_price'),['1'=> '有','-1'=> '无']) !!}
</div>
<div class="layui-inline" style="width: 600px">
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment