master
wangxinglong 2022-08-09 14:00:14 +08:00
parent c1fad50fc1
commit 2d71d9e498
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ class SpuRepository extends Repository
// $whereMap[] = ['is_activity', '=', Spu::COMMON_OFF];
}
if (isset($params['saleable']) &&!empty( $params['saleable'])) {
if (isset($params['saleable']) && !empty( $params['saleable'])) {
$whereMap[] = ['saleable', '=', $params['saleable']];
}

View File

@ -12,7 +12,7 @@
<div class="layui-inline">
<label class="layui-form-label">商品状态</label>
<div class="layui-input-block">
<select name="searchParams[saleable]">
<select name="saleable">
<option value=""></option>
{foreach $statusList as $key => $val}
<option value="{$key ?? ''}">{$val ?? ''}</option>
@ -24,7 +24,7 @@
<div class="layui-inline layui-hide">
<label class="layui-form-label">商品属性</label>
<div class="layui-input-block">
<select name="searchParams[spu_type]">
<select name="spu_type">
<option value=""></option>
{foreach $spuTypeList as $key => $val}
<option value="{$key ?? ''}">{$val ?? ''}</option>
@ -36,7 +36,7 @@
<div class="layui-inline">
<label class="layui-form-label">商品关键词</label>
<div class="layui-input-block">
<input class="layui-input" name="searchParams[keyword]" placeholder="支持模糊查询">
<input class="layui-input" name="keyword" placeholder="支持模糊查询">
</div>
</div>