<detail-banner imglist="{{house.detail_images}}" vrLink="{{house.vrLink}}" bind:onlineWatch="onlineWatch"
    bind:toVrHouse="toVrHouse" />
<!-- <scroll-view class="contanerbox" scroll-y="true" wx:if="{{house.house_id}}"> -->
<view class="contanerbox" wx:if="{{house.house_id}}">
    <view class="house-info padding-container">
        <view class="tab-list">
            <view class="tab-item" wx:for="{{house.tags}}" wx:key="index">{{ item }}</view>
            <!-- <view class="tab-item" wx:for="{{house.tags}}" wx:key="index">{{ item }}</view> -->
            <!-- <view class="tab-item" > 满两年 </view>
            <view class="tab-item" > 随时可看 </view> -->
        </view>
        <view class="follow-status-w">
            <button class="follow-status" open-type="getPhoneNumber" bindgetphonenumber="bindgetphonenumber"
                wx:if="{{ !loginStatus && app_type !== 'user' }}">
                <image class="follow-icon" src="/image/4Dage/detail/icon-follow.svg" />
                关注
            </button>
            <button class="follow-status" data-action="changeFocusStatus" open-type="getUserInfo"
                bindtap="bindgetuserinfo" wx:elif="{{ !loginStatus && app_type === 'user' }}">
                <image class="follow-icon" src="/image/4Dage/detail/icon-follow.svg" />
                关注
            </button>
            <view class="follow-status" wx:elif="{{ !isFocused }}" bindtap="changeFocusStatus">
                <image class="follow-icon" src="/image/4Dage/detail/icon-follow.svg" />
                关注
            </view>
            <view class="follow-status" wx:elif="{{ isFocused }}" bindtap="cancleFocusStatus">
                <image class="follow-icon" src="/image/4Dage/detail/icon-follow-active.svg" />
                已关注
            </view>
        </view>
        <view class="house-name ">{{ house.title }}</view>
        <view class="contact-user">房源负责人：{{ agent_user.name }}<view class="icon-idcard" bind:tap="toAgentDetail"></view>
        </view>
        <view class="house-parameter">
            <view class="parameter-item">
                <!-- <view class="price">${{ house.price / 10000 }}万</view> -->
                <!-- <view class="price">${{ house.price/10000 }}万</view> -->
                <view class="price">${{ house.price }}</view>
                <view class="parameter-name">售价</view>
            </view>
            <view class="parameter-item">
                <!-- <view class="price">{{ house.house_type || '暂无数据' }}</view> -->
                <view class="price">{{house.bedroomAmount+'卧'+house.showerroomAmount+'卫' || '暂无数据' }}</view>
                <view class="parameter-name">房型</view>
            </view>
            <view class="parameter-item">
                <!-- <view class="price">{{ house.area ? house.area + 'm²' : '暂无数据' }}</view> -->
                <view class="price">{{ house.area ? house.area + 'ft²' : '暂无数据' }}</view>
                <view class="parameter-name">建筑面积</view>
            </view>
        </view>
        <view class="house-detail">
            <view class="detail-item" wx:for="{{detailItems}}" wx:key="name">
                <text class="label">{{ item.label }}：</text>
                <text class="value"> <text class="value" wx:if="{{item.name=='unit_price' }}"> $</text>{{ item.value
                    }}</text>
                <text class="value" wx:if="{{item.name=='bedroomAmount' ||item.name=='showerroomAmount' }}"></text>
                <text class="value" wx:if="{{item.name=='unit_price' }}"></text>
                <text class="value" wx:if="{{item.name=='area' ||item.name=='floorSpace' }}">平方英尺</text>
            </view>
        </view>
        <!-- <view class="vr-tip" wx:if="{{!isAgency && house.vrLink}}">
            <view class="vr-tip-logo"></view>
            <view class="vr-tip-right">
                <view class="vr-tip-title">语音云带看</view>
                <view class="vr-tip-intro">在线语音带看，足不出户看实况</view>
                <view class="vr-tip-btn" bind:tap="onlineWatch">线上带看</view>
            </view>
        </view> -->
    </view>
    <view class="location-info padding-container">
        <view class="location-text-info">
            <view class="detail-title">位置及周边配套</view>
            <view class="location-item">
                <text class="location-label">位置：</text>
                <!-- <text class="location-value">{{ house.city + house.estate_name }}</text> -->
                <!-- <text class="location-value">{{house.address + ' ' +house.city   }}</text> -->
                <text class="location-value">
                    <text>{{house.address}}</text><text wx:if="{{house.city}}"> ,</text>
                    <text>{{house.city}}</text><text wx:if="{{house.province}}"> ,</text>
                    <text>{{house.province}}</text><text wx:if="{{house.postcode}}"> ,</text>
                    <text>{{house.postcode}}</text>
                </text>
            </view>
            <view class="location-item" wx:if="{{!isAgency}}">
                <text class="location-label">学校信息：</text>
                <text class="location-link" bindtap="sendSchoolMsg">咨询经纪人中小学情况</text>
            </view>
        </view>
    </view>
    <view class="map-w" wx:if="{{house.addres_images}}">
        <!-- <map id="map" class="detail-map" longitude="{{markers[0].longitude}}" latitude="{{markers[0].latitude}}"
            enable-scroll="{{ false }}" enable-zoom="{{ false }}" markers="{{markers}}" show-location>
        </map>
        <view class="cover" bindtap="toMap"></view> -->
        <view class="detail-map">
            <image mode="aspectFill" lazy-load="true" src="{{house.addres_images}}"></image>
        </view>
    </view>

    <!-- <view class=" padding-container" bind:tap="toMoreIntro"> -->
    <view class=" padding-container"
        wx:if="{{!( house.remarks.length == 1 &&house.remarks[0].title == '' &&house.remarks[0].text == '') }}">

        <view class="location-text-info border-btn">
            <!-- <view class="detail-title">房源介绍 -->
            <view class="detail-title">物业特色
                <!-- <view class="arrow-right fr"></view> -->
            </view>
            <view wx:for="{{house.remarks}}" :key="name">
                <view class="detail-title-mini ">{{item.title}}</view>
                <view class="detail-text">
                    {{item.text}}
                </view>
            </view>

        </view>
    </view>

    <!-- 配套设施 -->
    <view class=" padding-container" wx:if="{{house.ancillaryFacility.length>0}}">
        <view class="location-text-info border-btn">
            <view class="detail-title m-t-32">配套设施
            </view>
            <view class="detail-tag">
                <view class="tag-item" wx:for="{{house.ancillaryFacility}}" wx:key="index">{{item}}</view>
                <!-- <text class="tag-item">壁炉</text> -->
                <!-- <text class="tag-item">大理石</text>
                <text class="tag-item">微波炉</text>
                <text class="tag-item">洗碗机</text>
                <text class="tag-item">浴缸</text>
                <text class="tag-item">食品储蓄室</text>
                <text class="tag-item">藏书师</text> -->

            </view>
        </view>
    </view>

    <!-- 免责声明 -->
    <view class=" padding-container">
        <view class="location-text-info border-btn">
            <view class="detail-title m-t-32">免责声明
            </view>
            <view class="box" style="background:#eee; padding:20rpx;font-size:28rpx;text-align:justify;color:#666;">
                平台房源所提供的信息仅供个人非商业用途使用，消费者不得用于其他任何用途。平台房源信息与实际信息可能所有偏差，请购房者在决定购买前，与相关专人人士确认沟通。平台将保留所有解释权。
            </view>
        </view>
    </view>
    <view class="padding-container" wx:if="{{recommendList.length>0}}">
        <view class="detail-title m-t-32">推荐房源({{recommendList.length}})</view>
        <view class="house-list">
            <house-item wx:for="{{recommendList}}" wx:key="id" house="{{item}}" />
        </view>
    </view>
</view>