|
|
@@ -107,33 +107,19 @@ export default {
|
|
|
this.detail = res.data.detail.data
|
|
|
this.order = res.data.order
|
|
|
let de = JSON.parse(res.data.order.product_detail)
|
|
|
- let { hotelID,checkInDate,checkOutDate,ratePlanID } = de
|
|
|
- this.gethotel({ hotelID,checkInDate,checkOutDate },ratePlanID)
|
|
|
+ let { hotelID,checkInDate,checkOutDate } = de
|
|
|
+ this.gethotel({ hotelID,checkInDate,checkOutDate })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- gethotel(da,ratePlanID){
|
|
|
+ gethotel(da){
|
|
|
post("/local/hotel/detail", da).then((res) => {
|
|
|
if (res.code == 0) {
|
|
|
this.hotel = res.data.data;
|
|
|
}
|
|
|
});
|
|
|
- post("/local/hotel/room", da).then((res) => {
|
|
|
- if (res.code == 0) {
|
|
|
- let da = res.data.data.rooms;
|
|
|
- for (const a of da) {
|
|
|
- for (const b of a.ratePlans) {
|
|
|
- if(b.ratePlanId == ratePlanID){
|
|
|
- this.ratePlan = Object.assign({},a,b)
|
|
|
- console.log(this.ratePlan);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
},
|
|
|
openm() {
|
|
|
- console.log(12);
|
|
|
let latitude = this.hotel.googleLat;
|
|
|
let longitude = this.hotel.googleLon;
|
|
|
let name = this.hotel.hotelName;
|