<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>浏览</title>
    <link rel="stylesheet" th:href="@{/lib/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/public.css}" media="all">
    <link rel="stylesheet" th:href="@{/lib/font-awesome-4.7.0/css/font-awesome.min.css}" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<form class="layui-form" action="" lay-filter="formDemo">
    <div class="layui-form layuimini-form">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-inline" style="width: 720px">
                <input type="text" id="lxmc" name="lxmc" class="layui-input" th:value="${prjContacts.lxmc}" readonly>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">单位</label>
            <div class="layui-input-inline" style="width: 720px">
                <input type="text" id="dwmc" name="dwmc" class="layui-input" th:value="${prjContacts.dwmc}" readonly>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="lxrxm" name="lxrxm" class="layui-input" th:value="${prjContacts.lxrxm}" readonly>
            </div>
            <label class="layui-form-label">固定电话</label>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="gddh" name="gddh" autocomplete="off" class="layui-input"
                       th:value="${prjContacts.gddh}" readonly>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">移动电话</label>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="yddh" name="yddh" autocomplete="off" class="layui-input"
                       th:value="${prjContacts.yddh}" readonly>
            </div>
            <label class="layui-form-label">电子邮件</label>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="dzyj" name="dzyj" autocomplete="off" class="layui-input"
                       th:value="${prjContacts.dzyj}" readonly>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <div class="layui-form-label">邮政编码</div>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="yzbm" name="yzbm" autocomplete="off" class="layui-input"
                       th:value="${prjContacts.yzbm}" readonly>
            </div>
            <label class="layui-form-label">传真</label>
            <div class="layui-input-inline" style="width: 300px">
                <input type="text" id="cz" name="cz" autocomplete="off" class="layui-input" th:value="${prjContacts.cz}"
                       readonly>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">邮寄地址</label>
            <div class="layui-input-inline" style="width: 720px">
                <input type="text" id="yjdz" name="yjdz" autocomplete="off" class="layui-input"
                       th:value="${prjContacts.yjdz}" readonly>
            </div>
        </div>

        <!-- 右侧悬浮按钮 -->
        <div class="right-bottom-btn">
            <button class="layui-btn" lay-filter="cancleBtn">
                <i class="layui-icon layui-icon-close"></i>关闭
            </button>
        </div>
    </div>
</form>

<script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
<script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
<script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
<script type="text/javascript" th:inline="javascript">
    AjaxUtil.ctx = /*[[@{/}]]*/'';
    layui.use(['form'], function () {

        // 监听取消按钮
        $("button[lay-filter='cancleBtn']").click(function () {
            var iframeIndex = parent.layer.getFrameIndex(window.name);
            parent.layer.close(iframeIndex);
        });
    });
</script>
</body>
</html>