REAPI/app/merchant/view/product/setting.html
2c7d8ec064 feat(channel): 新增电话充值不同类型方法
- 在 Xinwang 类中添加了多个新的充值类型方法,包括 ydcz、ydcz_cjkc、ltcz、ltcz_cjkc、dxcz 和 dxcz_cjkc- 这些新方法通过设置不同的 isp_type 属性来区分不同的充值类型
- 修改了 dhcz 方法,支持根据 isp_type 进行充值类型判断
- 优化了 notify 方法中的状态处理逻辑- 在 order 控制器中修复了 other_param 相关的逻辑错误
- 在 merchant 视图中添加了复冲次数输入框
2025-06-21 18:48:04 +08:00

83 lines
3.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="../../admin/view/main"}
{block name="button"}
<button data-open='{:url("/merchant/merchant/index/")}' data-title="返回商户列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回商户列表</button>
<button data-open='{:url("/merchant/percent/index/")}?mid={$vo.id}' data-title="折扣设置" class='layui-btn layui-btn-sm layui-btn-primary'>折扣设置</button>
{/block}
{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='product'}
<thead>
<tr>
<th class='text-left nowrap' width="100%">为商户 <span class="color-blue">{$vo.name}</span> 设置渠道产品</th>
<th class='text-left nowrap' width=""></th>
<th></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $name as $key=>$vv}
<tr>
<td class='text-left nowrap' width="10%">
<span class="color-black" style="font-weight: bold;">【{$vv|default=''}】</span> <span class="color-desc">{$key|default=''}</span>
</td>
<td class='text-left nowrap' width="50%"></td>
<td class='text-left nowrap' width="20%"></td>
</tr>
{if isset($product[$key]) && $product[$key]}
{foreach $product[$key] 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}|{$v.cid}' lay-ignore name="pid[]" type='checkbox' {if $v.select == 1}checked="checked"{/if}></label><span class="color-desc"> ├  </span>{$v.channel.name|default=''}</span> <span class="color-desc">{$v.channel.id|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'>
<span class="color-desc">复冲次数(根据渠道的复充次数):</span>
<input class="layui-input" type="number" placeholder="请输入根据渠道的复充次数" name="fc_numer_{$v.id}" value="{$v.fc_numer|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}
{/if}
{/foreach}
</tbody>
</table>
<div class="hr-line-dashed"></div>
<input type='hidden' value='{$vo.id}' name='mid'>
<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}