<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
    <link xmlns:th="http://www.thymeleaf.org" rel="stylesheet" th:href="${'/css/estate/access.css'}" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <button type="button" lay-submit="" lay-filter="refresh" class="layui-btn layui-btn-primary layui-btn-sm"
                style="display:block;margin:0 auto">
            <i class="layui-icon layui-icon-refresh" style="font-size: 20px"></i>
        </button>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body" pad15>
                    <div class="layui-form" >
                        <input type="hidden" name="id" id="user_id" th:value="${applyUser.id}" />
                        <div class="layui-form-item">
                            <label class="layui-form-label">住户姓名：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info"  th:text="${applyUser.name}"></span>
                            </div>
                            <label class="layui-form-label">手机号：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info"  th:text="${applyUser.tel}"></span>
                            </div>
                            <label class="layui-form-label">住户类型：</label>
                            <div class="layui-input-inline">
                                <span class="layui-badge layui-bg-blue" style="margin-top: 10px;"
                                      th:each="item : ${userTypeDict}" th:if="${applyUser.type} == ${item.dictKey}"
                                      th:text="${item.dictValue}" ></span>
                                <!--<span th:if="${applyUser.type == 0}" class="detail-info">业主</span>
                                <span th:if="${applyUser.type == 1}" class="detail-info">家属</span>
                                <span th:if="${applyUser.type == 2}" class="detail-info">租客</span>-->
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">小区信息：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info" th:text="${applyUser.residentialName}" ></span>
                            </div>
                            <label class="layui-form-label">楼栋信息：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info" th:text="${applyUser.buildingName}" ></span>
                            </div>
                            <label class="layui-form-label">单元信息：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info" th:text="${applyUser.unitName}" ></span>
                            </div>
                            <label class="layui-form-label">房间信息：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info"  th:text="${applyUser.roomName}" ></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">性别：</label>
                            <div class="layui-input-inline">
                                <span class="layui-badge layui-bg-green" style="margin-top: 10px;"
                                      th:each="item : ${sexDict}" th:if="${applyUser.sex} == ${item.dictKey}"
                                      th:text="${item.dictValue}" ></span>
                                <!--<span th:if="${applyUser.sex == 0}" class="detail-info">未定义</span>
                                <span th:if="${applyUser.sex == 1}" class="detail-info">男</span>
                                <span th:if="${applyUser.sex == 2}" class="detail-info">女</span>-->
                            </div>
                            <!--<label class="layui-form-label">国籍：</label>
                            <div class="layui-input-inline">
                                <span class="layui-badge layui-bg-cyan" style="margin-top: 10px;"
                                      th:each="item : ${nationalityDict}" th:if="${applyUser.nationality} == ${item.dictKey}"
                                      th:text="${item.dictValue}" ></span>
                            </div>-->
                            <label class="layui-form-label">证件类型：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info">身份证</span>
                                <!--<span th:if="${applyUser.nationality == 0}" class="detail-info">身份证</span>
                                <span th:if="${applyUser.nationality == 1}" class="detail-info">港澳居民往来内地通行证</span>
                                <span th:if="${applyUser.nationality == 2}" class="detail-info">台湾居民往来大陆通行证</span>
                                <span th:if="${applyUser.nationality == 3}" class="detail-info">护照</span>-->
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份证号：</label>
                            <div class="layui-input-inline">
                                <span class="detail-info" th:text="${applyUser.idCard}">业主</span>
                            </div>
                            <label class="layui-form-label">审核状态：</label>
                            <div class="layui-input-inline">
                                <span th:if="${applyUser.checkState == 0}" class="detail-info">待审核</span>
                                <span th:if="${applyUser.checkState == 1}" class="detail-info">审核通过</span>
                                <span th:if="${applyUser.checkState == 2}" class="detail-info">审核不通过</span>
                            </div>
                            <label class="layui-form-label">审核时间：</label>
                            <div class="layui-input-inline">
                                <span th:text="${#dates.format(applyUser.checkDate,'yyyy-MM-dd HH:mm:ss')}" class="detail-info"></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">住户头像（最新）：</label>
                            <div class="layui-input-inline">
                                <div class="layui-inline avatar">
                                    <a class="img-select" style="cursor: pointer;" ><img th:src="${applyUser.imageUri!=null?fastDfsServer +applyUser.imageUri:'/images/defaultFace.png'}"></a>
                                </div>
                            </div>
                            <label class="layui-form-label">住户头像（原来）：</label>
                            <div class="layui-input-inline">
                                <div  class="layui-inline avatar">
                                    <a class="img-select" style="cursor: pointer;" ><img th:src="${applyUser.oldImageUri!=null?fastDfsServer +applyUser.oldImageUri:'/images/defaultFace.png'}"></a>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">护照图片：</label >
                            <div class="layui-input-inline">
                                <div class="layui-inline avatar">
                                    <a class="img-select" style="cursor: pointer;" ><img th:src="${applyUser.passportImgUri!=null?fastDfsServer +applyUser.passportImgUri:'/images/defaultFace.png'}"></a>
                                </div>
                            </div>
                            <label class="layui-form-label">入境证明：</label>
                            <div class="layui-input-inline">
                                <div  class="layui-inline avatar">
                                    <a class="img-select" style="cursor: pointer;" ><img th:src="${applyUser.entryImgUri!=null?fastDfsServer +applyUser.entryImgUri:'/images/defaultFace.png'}"></a>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">审核意见：</label>
                            <div class="layui-input-block">
                                <textarea th:text="${applyUser.checkOpinion}" disabled="disabled" class="layui-textarea w500"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button id="cancel_btn" type="reset" class="layui-btn layui-btn-primary">返回</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- javascript -->
<script th:src="@{'/layui/layui.js'}"></script>
<script>
    layui.config({
        base: '/' //静态资源所在路径
    });
</script>
<script th:src="@{'/js/estate/apply-user-detail.js'}"></script>
</body>
</html>
