 @{
    ViewBag.Title = "用户配置";
    Layout = null;
}
<head>
    <link href="~/Scripts/DownloadBsTable/docs/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Scripts/DownloadBsTable/dist/bootstrap-table.css" rel="stylesheet" />
    <link href="~/BootStrap/bootstrap-editable.css" rel="stylesheet" />
    @*<link rel="stylesheet" href="//rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/css/bootstrap-editable.css">*@
    <script src="~/Scripts/DownloadBsTable/docs/assets/js/jquery.min.js"></script>
    <script src="~/Scripts/layui/layui.js"></script>
    <script src="~/Scripts/layui/lay/modules/tree.js"></script>
    <script src="~/Scripts/layui/lay/modules/layer.js"></script>
    <script src="~/Scripts/DownloadBsTable/docs/assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Scripts/DownloadBsTable/dist/bootstrap-table.js"></script>
    <script src="~/BootStrap/bootstrap-editable.js"></script>
    @*<script src="//rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/js/bootstrap-editable.js"></script>*@
    <script src="~/Scripts/DownloadBsTable/dist/extensions/editable/bootstrap-table-editable.js"></script>
    <!--chosen控件引用-->
    <link href="~/Scripts/chosen_v1.6.2/chosen.min.css" rel="stylesheet" />
    <script src="~/Scripts/chosen_v1.6.2/chosen.jquery.min.js"></script>
    <!--chosen控件引用-->
    <!--点击水波控件引用-->
    <link href="~/Content/css/ripple.min.css" rel="stylesheet" />
    <script src="~/Scripts/ripple.js"></script>
    <!--点击水波控件引用-->
    <script src="~/Scripts/js/ElementAxes.js"></script>
    <link href="~/Content/css/button.css" rel="stylesheet" />
</head>
<style>
</style>
<body>
    @*<form id="firstImgForm" name="formfirstImg" style="display:none" action="../WLTManage/UploadImageSeals" enctype="multipart/form-data" method="post" target="ajaxUploadUplodaFirstImg">*@
            <input onchange="FirstImg()" name="firstImg" type="file" id="firstfileImg"  style="display:none"/>
        @*<iframe name="ajaxUploadUplodaFirstImg" hidden="hidden"></iframe>
    </form>*@
    <form id="firstImgFormGy" name="formfirstImgGy" style="display:none" action="../WLTManage/UploadImageSealsGy" enctype="multipart/form-data" method="post" target="ajaxUploadUplodaFirstImg">
        <input onchange="FirstImgGy()" name="firstImgGy" type="file" id="firstfileImgGy" style="display:none" />
        <iframe name="ajaxUploadUplodaFirstImgGy" hidden="hidden"></iframe>
    </form>
    <div class="wrapper wrapper-content">
        <div class="ibox float-e-margins" style="padding-left:10px;padding-top:10px">
            <div class="ibox-content">
                <div id="fixedtopbutton">
                    @*@{
                        if (!ViewBag.IsFzLimit)
                        {
                            <button data-ripple id="" onclick="OrderBy()" class="btn btn-default"><i class="glyphicon glyphicon-align-left"></i> 价格优先级</button>
                        }
                    }*@
                    <button data-ripple id="" onclick="OrderBy()" class="btn btn-default"><i class="glyphicon glyphicon-align-left"></i> 价格优先级</button>
                    <button id="btnUserConfiguration" data-ripple class="btn btn-default">用户配置</button>
                    @{
                        if (!ViewBag.IsFzLimit)
                        {
                            <button data-ripple id="btnFrontDeskGlobalConfiguration" class="btn btn-default">前台全局配置</button>
                            <button data-ripple id="btnSetting" class="btn btn-default button-rounded"><i class="glyphicon glyphicon-cog"></i>  设置</button>
                        }
                        else
                        {
                            @*<button data-ripple id="btnFZSetting" class="btn btn-default button-rounded"><i class="glyphicon glyphicon-cog"></i> 设置</button>*@
                        }
                    }
                </div>
                @*<div class="alert alert-info alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <strong>注意! </strong>点击设置可更改当前配置
                </div>*@
                <table id="configurationTable"></table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        var firstimgstart = 0;//当前图片状态
        var firstimgsrc = "";//当前图片路径
        var firstimgstartGy = 0;//当前图片状态
        var firstimgsrcGy = "";//当前图片路径
        //更改图片
        function FirstImg() {
            if ($.ImgYulan(document.getElementById("firstfileImg").files[0], "firstimg")) {
                firstimgstart = 1;
                document.getElementById("firstimg").style.display = "";
            };
        }
        //添加图片
        function AddfirtsImg() {
            $("#firstfileImg").click();
        } 
        //上传打印小票时所需图片
        function UploafirtsImg() {
            if (document.getElementById("firstfileImg").files.length < 1) {
                layer.msg("请选择图片");
                return;
            }
            //$("#firstImgForm").submit();
            var fileup = document.getElementById("firstfileImg");
            var formdata = new FormData();
            formdata.append("img", fileup.files[0])
            $.ajax({
                type: 'post',
                url: '../WLTManage/UploadImageSeals',
                data: formdata,
                cache: false,
                processData: false, // 不处理发送的数据，因为data值是Formdata对象，不需要对数据做处理
                contentType: false, // 不设置Content-type请求头
                success: function (data) {
                    layer.msg("上传成功！");
                    $('#configurationTable').bootstrapTable("refresh");
                },
                error: function () { layer.msg("连接超时", { time: 2000, icon: 2 }); }
            });
            fileup.outerHTML = fileup.outerHTML;
            firstimgstart = 0;
        }
        function ClearfirtsImg() {
            if (firstimgstart == 1) {
                $("#firstimg").attr("src", "../UserData/CommoditiesImages/" + firstimgsrc + "?" + new Date().getTime());
                firstimgstart = 0;
                var fileup = document.getElementById("firstfileImg");
                fileup.outerHTML = fileup.outerHTML;
            }else{
                if (firstimgsrc!="") {
                    layer.confirm("确定删除图片？", {title:"提示"}, function (index) {
                        $.ajax({
                            url: "../WLTManage/DelImageSeals",
                            data: {},
                            datatype: "text",
                            type: "post",
                            async: false,
                            success: function (data) {
                                if (data == "err") {
                                    layer.msg("删除失败", { time: 2000 });
                                    return;
                                }
                            }, error: function () {
                                layer.msg("删除失败", { time: 2000 });
                                return;
                            }
                        })
                        firstimgsrc = "";
                        $("#firstimg").attr("src", "../UserData/CommoditiesImages/" + firstimgsrc + "?" + new Date().getTime());
                        firstimgstart = 0;
                        layer.close(index);
                    })
                }
            }
        }


        //更改图片
        function FirstImgGy() {
            if ($.ImgYulan(document.getElementById("firstfileImgGy").files[0], "firstimgGy")) {
                firstimgstartGy = 1;
                document.getElementById("firstimgGy").style.display = "";
            };
        }
        //添加图片
        function AddfirtsImgGy() {
            $("#firstfileImgGy").click();
        }
        //上传打印小票时所需图片
        function UploafirtsImgGy() {
            if (document.getElementById("firstfileImgGy").files.length < 1) {
                layer.msg("请选择图片");
                return;
            }
            //$("#firstImgForm").submit();
            var fileup = document.getElementById("firstfileImgGy");
            var formdata = new FormData($("#firstImgFormGy"));
            formdata.append("img", fileup.files[0])
            $.ajax({
                type: 'post',
                url: '../WLTManage/UploadImageSealsGy',
                data: formdata,
                cache: false,
                processData: false, // 不处理发送的数据，因为data值是Formdata对象，不需要对数据做处理
                contentType: false, // 不设置Content-type请求头
                success: function (data) {
                    layer.msg("上传成功！");
                    $('#configurationTable').bootstrapTable("refresh");
                },
                error: function () { layer.msg("连接超时", { time: 2000, icon: 2 }); }
            });
            fileup.outerHTML = fileup.outerHTML;
            firstimgstartGy = 0;
        }
        function ClearfirtsImgGy() {
            if (firstimgstartGy == 1) {
                $("#firstimgGy").attr("src", "../UserData/GyLoginImages/" + firstimgsrcGy + "?" + new Date().getTime());
                firstimgstartGy = 0;
                var fileup = document.getElementById("firstfileImgGy");
                fileup.outerHTML = fileup.outerHTML;
            } else {
                if (firstimgsrcGy != "") {
                    layer.confirm("确定删除图片？", { title: "提示" }, function (index) {
                        $.ajax({
                            url: "../WLTManage/DelImagheSealsGy",
                            data: {},
                            datatype: "text",
                            type: "post",
                            async: false,
                            success: function (data) {
                                if (data == "err") {
                                    layer.msg("删除失败", { time: 2000 });
                                    return;
                                }
                            }, error: function () {
                                layer.msg("删除失败", { time: 2000 });
                                return;
                            }
                        })
                        firstimgsrcGy = "";
                        $("#firstimgGy").attr("src", "../UserData/GyLoginImages/" + firstimgsrcGy + "?" + new Date().getTime());
                        firstimgstartGy = 0;
                        layer.close(index);
                    })
                }
            }
        }


        function yesornorigths(values, name) {//是否启用基本信息授权
            $.ajax({
                url: "../WLTManage/SaveRowAlertUserConfiguration",
                dataType: "text",
                data: { typevalues: values, typename: name },
                type: "post",
                success: function (data) {//操作成功后刷新table
                    if (data == "操作成功！") {
                        if (values == "是") {
                            layer.msg("已停用", { time: 2000 });
                            $('#configurationTable').bootstrapTable("refresh");
                        } else {
                            layer.msg("已启用", { time: 2000 });
                            $('#configurationTable').bootstrapTable("refresh");
                        }
                    } else {
                        layer.msg(data, { time: 2000 });
                        $('#configurationTable').bootstrapTable("refresh");
                    }
                },
                error: function (data) {
                    layer.msg(data);
                }
            })
        }
        function OrderBy() {
            layer.open({
                type: 2,
                title: '<i class="glyphicon glyphicon-align-left"></i> 价格优先级',
                //shadeClose: false,
                shade: 0.5,
                area: ['60%', '60%'],
                content: '../WLTManage/PricePriority',
                end: function () {
                    $("body").css("overflow", "auto");
                }
            });
        }
        var curRow = {};
        $(function () {
            //初始化点击冲击波效果
            $("#btnUserConfiguration").css({ "background-color": "#000", "color": "#fff", "outline": "none" });
            Array.prototype.forEach.call(document.querySelectorAll('[data-ripple]'), function (element) { new RippleEffect(element); });
            var type = 0; //记录状态 0为用户配置 1全局配置
            var lastType = type;//记录上一次状态

            $('#configurationTable').bootstrapTable({
                url: '../WLTManage/GetAlertUserConfiguration',         //请求后台的URL（*）
                method: 'post',                      //请求方式（*）
                toolbar: '#toolbar',                //工具按钮用哪个容器
                striped: true,                      //是否显示行间隔色
                pagination: false,                   //是否显示分页（*）
                sortOrder: "asc",                   //排序方式
                sidePagination: "server",           //分页方式：client客户端分页，server服务端分页（*）
                pageNumber: 1,                       //初始化加载第一页，默认第一页
                pageSize: 15,                       //每页的记录行数（*）
                pageList: [15, 30, 50],        //可供选择的每页的行数（*）
                minimumCountColumns: 2,  //最少允许的列数
                height: $(window).height() - $("#fixedtopbutton").height() - 15,               //行高，如果没有设置height属性，表格自动根据记录条数觉得表格高度
                uniqueId: "SysID",            //每一行的唯一标识，一般为主键列
                clickToSelect: true,              //是否启用点击选中行
                sortable: true,                     //是否启用排序
                silentSort: true,
                cache: false,                       //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
                search: false,                       //是否显示表格搜索，此搜索是客户端搜索，不会进服务端，所以，个人感觉意义不大
                strictSearch: false,
                showColumns: false,                 //是否显示所有的列
                showRefresh: false,                 //是否显示刷新按钮
                showToggle: false,                   //是否显示详细视图和列表视图的切换按钮
                cardView: false,                    //是否显示详细视图
                detailView: false,                   //是否显示父子表,
                columns: [
                     {
                         field: "index", title: "序号", align: "center", width: 50, edit: false, formatter: function (value, row, index) {
                             return row.index = index + 1; //返回行号
                         }
                     },
                    { field: 'TypeName', title: 'ID' },
                    {
                        field: 'FullName', title: '设置项名称'
                    },
                    {
                        field: 'TypeValues', title: '值', formatter: function (value, row, index) {
                            var strhtml;
                            if ('@ViewBag.IsFzLimit'=="True") {
                                if (row.TypeName == "UploadImageSeals") {
                                    firstimgsrc = value;
                                    strhtml = '  <div id="imgdiv" style="position:relative;width:150px">'
                                                + '<div id="seeimg"><img id="firstimg" width="150" src="../UserData/CommoditiesImages/' + value + '?' + new Date().getTime() + '" onerror="javascript:this.style.display=\'none\'" /></div>'//
                                                  + '<div id="delicon" style="position: absolute; top: 0px; left: 64px; z-index: 99; width: 30px; height: 30px;" onclick="ClearfirtsImg()">'
                                                         + '<img src="../icon/删除.jpg" title="删除" style="cursor:pointer" width="30"  height="30" />'
                                                  + '</div>'
                                                  + '<div id="uploaticon" style="position: absolute; top: 0px; left: 0px; z-index: 99; width: 30px; height: 30px;" onclick="UploafirtsImg()">'
                                                         + '<img src="../icon/上传图片.jpg" title="上传" style="cursor:pointer" width="30" height="30" />'
                                                  + '</div>'
                                                  + '<div id="addicon" style="position: absolute; top: 0px; left: 32px; z-index: 99; width: 30px; height: 30px;" onclick="AddfirtsImg()">'
                                                         + ' <img src="../icon/选择图片.jpg" title="新增" style="cursor:pointer" width="30" height="30" />'
                                                  + '</div>'
                                            + '</div>';
                                }
                                else if (row.TypeName == "UserPower") {//是否启用基本信息授权
                                    if (row.TypeValues == "是") {
                                        var strHtml = '<a href="javascript:void(0);" onclick="yesornorigths(\'' + row.TypeValues + '\',\'' + row.TypeName + '\')"><li class="glyphicon glyphicon-ok"></li></a>';
                                        return strHtml;
                                    } else {
                                        var strHtml = '<a href="javascript:void(0);" onclick="yesornorigths(\'' + row.TypeValues + '\',\'' + row.TypeName + '\')"><li class="glyphicon glyphicon-remove"></li></a>';
                                        return strHtml;
                                    }
                                } else if (row.TypeName == "RetailNotPay") {//是否启用基本信息授权
                                    if (row.TypeValues == "是") {
                                        var strHtml = '<a href="javascript:void(0);" onclick="yesornorigths(\'' + row.TypeValues + '\',\'' + row.TypeName + '\')"><li class="glyphicon glyphicon-ok"></li></a>';
                                        return strHtml;
                                    } else {
                                        var strHtml = '<a href="javascript:void(0);" onclick="yesornorigths(\'' + row.TypeValues + '\',\'' + row.TypeName + '\')"><li class="glyphicon glyphicon-remove"></li></a>';
                                        return strHtml;
                                    }
                                }
                                else if (row.TypeName == "QtyPoint") {//数量小数位
                                    strhtml = '<a href="#" id="QtyPoint"  data-title="数量小数位">' + row.TypeValues + '</a>';
                                } else if (row.TypeName == "PricePoint") {//单价小数位
                                    strhtml = '<a href="#" id="PricePoint"  data-title="单价小数位">' + row.TypeValues + '</a>';
                                } else if (row.TypeName == "DiscountPoint") {//折扣小数位
                                    strhtml = '<a href="#" id="DiscountPoint"  data-title="折扣小数位">' + row.TypeValues + '</a>';
                                } else if (row.TypeName == "TotalPoint") {//金额小数位
                                    strhtml = '<a href="#" id="TotalPoint"  data-title="金额小数位">' + row.TypeValues + '</a>';
                                } else if (row.TypeName == "FZPadLoginImage") {
                                    firstimgsrcGy = value;
                                    strhtml = '  <div id="imgdivGy" style="position:relative;width:150px">'
                                                + '<div id="seeimgGy"><img id="firstimgGy" width="150" src="../UserData/GyLoginImages/' + value + '?' + new Date().getTime() + '" onerror="javascript:this.style.display=\'none\'" /></div>'//
                                                  + '<div id="deliconGy" style="position: absolute; top: 0px; left: 64px; z-index: 99; width: 30px; height: 30px;" onclick="ClearfirtsImgGy()">'
                                                         + '<img src="../icon/删除.jpg" title="删除" style="cursor:pointer" width="30"  height="30" />'
                                                  + '</div>'
                                                  + '<div id="uploaticonGy" style="position: absolute; top: 0px; left: 0px; z-index: 99; width: 30px; height: 30px;" onclick="UploafirtsImgGy()">'
                                                         + '<img src="../icon/上传图片.jpg" title="上传" style="cursor:pointer" width="30" height="30" />'
                                                  + '</div>'
                                                  + '<div id="addiconGy" style="position: absolute; top: 0px; left: 32px; z-index: 99; width: 30px; height: 30px;" onclick="AddfirtsImgGy()">'
                                                         + ' <img src="../icon/选择图片.jpg" title="新增" style="cursor:pointer" width="30" height="30" />'
                                                  + '</div>'
                                            + '</div>';
                                }
                                else {
                                    strhtml = value;
                                }
                            } else {
                                if (row.TypeName == "UploadImageSeals") {
                                    if (value) {
                                        strhtml = '<div id="imgdiv"><div id="seeimg"><img width="100px" height="100px" onerror="javascript:this.style.display=\'none\'" alt="打印小票图片" src="../UserData/CommoditiesImages/' + value + '?' + new Date().getTime() + '" /></div></div>';
                                    } else {
                                        strhtml = "未上传图片";
                                    }
                                } else {
                                    strhtml = value;
                                }
                            }
                            return strhtml;
                        }
                    },
                    { field: 'Comment', title: '备注' }
                ],
                onEditableSave: function (field, row, oldValue,$el) {
                },
                onClickRow: function (row, $element) {
                    curRow = row;
                }
                , onLoadSuccess: function () {
                    layer.photos({
                        photos: '#seeimg',
                        shift: 5
                    });
                    layer.photos({
                        photos: '#seeimgGy',
                        shift: 5
                    });
                    $('#QtyPoint').editable({
                        mode: "popup",
                        type: "number",
                        url: function (params) {
                            $.ajax({
                                type: 'POST',
                                url: "../WLTManage/SaveRowAlertUserConfiguration",
                                data: { typename: "QtyPoint", typevalues: params.value },
                                dataType: 'text',
                                success: function (data, textStatus, jqXHR) {
                                    if (data=="操作成功！") {
                                        layer.msg("保存成功！");
                                    } else {
                                        layer.msg(data);
                                    }
                                },
                                error: function () { alert("保存失败！"); }
                            });
                        },
                        validate: function (value) {
                            value = $.trim(value);
                            if (!value) {
                                return '不能为空！';
                            }
                            if (!/^[0-6]{1}$/.test(value)) {
                                return '请输入0-6';
                            }
                            var data = $("#configurationTable").bootstrapTable('getData'),
                                index = $(this).parents('tr').data('index');
                            console.log(data[index]);
                            return '';
                        }
                    });
                    $('#PricePoint').editable({
                        mode: "popup",
                        type: "number",
                        url: function (params) {
                            $.ajax({
                                type: 'POST',
                                url: "../WLTManage/SaveRowAlertUserConfiguration",
                                data: { typename: "PricePoint", typevalues: params.value },
                                dataType: 'text',
                                success: function (data, textStatus, jqXHR) {
                                    if (data == "操作成功！") {
                                        layer.msg("保存成功！");
                                    } else {
                                        layer.msg(data);
                                    }
                                },
                                error: function () { alert("保存失败！"); }
                            });
                        },
                        validate: function (value) {
                            value = $.trim(value);
                            if (!value) {
                                return '不能为空！';
                            }
                            if (!/^[0-6]{1}$/.test(value)) {
                                return '请输入0-6';
                            }
                            var data = $("#configurationTable").bootstrapTable('getData'),
                                index = $(this).parents('tr').data('index');
                            console.log(data[index]);
                            return '';
                        }
                    });
                    $('#DiscountPoint').editable({
                        mode: "popup",
                        type: "number",
                        url: function (params) {
                            $.ajax({
                                type: 'POST',
                                url: "../WLTManage/SaveRowAlertUserConfiguration",
                                data: { typename: "DiscountPoint", typevalues: params.value },
                                dataType: 'text',
                                success: function (data, textStatus, jqXHR) {
                                    if (data == "操作成功！") {
                                        layer.msg("保存成功！");
                                    } else {
                                        layer.msg(data);
                                    }
                                },
                                error: function () { alert("保存失败！"); }
                            });
                        },
                        validate: function (value) {
                            value = $.trim(value);
                            if (!value) {
                                return '不能为空！';
                            }
                            if (!/^[0-6]{1}$/.test(value)) {
                                return '请输入0-6';
                            }
                            var data = $("#configurationTable").bootstrapTable('getData'),
                                index = $(this).parents('tr').data('index');
                            console.log(data[index]);
                            return '';
                        }
                    });
                    $('#TotalPoint').editable({
                        mode: "popup",
                        type: "number",
                        url: function (params) {
                            $.ajax({
                                type: 'POST',
                                url: "../WLTManage/SaveRowAlertUserConfiguration",
                                data: { typename: "TotalPoint", typevalues: params.value },
                                dataType: 'text',
                                success: function (data, textStatus, jqXHR) {
                                    if (data == "操作成功！") {
                                        layer.msg("保存成功！");
                                    } else {
                                        layer.msg(data);
                                    }
                                },
                                error: function () { alert("保存失败！"); }
                            });
                        },
                        validate: function (value) {
                            value = $.trim(value);
                            if (!value) {
                                return '不能为空！';
                            }
                            if (!/^[0-6]{1}$/.test(value)) {
                                return '请输入0-6';
                            }
                            var data = $("#configurationTable").bootstrapTable('getData'),
                                index = $(this).parents('tr').data('index');
                            console.log(data[index]);
                            return '';
                        }
                    });
                }
            });
            $(window).resize(function () {
                $('#configurationTable').bootstrapTable('resetView');
            });
            $('#configurationTable').bootstrapTable('hideColumn', 'TypeName');
            //用户配置
            $("#btnUserConfiguration").on("click", function () {
                $("#btnUserConfiguration").css({ "background-color": "#000", "color": "#fff", "outline": "none" });
                $("#btnFrontDeskGlobalConfiguration").css({ "background-color": " #f5f5f5", "color": "#000", "outline": "none" });
                lastType = type
                type = 0;
                if (lastType == 0) return;
                $('#configurationTable').bootstrapTable('refresh', {
                    url: '../WLTManage/GetAlertUserConfiguration'
                })
            });
            //前台全局配置
            $("#btnFrontDeskGlobalConfiguration").on("click", function () {
                $("#btnFrontDeskGlobalConfiguration").css({ "background-color": " #000", "color": "#fff", "outline": "none" });
                $("#btnUserConfiguration").css({ "background-color": "#f5f5f5", "color": "#000", "outline": "none" });
                lastType = type
                type = 1;
                if (lastType == 1) return;
                $('#configurationTable').bootstrapTable('refresh', {
                    url: '../WLTManage/GetFrontDeskGlobalConfiguration'
                })

            });
            //Alert用户配置设置或者前台全局配置设置
            $("#btnSetting").on("click", function () {
                if (type == 0) {  //用户配置
                    layer.open({
                        type: 2,
                        title: '<i class="fa fa-asterisk"></i> 设置',
                        shadeClose: false,
                        shade: 0.5,
                        area: ['60%', '95%'],
                        content: '../WLTManage/AlertUserConfiguration',
                        end: function () {
                            $("body").css("overflow", "auto");
                        }
                    });
                } else {  //前台全局配置设置
                    layer.open({
                        type: 2,
                        title: '<i class="fa fa-asterisk"></i> 设置',
                        shadeClose: false,
                        shade: 0.5,
                        area: ['60%', '95%'],
                        content: '../WLTManage/FrontDeskGlobalConfiguration',
                        end: function () {
                            $("body").css("overflow", "auto");
                        }
                    });
                }

            });
            //服装用户配置设置
            $("#btnFZSetting").on("click", function () {
                layer.open({
                    type: 2,
                    title: '<i class="fa fa-asterisk"></i> 设置',
                    shadeClose: false,
                    shade: 0.5,
                    area: ['60%', '95%'],
                    content: '../WLTManage/FZGlobalConfiguration'
                });
            });
        });
    </script>
</body>