<?php /*a:2:{s:63:"/home/ambooshc/public_html/application/admin/view/pay/edit.html";i:1642571926;s:59:"/home/ambooshc/public_html/application/admin/view/main.html";i:1637064002;}*/ ?>
<div class="layui-card layui-bg-gray"><style>        .layui-tab-card>.layui-tab-title .layui-this {
            background-color: #fff;
        }
    </style><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card'
      autocomplete="off"><div class="layui-card-body think-box-shadow padding-left-40"><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">名称</span><input name="name" required class="layui-input" placeholder="请输入名称" value="<?php echo htmlentities($info['name']); ?>"><input type="hidden" name="id" value="<?php echo htmlentities($info['id']); ?>"><input type="hidden" name="_csrf_" value="<?php echo systoken('edit'); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">标识</span><input name="url" required class="layui-input" placeholder="请输入标识" value="<?php echo htmlentities($info['name2']); ?>" readonly></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">名称</span><input name="username" class="layui-input" placeholder="请输入名称" value="<?php echo htmlentities($info['username']); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">代码</span><input name="usercode" class="layui-input" placeholder="请输入代码" value="<?php echo htmlentities($info['usercode']); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">ico</span><input type="hidden" name="ico" value="<?php echo htmlentities($info['ico']); ?>" readonly><img src="<?php echo htmlentities($info['ico']); ?>" alt="" width="50"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">最小金额</span><input name="min" required class="layui-input" placeholder="请输入最小金额" value="<?php echo htmlentities($info['min']); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">最大金额</span><input name="max" required class="layui-input" placeholder="请输入最大金额" value="<?php echo htmlentities($info['max']); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green">手续费</span><input name="pay_commission" required class="layui-input" placeholder="请输入手续费" value="<?php echo htmlentities($info['pay_commission']); ?>"><p class="help-block">第三方收取的收费，如10%，填写 0.1</p></label></div><div class="layui-form-item block"><span class="label-required-prev color-green">二维码</span><p width="auto" class="text-left"><input name="ewm" type="hidden" value="<?php echo htmlentities((isset($info['ewm']) && ($info['ewm'] !== '')?$info['ewm']:'')); ?>"></p><script> $('[name="ewm"]').uploadMultipleImage()</script><p> 图片只能保存一张,更换请先删除</p></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green"><?php if($info['id']==8): ?>充值汇率<?php else: ?>商户号<?php endif; ?></span><input name="mch_id" class="layui-input" placeholder="" value="<?php echo htmlentities($info['mch_id']); ?>"></label></div><div class="layui-form-item layui-row layui-col-space15"><label class="layui-col-xs9 relative"><span class="color-green"><?php if($info['id']==8): ?>提现汇率<?php else: ?>商户密钥<?php endif; ?></span><input name="secret" class="layui-input" placeholder="" value="<?php echo htmlentities($info['secret']); ?>"></label></div><div class="layui-form-item text-center"><button class="layui-btn" type="submit">提交</button><button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消</button></div></div></form></div></div><script>//    layui.use('element', function(){
//        var element = layui.element;
//
//        element.tabAdd('demo', {
//            title: '选项卡的标题'
//            ,content: '选项卡的内容' //支持传入html
//            ,id: '选项卡标题的lay-id属性值'
//        });
//
//        //获取hash来切换选项卡，假设当前地址的hash为lay-id对应的值
//        var layid = location.hash.replace(/^#test1=/, '');
//        element.tabChange('test1', layid); //假设当前地址为：http://a.com#test1=222，那么选项卡会自动切换到“发送消息”这一项
//
//        //监听Tab切换，以改变地址hash值
//        element.on('tab(test1)', function(){
//            location.hash = ''+ this.getAttribute('lay-id');
//        });
//    });

</script>