<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:68:"/www/wwwroot/10.168.1.202/public/../app/index/view/admin/config.html";i:1611854468;}*/ ?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>系统基本配置 - 6gym.com 6G源码 </title>
    <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      <style>
        #formAdvForm .layui-form-item {
            margin-top: 20px;
            margin-bottom: 0;
        }

        #formAdvForm .layui-form-item .layui-inline {
            margin-bottom: 25px;
            margin-right: 0;
        }

        .form-group-bottom {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 10px 20px;
            background-color: #fff;
            box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .05);
        }
    </style>
</head>
<body>
<!-- 正文开始 -->
<form class="layui-form" id="formAdvForm" lay-filter="formAdvForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">系统基本配置</div>
            <div class="layui-card-body">

                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">站点名称:</label>
                        <div class="layui-input-block">
                            <input name="web_name" placeholder="请输入站点名称" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['web_name']; ?>" required/>
                        </div>
                      
                    </div>
                    
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">站点标题:</label>
                        <div class="layui-input-block">
                            <input name="web_site" placeholder="请输入站点标题" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['web_site']; ?>" required/>
                        </div>
                        
                    </div>
                
                
                 <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">默认余额:</label>
                        <div class="layui-input-inline">
                            <input name="reg_money" placeholder="请输入商户注册默认赠送的余额" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['reg_money']; ?>" required/>
                        </div>
                         <div class="layui-form-mid layui-word-aux">商户注册默认增加的余额</div>
                    </div>
              
                
                 <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">默认点位:</label>
                        <div class="layui-input-inline">
                            <input type="number" name="reg_sxf" placeholder="请输入商户注册默认的手续费点位" class="layui-input inline-block" lay-verType="tips" lay-verify="required" value="<?php echo $config['reg_sxf']; ?>" style="width: 100px;" required/>
                            
                        <span>&nbsp;&nbsp;%</span>
                        </div>
                        <div class="layui-form-mid layui-word-aux">商户注册默认的手续费点位</div>
                    </div>
               
                <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">支付网关:</label>
                        <div class="layui-input-block">
                            <input name="pay_url" placeholder="请输入支付网关" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['pay_url']; ?>" required/>
                        </div>
                        
                </div>
                <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">商户域名:</label>
                        <div class="layui-input-block">
                            <input name="url" placeholder="请输入商户平台主域名" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['url']; ?>" required/>
                        </div>
                        
                    </div>   
                <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">余额充值:</label>
                        <div class="layui-input-inline">
                            <input name="land_pay" placeholder="输入收款账号的MID" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['land_pay']; ?>" required/>
                        </div>
                         <div class="layui-form-mid layui-word-aux">前台商户余额充值收款账号MID</div>
                    </div>
                    
                <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">公告编码:</label>
                        <div class="layui-input-inline">
                            <input name="pay_txtid" placeholder="输入公告编码" class="layui-input" lay-verType="tips" lay-verify="required" value="<?php echo $config['pay_txtid']; ?>" required/>
                        </div>
                         <div class="layui-form-mid layui-word-aux">前台接口信息处接口文档内容对应后台公告ID</div>
                    </div>
                    
                     <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">商户注册:</label>
                        <div class="layui-input-inline">
                           <select name="reg_status" lay-verify="required" required>
                           <option value="1" <?php if($config['reg_status'] == '1'): ?> selected = "selected" <?php endif; ?>>打开</option>
                           <option value="0" <?php if($config['reg_status'] == '0'): ?> selected = "selected" <?php endif; ?>>关闭</option>
                    </select>
                        </div>
                         <div class="layui-form-mid layui-word-aux">是否开放商户注册功能</div>
                    </div>
 </div>
            </div>
        </div>

       

    <div class="form-group-bottom text-right">
        <button type="reset" class="layui-btn layui-btn-primary">&emsp;重置&emsp;</button>
        <button class="layui-btn" lay-filter="formAdvSubmit" lay-submit>&emsp;提交&emsp;</button>
    </div>

</form>
            <!-- //表单结束 -->
        </div>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="/static/assets/js/common.js?v=318"></script>
<script>
    layui.use(['layer', 'form', 'laydate'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        

        /* 监听表单提交 */
        form.on('submit(formAdvSubmit)', function (data) {
            var loadIndex = layer.load(2);
                $.post('<?php echo url("admin/config_save"); ?>', data.field, function (res) {
                layer.close(loadIndex);
                if (0 != res.code) {                                
                    layer.msg(res.msg, {icon: 1});
                    insTb.reload({page: {curr: 1}});
                } else {
                    layer.msg(res.msg, {icon: 2});
                }
            }, 'json');
            return false;
        });

    });
</script>
</body>
</html>