Commit e1a851de authored by zhengke's avatar zhengke

修改

parent 8f8775f0
...@@ -159,9 +159,7 @@ ...@@ -159,9 +159,7 @@
} }
}, },
created() { created() {
uni.setNavigationBarTitle({
title: this.HotelInfo.HotelName
});
}, },
onLoad(options) { onLoad(options) {
if(options.RoomInfo){ if(options.RoomInfo){
...@@ -173,9 +171,6 @@ ...@@ -173,9 +171,6 @@
if(options.dayObj){ if(options.dayObj){
this.dayObj = JSON.parse(options.dayObj) this.dayObj = JSON.parse(options.dayObj)
} }
console.log(this.RoomInfo,'RoomInfo');
console.log(this.HotelInfo,'HotelInfo');
console.log(this.dayObj,'dayObj');
this.rMsg.HotelId = this.HotelInfo.HotelId; this.rMsg.HotelId = this.HotelInfo.HotelId;
this.rMsg.productId = this.RoomInfo.ID; this.rMsg.productId = this.RoomInfo.ID;
this.rMsg.StartDate = this.dayObj.start; this.rMsg.StartDate = this.dayObj.start;
...@@ -184,7 +179,9 @@ ...@@ -184,7 +179,9 @@
this.orderMsg.Unit_Price = this.RoomInfo.B2BPrice; this.orderMsg.Unit_Price = this.RoomInfo.B2BPrice;
this.orderMsg.StartDate = this.dayObj.start; this.orderMsg.StartDate = this.dayObj.start;
this.orderMsg.EndDate = this.dayObj.end; this.orderMsg.EndDate = this.dayObj.end;
uni.setNavigationBarTitle({
title: this.HotelInfo.HotelName
});
this.CalTotalPrice(); this.CalTotalPrice();
this.getRoomPrice(); this.getRoomPrice();
}, },
...@@ -313,7 +310,7 @@ ...@@ -313,7 +310,7 @@
}) })
setTimeout(()=>{ setTimeout(()=>{
uni.redirectTo({ uni.redirectTo({
url: '/pages/jiuzhai/allorderList' url: '/pages/jiuzhai/paysuccess?PreferPrice='+that.orderMsg.Final_Price
}); });
}, 100 ) }, 100 )
}, },
...@@ -322,6 +319,11 @@ ...@@ -322,6 +319,11 @@
uni.showToast({ uni.showToast({
title: "支付失败" title: "支付失败"
}) })
setTimeout(()=>{
uni.redirectTo({
url: '/pages/jiuzhai/allorderList'
});
}, 100 )
} }
}); });
}, },
......
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