Commit fb33018a authored by zhengke's avatar zhengke

修改

parent 6f0fb34f
......@@ -859,8 +859,10 @@ export default {
},
mounted() {},
created() {
if (sessionStorage.getItem("HotelDetail")) {
let msgList = JSON.parse(sessionStorage.getItem("HotelDetail"));
// if (sessionStorage.getItem("HotelDetail")) {
// let msgList = JSON.parse(sessionStorage.getItem("HotelDetail"));
let msgList = JSON.parse(decodeURIComponent(this.$route.query.msg));
this.msg.hotelId = msgList.hotelId;
this.msg.groupBookingFlg = msgList.groupBookingFlg;
this.price = msgList.lowrateBySetCurrency;
......@@ -870,9 +872,10 @@ export default {
this.SimilarMsg.searchroomGroup = msgList.searchroomGroup;
this.room = msgList.room;
this.auditNum = msgList.auditNum;
this.getList();
this.getSimilar();
}
// }
if (sessionStorage.getItem("OpenB2BCode")) {
if (sessionStorage.getItem("OpenB2BCode") == "jqk4n7BSaoI=") {
this.isShowTime = false;
......@@ -1359,14 +1362,17 @@ export default {
let msg = this.SimilarMsg;
msg.roomOptionCd = roomOptionCd;
msg.imgUrl = this.hotelDetails.hotelImageUrl1;
sessionStorage.setItem("HotelSure", JSON.stringify(msg));
let dom = document.querySelector("#blankLink")
let fullPath = `/HotelSure`;
dom.href=`http://${window.location.host}/#${fullPath}`
dom.click()
return
// sessionStorage.setItem("HotelSure", JSON.stringify(msg));
// let dom = document.querySelector("#blankLink")
// let fullPath = `/HotelSure`;
// dom.href=`http://${window.location.host}/#${fullPath}`
// dom.click()
// return
this.$router.push({
path:"/HotelSure"
path:"/HotelSure",
query:{
msg:encodeURIComponent(JSON.stringify(msg))
}
})
}
}
......
......@@ -1119,13 +1119,18 @@ export default {
this.PassMsg.room = this.room
this.PassMsg.auditNum = this.auditNum;
sessionStorage.setItem("HotelDetail", JSON.stringify(this.PassMsg));
// this.$router.push({
// path:"/HotelDetail"
// })
let routeData = this.$router.resolve({
name: path,
});
window.open(routeData.href, "_blank");
var jsonstr= JSON.stringify(this.PassMsg);
this.$router.push({
path:"/HotelDetail",
query:{
msg:encodeURIComponent(jsonstr),
}
})
// let routeData = this.$router.resolve({
// name: path,
// });
// window.open(routeData.href, "_blank");
},
//主题特色
getTravelFeature(feature){
......
......@@ -892,8 +892,9 @@ export default {
}
},
created() {
if(sessionStorage.getItem("HotelSure")){
let msgList = JSON.parse(sessionStorage.getItem("HotelSure"));
// if(sessionStorage.getItem("HotelSure")){
// let msgList = JSON.parse(sessionStorage.getItem("HotelSure"));
let msgList = JSON.parse(decodeURIComponent(this.$route.query.msg));
this.HotelImgUrl = msgList.imgUrl;
this.msg = msgList;
this.auditNum=0;
......@@ -929,7 +930,7 @@ export default {
this.getWeek();
this.getBookInfo();
}
// }
let userInfo = this.getLocalStorage();
this.apipost("app_customer_GetCertificationModel", { CustomerID: userInfo.customerId }, res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment