修改商品返利

This commit is contained in:
邹景立 2021-03-24 16:52:38 +08:00
parent 96a3ed10e5
commit d555b92524
3 changed files with 18 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class ShopGoods extends Controller
else $this->error("无法加载 {$this->type} 数据列表!");
// 列表排序并显示
$query->like('code,name')->like('marks,cateids', ',');
$query->equal('status,vip_entry,truck_type')->order('sort desc,id desc')->page();
$query->equal('status,vip_entry,truck_type,rebate_type')->order('sort desc,id desc')->page();
}
/**

View File

@ -84,7 +84,8 @@
<div>
{eq name='vo.status' value='0'}<span class="layui-badge">已下架</span>{else}<span class="layui-badge layui-bg-green">销售中</span>{/eq}
{eq name='vo.vip_entry' value='0'}<span class="layui-badge layui-bg-blue">非入会礼包</span>{else}<span class="layui-badge layui-bg-green">是入会礼包</span>{/eq}
{eq name='vo.truck_type' value='0'}<span class="layui-badge layui-bg-blue">无需快递配送</span>{else}<span class="layui-badge layui-bg-green">需要快递配送</span>{/eq}
{eq name='vo.truck_type' value='0'}<span class="layui-badge layui-bg-blue">无需发货</span>{else}<span class="layui-badge layui-bg-green">需要发货</span>{/eq}
{eq name='vo.rebate_type' value='0'}<span class="layui-badge layui-bg-blue">非返利商品</span>{else}<span class="layui-badge layui-bg-green">是返利商品</span>{/eq}
</div>
</td>
<td class='nowrap sub-strong-blue'>

View File

@ -64,6 +64,21 @@
</label>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">返利状态</label>
<label class="layui-input-inline">
<select class="layui-select" name="rebate_type">
<option value=''>-- 全部状态 --</option>
{foreach ['非返利的商品','是返利的商品'] as $k=>$v}
{if input('rebate_type','-') eq $k.''}
<option selected value="{$k}">{$v}</option>
{else}
<option value="{$k}">{$v}</option>
{/if}{/foreach}
</select>
</label>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">入会礼包</label>
<label class="layui-input-inline">