<style>
    .sale_detail ul {
        margin-top: 30px;
    }
    .sale_detail ul li {
        margin: 20px 0;
    }
    .sale_detail ul li span:nth-of-type(1) {
        font-weight: bold;
        font-size: 14px;
        display: inline-block;
        width: 100px;
    }
    .sale_detail ul li span:nth-of-type(2) {
        font-size: 14px;
        display: inline-block;
        width: 400px;
    }
</style>
<script>
    (function ($) {
        $(document).ready(function () {
            $('#handle').click(function () {
                var consultant_id = $('#consultant').find('option:selected').val();
                alert(consultant_id);
            });
        });
    })(jQuery);
</script>
{% if house_type == 1 %}
    {% set unit = '万元' %}
    {% set price = '售价' %}
{% elseif house_type == 2 %}
    {% set unit = '元/月' %}
    {% set price = '租金' %}
{% endif %}
<form method="post">
    <div class="sale_detail">
        <h2>房东服务详细</h2>
            <ul>
                <li>
                    <span>城市：</span>
                    <span>{{ detail_result.cityName }}</span>
                </li>
                <li>
                    <span>小区名称：</span>
                    <span>{{ detail_result.community_name }}</span>
                </li>
                <li>
                    <span>户型：</span>
                    <span>{{ detail_result.bedroom }}室{{ detail_result.hall }}厅{{ detail_result.kitchen }}厨{{ detail_result.bathroom }}卫</span>
                </li>
                <li>
                    <span>面积：</span>
                    <span>{{ detail_result.covered_area }}m²</span>
                </li>
                <li>
                    <span>楼层：</span>
                    <span>第{{ detail_result.floor }}层(共{{ detail_result.total_floor }}层)</span>
                </li>
                <li>
                    <span>期望{{ price }}：</span>
                    <span>{{ detail_result.price }}{{ unit }}</span>
                </li>
                <li>
                    <span>房源描述：</span>
                    <span>{{ detail_result.description }}</span>
                </li>
            </ul>
            {% if role_flag %}
                {% include 'addConsultant.html' %}
                <input type="hidden" name="submit" value="1">
                <input type="hidden" id="baseCity" value="{{ cityId }}">
                {% include 'recConsultant.html' %}
                {{ block('recConsultant') }}
            {% else %}
                <input type="hidden" name="handle" value="1">
            {% endif %}
            {% if handle == 0 %}
            <input type="submit" id="submit" class="button action" value="提交处理">
            {% endif %}
    </div>
</form>