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