<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="house-info padding-container">
        <view class="tab-list">
            <view class="tab-item" wx:for="{{house.tags}}" wx:key="index">{{ 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="parameter-name">售价</view>
            </view>
            <view class="parameter-item">
                <view class="price">{{ house.house_type || '暂无数据' }}</view>
                <view class="parameter-name">房型</view>
            </view>
            <view class="parameter-item">
                <view class="price">{{ house.area ? house.area + 'm²' : '暂无数据' }}</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">{{ item.value }}</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>
            </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">
      <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>
    
    <view class=" padding-container" bind:tap="toMoreIntro">
        <view class="location-text-info border-btn">
            <view class="detail-title">房源介绍
                <view class="arrow-right fr"></view>
            </view>
            <view class="detail-text">{{ house.remarks }}</view>
        </view>
    </view>
    <view class="padding-container">
        <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>
</scroll-view>