jinx 4 лет назад
Родитель
Сommit
4da546139b

+ 8 - 4
apps/RealtorEasier/components/detail-components/detail-scroll/detail-scroll.wxml

@@ -81,15 +81,19 @@
             </view>
         </view>
     </view>
-    <view class="map-w">
-        <map id="map" class="detail-map" longitude="{{markers[0].longitude}}" latitude="{{markers[0].latitude}}"
+    <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="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=" 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">房源介绍 -->

+ 8 - 4
apps/agent/components/detail-components/detail-scroll/detail-scroll.wxml

@@ -81,15 +81,19 @@
             </view>
         </view>
     </view>
-    <view class="map-w">
-        <map id="map" class="detail-map" longitude="{{markers[0].longitude}}" latitude="{{markers[0].latitude}}"
+    <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="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=" 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">房源介绍 -->