邹能昇 před 4 měsíci
rodič
revize
5f8aeee4aa

+ 10 - 3
nova-tourism/pages/homestay/homestay-detail/index.js

@@ -185,7 +185,7 @@ Page({
         this.setData({
             imageUrls:storeList[0].image
         })
-        // this.Getlocation()
+        this.Getlocation()
         console.log(this.data.storeList);
     },
     //获取房间信息
@@ -253,7 +253,7 @@ Page({
     //     console.log(this.data.imageUrls); // 输出 imageUrls
     // },
 
-    
+
     //获取当前位置信息
     Getlocation() {
         // 假设 this.storeList[0].location 是一个 Parse.GeoPoint 对象
@@ -426,5 +426,12 @@ Page({
         }
         console.log(`入住日期: ${this.data.decodedDateStartart}, 离店日期: ${this.data.decodedDateEnd}, 天数差: ${daysBetween}天`);
     },
-
+    //拨打电话
+    phone() {
+        let phone = this.data.storeList[0].mobile
+        console.log(phone);
+        wx.makePhoneCall({
+            phoneNumber: phone
+        })
+    },
 })

+ 1 - 1
nova-tourism/pages/homestay/homestay-detail/index.wxml

@@ -25,7 +25,7 @@
                 <view class="map">
                     <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="20" markers="{{markers}}"></map>
                 </view>
-                <view class="info-call">
+                <view class="info-call" bindtap="phone" >
                     <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241122/n7me1o092906284.png"></image>
                     <view class="call-tex">联系望仙管家</view>
                 </view>

+ 1 - 1
nova-tourism/pages/my/merchant/merchant-home/order2-list/index.wxml

@@ -32,7 +32,7 @@
             </block>
         </view>
         <view class="order-txt">
-            <image class="order-image" src="{{item.images[0]}}" />
+            <image class="order-image" src="{{item.shopStore.cover}}" />
             <view class="order-name">
                 <view class="name">{{item.room.name}}</view>
                 <view class="order-price">¥{{item.room.price}}/晚</view>