人人商城商户列表增加商户筛选
/core/web/goods/index.php的41行添加搜索代码
if(isset($_GPC['merchid']) && $_GPC['merchid'] !== ''){
$condition .= ' AND g.merchid = :merchid';
$params[':merchid'] = $_GPC['merchid'];
}
/template/web_v3/goods/index.html的77行添加界面搜索代码
{if p('merch')}
<span class="input-group-select">
<select name="merchid" class='form-control select2' style="width:200px;" data-placeholder="商户筛选">
<option value="" {if $_GPC['merchid'] === ''}selected{/if} >商户筛选</option>
<option value="0" {if $_GPC['merchid'] === '0'}selected{/if} >总平台</option>
{loop p('merch')->getMerch() $merch}
<option value="{$merch['id']}" {if $_GPC['merchid']==$merch['id']}selected{/if} >{$merch['merchname']}</option>
{/loop}
</select>
</span>
{/if}
保存后刷新即可
评论回复