Commit 2cf543c5 by 杨树贤

筛选问题

parent 4608a423
...@@ -53,6 +53,16 @@ class SkuListFilter ...@@ -53,6 +53,16 @@ class SkuListFilter
unset($map['source_type']); 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'])) { if (!empty($map['stock_compare_type']) && !empty($map['stock_num'])) {
switch ($map['stock_compare_type']) { switch ($map['stock_compare_type']) {
case 'eq': case 'eq':
...@@ -84,4 +94,4 @@ class SkuListFilter ...@@ -84,4 +94,4 @@ class SkuListFilter
} }
return $map; return $map;
} }
} }
\ No newline at end of file
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter') @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>
<div class="layui-inline" style="width: 600px"> <div class="layui-inline" style="width: 600px">
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter') @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