Commit 01b54bd6 authored by huangyuanyuan's avatar huangyuanyuan
parents b00e1091 43905a65
...@@ -850,6 +850,7 @@ export default { ...@@ -850,6 +850,7 @@ export default {
this.SimilarMsg.arrivalDate = msgList.arrivalDate; this.SimilarMsg.arrivalDate = msgList.arrivalDate;
this.SimilarMsg.departureDate = msgList.departureDate; this.SimilarMsg.departureDate = msgList.departureDate;
this.SimilarMsg.searchroomGroup = msgList.searchroomGroup; this.SimilarMsg.searchroomGroup = msgList.searchroomGroup;
this.room = msgList.room;
this.getList(); this.getList();
this.getSimilar(); this.getSimilar();
} }
......
...@@ -333,11 +333,12 @@ export default { ...@@ -333,11 +333,12 @@ export default {
this.isLogin=this.$store.state.isLogin; this.isLogin=this.$store.state.isLogin;
//获取传递参数 //获取传递参数
var url = window.location.href; var url = window.location.href;
if (url.indexOf("?") != -1) { if (url.indexOf("?") != -1) {
let str = url.split("?")[1]; let str = url.split("?")[1];
let uid = str.split("=")[1]; let uid = str.split("uid=")[1];
sessionStorage.setItem("UserId", uid); sessionStorage.setItem("UserId", decodeURIComponent(uid));
} }
}, },
methods: { methods: {
...@@ -373,6 +374,7 @@ export default { ...@@ -373,6 +374,7 @@ export default {
place:keywords, place:keywords,
StartDate:moment().format("YYYY-MM-DD"), StartDate:moment().format("YYYY-MM-DD"),
EndDate:moment().add(1,'days').format('YYYY-MM-DD'), EndDate:moment().add(1,'days').format('YYYY-MM-DD'),
room:1,
roomList:[ roomList:[
{ {
roomNum:1, roomNum:1,
...@@ -382,9 +384,10 @@ export default { ...@@ -382,9 +384,10 @@ export default {
} }
], ],
} }
sessionStorage.setItem("HotelInfo", JSON.stringify(msg));
this.$router.push({ this.$router.push({
path:"/HotelList", path:"/HotelList",
query:{msg:JSON.stringify(msg)}
}) })
}, },
//房间数改变 //房间数改变
......
...@@ -1068,6 +1068,8 @@ export default { ...@@ -1068,6 +1068,8 @@ export default {
this.PassMsg.searchroomGroup = this.msg.searchroomGroup; this.PassMsg.searchroomGroup = this.msg.searchroomGroup;
this.PassMsg.lowrateBySetCurrency = item.lowrateBySetCurrency; this.PassMsg.lowrateBySetCurrency = item.lowrateBySetCurrency;
this.PassMsg.room = this.room
sessionStorage.setItem("HotelDetail", JSON.stringify(this.PassMsg)); sessionStorage.setItem("HotelDetail", JSON.stringify(this.PassMsg));
this.$router.push({ this.$router.push({
path:"/HotelDetail" path:"/HotelDetail"
......
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