90 lines
3.6 KiB
HTML

{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
{if condition="$account"}
<form class="layui-form p-4">
<h3 class="pb-3">提现账户信息</h3>
<table class="layui-table layui-table-form">
<tr>
<td class="layui-td-gray-2">用户名<font>*</font></td>
<td colspan="2"><input type="text" name="name" value="{$account.name}" lay-verify="required" lay-reqText="请完善用户名" value="" autocomplete="off" placeholder="请输入用户名" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">账号<font>*</font></td>
<td><input type="text" name="account" value="{$account.account}" lay-verify="required" lay-reqText="请完善账号" value="" autocomplete="off" placeholder="请输入账号" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">开户银行<font>*</font></td>
<td colspan="3"><input type="text" name="bank" value="{$account.bank}" lay-verify="required" lay-reqText="请完善开户行" value="" autocomplete="off" placeholder="请输入开户银行" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">开户银行地址<font>*</font></td>
<td colspan="3"><input type="text" name="bank_address" value="{$account.bank_address}" lay-verify="required" lay-reqText="请完善开户银行地址" value="" autocomplete="off" placeholder="请输入开户银行" class="layui-input"></td>
</tr>
</table>
<div class="pt-3">
<input type="hidden" name="id" value="0"/>
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</form>
{else/}
<form class="layui-form p-4">
<h3 class="pb-3">提现账户信息</h3>
<table class="layui-table layui-table-form">
<tr>
<td class="layui-td-gray-2">用户名<font>*</font></td>
<td colspan="2"><input type="text" name="name" lay-verify="required" lay-reqText="请完善用户名" value="" autocomplete="off" placeholder="请输入用户名" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">账号<font>*</font></td>
<td><input type="text" name="account" lay-verify="required" lay-reqText="请完善账号" value="" autocomplete="off" placeholder="请输入账号" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">开户银行<font>*</font></td>
<td colspan="3"><input type="text" name="bank" lay-verify="required" lay-reqText="请完善开户行" value="" autocomplete="off" placeholder="请输入开户银行" class="layui-input"></td>
</tr>
<tr>
<td class="layui-td-gray-2">开户银行地址<font>*</font></td>
<td colspan="3"><input type="text" name="bank_address" lay-verify="required" lay-reqText="请完善开户银行地址" value="" autocomplete="off" placeholder="请输入开户银行" class="layui-input"></td>
</tr>
</table>
<div class="pt-3">
<input type="hidden" name="id" value="0"/>
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</form>
{/if}
{/block}
<!-- /主体 -->
<!-- 脚本 -->
{block name="script"}
<script>
var moduleInit = ['tool'];
function gouguInit() {
var form = layui.form, tool = layui.tool;
//监听提交
form.on('submit(webform)', function (data) {
let callback = function (e) {
layer.msg(e.msg);
if (e.code == 0) {
tool.sideClose(1000);
}
}
tool.post("/admin/supply_account/add", data.field, callback);
return false;
});
}
</script>
{/block}
<!-- /脚本 -->