<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <!-- 省市区样式 -->
        <link rel="stylesheet" th:href="@{'/layui/lay/mymodules/region.css'}" media="all">
        <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=cbb265e2a60bbbc04a52eec4eecdeb12&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
        <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
    </head>
    <body>
        <input type="hidden" name="selectTreeId" id="selectTreeId" th:value="${selectTreeId}" />
        <input type="hidden" name="userOrgType" id="userOrgType" th:value="${userOrg.orgType}" />
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body" pad15>
                            <div class="layui-form">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>小区名称</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="name" lay-verify="required|specialCharacters|length"  placeholder="" autocomplete="off" class="layui-input w350">
                                    </div>
                                </div>
                               <!-- <div class="layui-form-item">
                                    <label class="layui-form-label">
                                        <span class="must">*</span>
                                        <span>选择地区</span>
                                    </label>
                                    <div class="layui-input-inline" id="region_body" style="width: 350px;">
                                        <input type="hidden" lay-verify="required" name="regionProvince" />
                                        <input type="hidden" lay-verify="required" name="regionCity" />
                                        <input type="hidden" lay-verify="required" name="regionArea" />
                                        <input type="text" name="region" lay-verify="required" autocomplete="off" class="layui-input" id="region" />
                                        <div th:replace="common/region"></div>
                                    </div>
                                </div>-->
                                <div class="layui-form-item">
                                    <label class="layui-form-label">详细地址</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="address"  placeholder="" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <!--以后换成下拉树形-->
                                <div id="l_org_pid" class="layui-form-item">
                                    <div class="layui-form" lay-filter="org_pid_filter">
                                        <label class="layui-form-label"><span class="must">*</span>所属社区</label>
<!--                                        <div class="layui-input-inline">-->
<!--                                            <div id="org_pid" class=" w350"></div>-->
<!--                                        </div>-->
                                        <div class="layui-input-inline">
                                            <div id="agency_id" class=" w350"></div>
                                        </div>
                                    </div>
                                </div>
                                <div id="l_estate_pid" class="layui-form-item">
                                    <div class="layui-form" lay-filter="estate_pid_filter">
                                        <label class="layui-form-label"><span class="must">*</span>所属物业</label>
                                        <div class="layui-input-inline">
                                            <div id="estate_pid" ></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span><span>经度</span></label>
                                    <div class="layui-input-inline">
                                        <input type="text" lay-verify="required" name="longitude" class="layui-input" />
                                    </div>
                                    <label class="layui-form-label"><span class="must">*</span><span>纬度</span></label>
                                    <div class="layui-input-inline">
                                        <input type="text" lay-verify="required" name="latitude" class="layui-input" />
                                    </div>
                                    <div id="myPageTop" style="padding-left: 80%">
                                        <input id="tipinput" class="layui-input" placeholder="输入名称，查询位置"/>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div id="container1" style="width: 100%;height: 340px;padding-left: 12px;padding-top:200px;"></div>
                                </div>
                                <!--<div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>单元总数</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="totalUnitNumber" lay-verify="required|number"  placeholder="" autocomplete="off"
                                               class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>房间总数</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="totalRoomNumber" lay-verify="required|number"  placeholder="" autocomplete="off"
                                               class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>住户总数</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="totalUserNumber" lay-verify="required|number"  placeholder="" autocomplete="off"
                                               class="layui-input">
                                    </div>
                                </div>-->
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>负责人</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="personName" lay-verify="required|personName"  placeholder="" autocomplete="off" class="layui-input  w350">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>联系电话</label>
                                    <div class="layui-input-inline">
                                        <input type="number" name="personTel" lay-verify="required|phoneNum" placeholder="" autocomplete="off"
                                               class="layui-input  w350">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">备注</label>
                                    <div class="layui-input-block">
                                        <textarea name="remark" placeholder="请输入300字以内的备注介绍"  class="layui-textarea w500"></textarea>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="submit_button">提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary" id="cancel_btn">取消</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- javascript -->
        <!--去掉input type="number"后面的箭头-->
        <style type="text/css">
            input::-webkit-outer-spin-button,
            input::-webkit-inner-spin-button {
                -webkit-appearance: none;
            }
            input[type="number"] {
                -moz-appearance: textfield;
            }
        </style>

        <script th:src="@{'/layui/layui.js'}"></script>
        <script>
            layui.config({
                base: '/' //静态资源所在路径
            });
        </script>
        <script th:src="@{'/js/estate/residential-add.js'}"></script>
    <style>
        #org_type {
            color: #666666;
            font-size: 15px;
            float: left;
            padding: 9px 15px
        }
    </style>
    </body>
</html>
