@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>补录流量卡分佣</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <script src="/admin/js/LAreaData2.js"></script>
</head>
<body>

    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
        <form class="layui-form" id="confirmFrm">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-tab" lay-filter="mytabbar">
                        <ul class="layui-tab-title">
                            <li class="layui-this" lay-id="1">基本信息</li>
                        </ul>
                        <div class="layui-tab-content mt20">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">机具SN</label>
                                    <div class="layui-input-inline">
                                        <input class="layui-input" type="text" id="PosSn"
                                            name="PosSn" maxlength="50" autocomplete="off" placeholder="请输入机具SN">
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div class="layui-form-item ml10">
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn" onclick="save()">提交</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
    <script src="/other/mybjq/kindeditor-min.js"></script>
    <script src="/other/mybjq/lang/zh_CN.js"></script>
    <script>
        function save() {
            var loadindex = layer.load(1, {
                shade: [0.5, '#000']
            });
            var userdata = $("#confirmFrm").serialize();
            $.ajax({
                type: "POST",
                url: "/Admin/SysTools/FluxPrizeDo?r=" + Math.random(1),
                data: userdata,
                dataType: "json",
                success: function (data) {
                    layer.close(loadindex);
                    if (data.code == '1') {
                        layer.alert(data.result.replace(/\n/g, '<br />'), { area: ['680px', '460px'] });
                    } else {
                        var index = layer.confirm(data.result.replace(/\n/g, '<br />') + '<br />是否立即补发？', { area: ['500px', '460px'] }, function (index) {
                            $.ajax({
                                type: "POST",
                                url: "/Admin/SysTools/AddFluxPrize?r=" + Math.random(1),
                                data: "Id=" + data.id,
                                dataType: "text",
                                success: function (data) {
                                    if (data == "success") {
                                        layer.close(index);
                                        layer.msg("补发成功");
                                    } else {
                                        layer.msg(data);
                                    }
                                }
                            });
                        });
                    }
                }
            });
        }
        
                    
        //编辑器
        KindEditor.ready(function (K) {
            
        });
                
        var tree;
        var element;
        var upload;
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
            var $ = layui.$
                , form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate
                , croppers = layui.croppers
                , transfer = layui.transfer
                , util = layui.util;
            tree = layui.tree;
            element = layui.element;
            upload = layui.upload;
        
            //Hash地址的定位
            var layid = location.hash.replace(/^#test=/, '');
            element.tabChange('test', layid);
            element.on('tab(test)', function (elem) {
                location.hash = 'test=' + $(this).attr('lay-id');
            });
    
            //日期
            

            //上传文件
            

            //穿梭框
            

            //TreeView，比如权限管理
            

            //省市区
            
        })

    </script>
</body>
</html>
