<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 %}
<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>
        <li>
            <span>置业顾问：</span>
            <span>
                <select id="consultant">
                {% for consultant in consultant_result %}
                    <option value="{{ consultant.id }}"{% if(house_result.consultant_id == consultant.id) %} selected="selected"{% endif %}>{{ consultant.display_name }}</option>
                {% endfor %}
                </select>
                <label for="consultant"></label>
            </span>
        </li>
    </ul>
</div>
<button id="handle">提交处理</button>