@{
    ViewBag.Title = "主页";
    Layout = "~/Views/Shared/_LayoutTable.cshtml";
}
<title>主页</title>
<style type="text/css">
    * {
        margin: 0px;
        padding: 0px;
    }
    .image {
        width: 174px;
        height: 210px;
        float: left;
        margin: 10px;
        border-radius:4px;
        overflow:hidden;
    }
    .image:hover {
        cursor:pointer;
        margin-top:3px;
        box-shadow: 0 5px 10px 0 rgba(234, 212, 212, 0.88),
                    0 5px 10px 0 rgba(164, 221, 237, 0.88);
    }
    .base {
        width: 980px;
        height: 464px;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -490px;
        margin-top: -232px;
    }
    body {
		background-color: #326696;
		margin: 0px;
		overflow: hidden;
		font-family:Monospace;
		font-size:13px;
		text-align:center;
		font-weight: bold;
		text-align:center;
			}
</style>
<script type="text/javascript">
    $(function () {
        Array.prototype.forEach.call(document.querySelectorAll('[data-ripple]'), function (element) { new RippleEffect(element); }); //初始化点击冲击波效果
    });
    function HomeUrl(limit, elments) {
        if (limit!="") {
            $.ajax({
                url: "@Url.Action("Permissions", "Home")",
                data: { limit: limit },
                datatype: "text",
                type: "post",
                success: function (data) {
                    if (data == "no") {
                        layer.msg("权限不足！"); return false;
                    } else {
                        setTimeout(function () { parent.document.getElementById(elments).click(); }, 400);
                    }
                }
            });
        } else {
            parent.document.getElementById(elments).click();
        }
    };
</script>
<html>
<body>
    <div class="container-fluid">
        <div class="row">
           @{
               if (@ViewBag.IsFzLimit == true)
               {
                <div class="base" style="height:232px;margin-top: -116px;" id="main">
                    <div class="image" onclick="HomeUrl('WltUserSet', 'UserConfiguration')" style="background-image: url('../icon/HomePageImages/用户配置.png');" data-ripple>
                    </div>
                    <div class="image" onclick="HomeUrl('WltUserLimit', 'UserRights')" style="background-image: url('../icon/HomePageImages/用户权限.png'); " data-ripple>
                    </div>
                    <div class="image" onclick="HomeUrl('WltPtype', 'CommodityInformation')" data-ripple style="background-image: url('../icon/HomePageImages/商品信息.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('','InformationSetting')" data-ripple style="background-image: url('../icon/HomePageImages/微信设置.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('','LoginInformation')" data-ripple style="background-image: url('../icon/HomePageImages/登录信息.png');">
                    </div>
                </div>
               }
               else
               {
                <div class="base" id="main">
                    <div class="image" onclick="HomeUrl('WltUserSet', 'UserConfiguration')" style="background-image: url('../icon/HomePageImages/用户配置.png');" data-ripple>
                    </div>
                    <div class="image" onclick="HomeUrl('WltUserLimit', 'UserRights')" style="background-image: url('../icon/HomePageImages/用户权限.png'); " data-ripple>
                    </div>
                    <div class="image" onclick="HomeUrl('', 'AttendanceSetting')" data-ripple style="background-image: url('../icon/HomePageImages/考勤设置.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('WltPtype', 'CommodityInformation')" data-ripple style="background-image: url('../icon/HomePageImages/商品信息.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('WltCus', 'CustomerInformation')" data-ripple style="background-image: url('../icon/HomePageImages/客户信息.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('WltPicManager','PhotoQuery')" data-ripple style="background-image: url('../icon/HomePageImages/照片查询.png');clear:left">
                    </div>
                    <div class="image" onclick="HomeUrl('', 'DealerUserConfiguration')" data-ripple style="background-image: url('../icon/HomePageImages/经销商设置.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('', 'TableSetting')" data-ripple style="background-image: url('../icon/HomePageImages/工作台设置.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('', 'InformationSetting')" data-ripple style="background-image: url('../icon/HomePageImages/微信设置.png');">
                    </div>
                    <div class="image" onclick="HomeUrl('WltRegisterUserLogin', 'LoginInformation')" data-ripple style="background-image: url('../icon/HomePageImages/登录信息.png');">
                    </div>
                </div>
               }
        }
                
            </div>
    </div>
</body>
</html>
