72 lines
3.4 KiB
HTML
72 lines
3.4 KiB
HTML
![]() |
{extend name="../../admin/view/main"}
|
|||
|
|
|||
|
{block name="content"}
|
|||
|
<div class="layui-tab layui-tab-card think-bg-white table-block">
|
|||
|
<div class="layui-tab-content think-box-shadow table-block table-block">
|
|||
|
<form class="layui-form" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
|
|||
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|||
|
{notempty name='list'}
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
|
|||
|
<th class='text-left nowrap' width="100%">为商户 <span class="color-blue">{$merchant.name}</span> 的通道 <span class="color-red">{$project.name}</span> 设置渠道商品</th>
|
|||
|
<th class='text-left nowrap' width=""></th>
|
|||
|
<th></th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
{/notempty}
|
|||
|
<tbody>
|
|||
|
{foreach $list as $key=>$vv}
|
|||
|
<tr>
|
|||
|
<td class='text-left nowrap' width="10%">
|
|||
|
<span class="color-black">{$vv.name|default=''}</span>( <span class="color-desc">{$vv.id|default=''}</span> )( <span class="color-desc">{$vv.key|default=''}</span> )
|
|||
|
</td>
|
|||
|
<td class='text-left nowrap' width="50%"></td>
|
|||
|
<td class='text-left nowrap' width="20%"></td>
|
|||
|
</tr>
|
|||
|
{foreach $vv.product as $k=>$v}
|
|||
|
<tr>
|
|||
|
<td class='text-left nowrap'>
|
|||
|
<span class="color-blue"><label><input style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" class="list-check-box" value='{$v.id}|{$vv.id}' lay-ignore name="pid[]" type='checkbox' {if $v.select == 1}checked="checked"{/if}></label><span class="color-desc"> ├ </span>{$v.name|default=''}</span>( <span class="color-desc">{$v.id|default=''}</span> )( <span class="color-desc">{$v.key|default=''}</span> )</span>
|
|||
|
</td>
|
|||
|
<td class='text-left nowrap'>
|
|||
|
<span class="color-desc">优选级(数字越大优先级越高):</span>
|
|||
|
<input class="layui-input" type="number" placeholder="请输入数字,数字越大优先级越高" name="sort_{$v.id}" value="{$v.sort|default=''}"/>
|
|||
|
</td>
|
|||
|
<td class='text-left nowrap'>
|
|||
|
{if $v.value}
|
|||
|
<span class="color-desc">可选面值(未选择面值则所有面值可用):</span>
|
|||
|
{foreach $v.value as $k1 => $v1}
|
|||
|
<input type="checkbox" style="width: 42px;height: 20px;margin-top: 9px;" lay-skin="primary" lay-ignore name="cash_{$v.id}[]" value="{$v1}" title="{$v1}" {if $v.cash && in_array($v1, $v.cash)}checked="checked"{/if}><span class="color-green margin-right-10 font-w7">{$v1}</span>
|
|||
|
{/foreach}
|
|||
|
{/if}
|
|||
|
</td>
|
|||
|
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
<div class="hr-line-dashed"></div>
|
|||
|
<input type='hidden' value='{$mid}' name='mid'>
|
|||
|
<input type='hidden' value='{$project_id}' name='project_id'>
|
|||
|
<div class="layui-form-item text-center">
|
|||
|
<button class="layui-btn" type='submit'>保存设置</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script>
|
|||
|
layui.use(['form','layer'], function(){
|
|||
|
var form = layui.form;
|
|||
|
var layer = layui.layer;
|
|||
|
});
|
|||
|
|
|||
|
form.render();
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</script>
|
|||
|
{/block}
|